Skip to content

Documentations Python Versions License: GPL v3 pre-commit GitHub last commit GitHub Repo stars codecov Codacy Badge

GitHub commits since latest release (by SemVer including pre-releases)

pages-build-deployment

Current release info#

Name Downloads Version Platforms
Conda Recipe Conda Downloads Downloads Downloads Downloads PyPI - Downloads Conda Version PyPI version Conda Platforms Join the chat at https://gitter.im/Hapi-Nile/Hapi

conda-forge feedstock#

Conda-forge feedstock

pyramids - GIS utility package#

pyramids is a GIS utility package using gdal, ....

pyramids

1

Main Features#

  • GIS modules to enable the modeler to fully prepare the meteorological inputs and do all the preprocessing needed to build the model (align rasters with the DEM), in addition to various methods to manipulate and convert different forms of distributed data (rasters, NetCDF, shapefiles)

Installation#

  • Conda (conda-forge): Installing pyramids from the conda-forge channel can be achieved by:
conda install -c conda-forge pyramids

It is possible to list all the versions of pyramids available on your platform with:

conda search pyramids --channel conda-forge
  • pip (PyPI):

to install the last release, you can easily use pip

pip install pyramids-gis
  • From source (latest):

to install the last development to time, you can install the library from GitHub

pip install git+https://github.com/Serapieum-of-alex/pyramids

Quick start#

Minimal example: open a dataset and inspect metadata#

from pyramids.dataset import Dataset

# Use your own raster path (GeoTIFF/ASC/NetCDF supported); here we show a relative test file
path = "tests/data/geotiff/dem.tif"  # adjust path as needed

ds = Dataset.read_file(path)
print(ds.width, ds.height, ds.transform)
print(ds.meta)

# Access array data
arr = ds.read()
print(arr.shape, arr.dtype)

# Save a single band to a new GeoTIFF (writes alongside input by default)
out = "./dem_copy.tif"
ds.to_file(out)
print("Saved to", out)

Next steps#

  • Explore the Tutorials for end-to-end workflows.
  • See How it works for architecture and data flow.
  • Browse the API Reference for details of classes and functions.

Dataset diagram