API Reference#
This section provides comprehensive documentation for all gdptools classes and functions.
Overview#
The gdptools API is organized into several key modules:
Data Classes: Input data handling and validation
Weight Generation: Spatial intersection weight calculation
Aggregation: Statistical aggregation and interpolation
Zonal Statistics: Raster-based zonal operations
Helper Methods: Utility functions and spatial operations
Quick Start#
For most users, the primary entry points are:
# Grid-to-polygon aggregation
from gdptools import AggGen
# Polygon-to-polygon weights
from gdptools import WeightGenP2P
# Zonal statistics on rasters
from gdptools import ZonalGen
Module Index#
|
Top-level package for pygeoapi plugin: Gdptools. |
Classes and Functions Index#
|
Interface for Climate-R catalog datasets with automatic metadata handling. |
|
Handler for user-provided xarray datasets with custom configuration. |
|
Factory for NHGF STAC catalog datasets. |
|
Interface for Zarr-backed NHGF STAC catalog datasets. |
|
Interface for GeoTIFF-backed NHGF STAC catalog datasets (e.g., NLCD). |
|
Handler for GeoTIFF and other raster data sources. |
|
Performs grid-to-polygon aggregation using area-weighted statistics. |
|
Calculates grid-to-polygon intersection weights for area-weighted aggregation. |
|
Calculates polygon-to-polygon intersection weights for spatial data transfer. |
|
Calculate standard zonal statistics for raster data. |
|
Create a dictionary to use with xarray .sel() method to subset by time and space. |
|
Create a dictionary to use with xarray .sel() method to subset TIFF data by space and band. |
|
Create a dictionary to use with xarray .sel() method to subset TIFF DataArray by space. |
|
Check that gridded data has the required dimensions. |