Current release info#
Name | Downloads | Version | Platforms |
---|---|---|---|
conda-forge feedstock#
pyramids - GIS utility package#
pyramids is a GIS utility package using gdal, ....
pyramids
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 theconda-forge
channel can be achieved by:
It is possible to list all the versions of pyramids
available on your platform with:
- pip (PyPI):
to install the last release, you can easily use pip
- From source (latest):
to install the last development to time, you can install the library from GitHub
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.