Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

Python Notebook for Retrieving Retrospective National Water Model Forecasts


Authors:
Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource.
Type: Resource
Storage: The size of this resource is 12.3 KB
Created: Nov 17, 2023 at 10:34 p.m.
Last updated: Oct 10, 2024 at 5:15 p.m.
Citation: See how to cite this resource
Sharing Status: Public
Views: 732
Downloads: 118
+1 Votes: 1 other +1 this
Comments: 1 comment

Abstract

This python notebook demonstrates a simple method for retrieving time series data from the Amazon Web Services (AWS) archive of the U.S. National Water Model retrospective streamflow forecasts for one or more reach id's (also known as COMIDs) for a specified date range. Note that this notebook uses the 42-year (February 1979 through December 2020) retrospective simulation using version 2.1 of the National Water Model. The AWS archive and description of the data can be found here: https://registry.opendata.aws/nwm-archive/. This notebook uses the xarray library to connect to the data store as an anonymous user. The connection results in a zarr store from which data can be extracted using the method shown in the script. This method is not optimized for parallel computing so it will be slow if you specify a lot of reach ids. The results are written to a local CSV file that can be opened in Excel or another spreadsheet. There are many optimizations that can be done to improve data access, but this notebook is intentionally simple for the novice user who is trying to work with National Water Model retrospective data stored in AWS.

Subject Keywords

Coverage

Spatial

Coordinate System/Geographic Projection:
WGS 84 EPSG:4326
Coordinate Units:
Decimal degrees
North Latitude
48.8412°
East Longitude
-48.6914°
South Latitude
23.7728°
West Longitude
-137.8125°

Temporal

Start Date:
End Date:

Content

Related Resources

This resource belongs to the following collections:
Title Owners Sharing Status My Permission
Curated List of Datasets for the CIROH Portal Dan Ames  Public &  Shareable Open Access

How to Cite

Ames, D. (2024). Python Notebook for Retrieving Retrospective National Water Model Forecasts, HydroShare, http://www.hydroshare.org/resource/5caaa9919c2e490eb735aebc5e741c35

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

http://creativecommons.org/licenses/by/4.0/
CC-BY

Comments

Dan Ames 1 month ago

Note! The s3fs module changed at some point and broke my notebook. To use the notebook you'll need to specify the version of s3fs to install like this:

!pip install s3fs==0.4

Reply
+1 Votes: Be the first one to 
 this.

New Comment

required