Skip to main content

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Beta

Tools and services currently in the catalog represent only a fraction of those in use by active WMA projects. The team is working on including more to provide a better view of commonly used tools and services. Let us know about your experience using the catalog!

Tools


gdptools

Keywords: area-weighted aggregation; gridded to vector data; subset

Domain: Climate; Domain Agnostic

Language: Python

Environment: Windows; Linux

Description:

This Python package can be used to aggregate gridded or polygon dataset to a target polygon dataset. The input gridded dataset can be any dataset that is readable by Xarray, and thus can handle multi-dimensional datasets, while the input target polygon dataset can be any vector dataset that is readable by Geopandas. An example of this is aggregating a CONUS404 gridded dataset spanning multiple timesteps to a polygon dataset representing the HUC8 basins covering an entire state. The outputs are a GeoDataframe of the polygon dataset and an Xarray DataSet containing the aggregations values for each polygon and timestep.

Linked Catalog Usecases: