Hi, I'm an error. x

Observatory for Gridded Hydrometeorology: TreatGeoSelf to gridded data

Authors: Jimmy Phuong · Christina Bandaragoda · Claire Beveridge · Ronda Strauch · Landung Setiawan · Erkan Istanbulluoglu
Owners: Jimmy Phuong · Christina Bandaragoda
Resource type:Composite Resource
Created:Sep 06, 2017 at 8:29 p.m.
Last updated: Dec 04, 2018 at 9:09 p.m. by Christina Bandaragoda


This iPython notebook demonstrates the workflow for obtaining and processing gridded meteorology data files with the Observatory for Gridded Hydrometeorology Python library.

Using the Sauk-Suiattle, Elwha, and Upper Rio Salado watersheds as the study sites of interest, each Jupyter notebook will guide the user through assembling the datasets and analyses from each of seven gridded data product.

In Usecase 1, users may inspect their study site of interest given in the form of summary spatial visualizations. The treatgeoself() function will yield a mapping file per study site, which reduces the gridded cell centroids to the subset that intersects with the study area (i.e., within the watershed). Within treatgeoself(), the user may determine the amount of buffer space to include outside of the study site (default is 0.06-degree buffer region).

In Usecase 2, each of the mapping files are used to guide data retrieval from each of the gridded data products. A series of _get_ functions then downloads the files to designated subfolders. The resulting file paths are cataloged into the mapping file, which can be summarized for data availability according to the elevation gradient using the mappingfileSummary() function. These downloaded files are compressed into tar.gz files, then migrated with their respective mapping files as content files within a new HydroShare resource, for ease of collaborative use.

In Usecase 3, the downloaded files from Usecase 2 are processed in to spatial and temporal summary statistics. The gridclim_dict() function compiles and computes daily, monthly, annual, and monthly-yearly average values for each variable described in the gridded data product metadata (e.g., the ogh_meta class dictionary). Monthly averages are then visualized as time-series plots, while spatial averages are visualized as spatial heatmaps. Finally, the dictionary of dataframes (the product of the spatial-temporal analyses) is saved into a json file and migrated out as a content file within a new HydroShare resource.

Subject Keywords

climate,gridded data,tool,meteorology,watershed,Python library,treatgeoself,ogh

How to cite

Phuong, J., C. Bandaragoda, C. Beveridge, R. Strauch, L. Setiawan, E. Istanbulluoglu (2018). Observatory for Gridded Hydrometeorology: TreatGeoSelf to gridded data, HydroShare, http://www.hydroshare.org/resource/87dc5742cf164126a11ff45c3307fd9d

This resource is shared under the Creative Commons Attribution CC BY.


Sharing status:

  • Public Resource  Public
  • Sharable Resource  Shareable


Download All Content as Zipped BagIt Archive
Learn more about the Bagit archive format


The people or organizations that created the intellectual content of the resource.

Name Organization Address Phone Author Identifiers
Jimmy Phuong University of Washington
Christina Bandaragoda University of Washington Washington, US
Claire Beveridge University of Washington Washington, US
Ronda Strauch University of Washington
Landung Setiawan University of Washington Applied Physics Laboratory
Erkan Istanbulluoglu University of Washington


People or organizations that contributed technically, materially, financially, or provided general support for the creation of the resource's content but are not considered authors.

Name Organization Address Phone Author Identifiers
Sauk-Suiattle Indian Tribe
Skagit Climate Consortium


This resource was created using funding from the following sources:
Agency Name Award Title Award Number
Bureau of Indian Affairs


Be the first one to  +1 this.  (You need to be logged in to rate this.)


There are currently no comments

New Comment