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

Notebook for retrieval of National Water Model Retrospective run results at SNOTEL sites


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 100.1 KB
Created: Oct 12, 2020 at 4:05 a.m.
Last updated: Jan 27, 2022 at 2:05 a.m. (Metadata update)
Published date: Jan 16, 2022 at 1:02 a.m.
DOI: 10.4211/hs.3d4976bf6eb84dfbbe11446ab0e31a0a
Citation: See how to cite this resource
Sharing Status: Published
Views: 1762
Downloads: 125
+1 Votes: Be the first one to 
 this.
Comments: No comments (yet)

Abstract

This notebook has been developed to download specific variables at specific sites from National Water Model (NWM) Retrospective run results in Google Cloud. It has been set up to retrieve data at SNOTEL sites. An input file SNOTEL_indices_at_NWM.csv maps from SNOTEL site identifiers to NWM X and Y indices (Xindex and Yindex). A shell script (gget.sh) uses Google utilities (gsutil) to retrieve NWM grid file results for a fixed (limited) block of time. A python function then reads a set of designated variables from a set of designated sites from NWM grid files into CSV files for further analysis.

The input file SNOTEL_indices_at_NWM.csv was generated using Garousi-Nejad and Tarboton (2022), https://www.hydroshare.org/resource/7839e3f3b4f54940bd3591b24803cacf/.

Subject Keywords

Content

README.md

Notebook for retrieval of National Water Model V2.0 Retrospective run results at SNOTEL sites

Irene Garousi-Nejad and David Tarboton

10-12-2020

This notebook has been developed to download specific variables at specific sites from National Water Model V2.0 (NWM) Retrospective run results in Google Cloud. It has been set up to retrieve data at SNOTEL sites.

  • An input file SNOTEL_indices_at_NWM.csv maps from SNOTEL site identifiers to NWM X and Y indices (Xindex and Yindex)
  • A shell script (gget.sh) uses Google utilities (gsutil) to retrieve NWM grid file results for a fixed (limited) block of time.
  • A python function then reads a set of designated variables from a set of designated sites from NWM grid files into CSV files for further analysis

To use in Google Colab

Download the following three files to your local computer

  • NWMDownload.ipynb
  • gget.sh
  • SNOTEL_indices_at_NWM.csv

Go to http://colab.research.google.com

Click Upload and upload NWMDownload.ipynb

In the Files area to the left upload gget.sh and SNOTEL_indices_at_NWM.csv

Run each cell in turn checking the results.

To use in CUAHSI JupyterHub

https://jupyterhub.cuahsi.org/

From HydroShare use Open With to open CUAHSI JupyterHub.

CUAHSI JupyterHub should open and files from this resource should be transferred into the downloads folder. Click on NWMDownload.ipynb to open the notebook.

Run each cell in turn checking the results.

To use in CyberGIS Jupyter for Water

https://go.illinois.edu/cybergis-jupyter-water/

From HydroShare use Open With to open CyberGIS Jupyter for Water.

CyberGIS Jupyter for Water should open and files from this resource should be transferred into the downloads folder. Click on NWMDownload.ipynb to open the notebook.

Run each cell in turn checking the results.

Related Resources

This resource is referenced by Garousi-Nejad, I. and Tarboton, D. (2022), "A comparison of National Water Model retrospective analysis snow outputs at snow telemetry sites across the Western United States", Hydrological Processes, https://doi.org/10.1002/hyp.14469

Credits

Funding Agencies

This resource was created using funding from the following sources:
Agency Name Award Title Award Number
Utah Water Research Laboratory Graduate Student Research Assistantship to I Garousi-Nejad
National Science Foundation Collaborative Research: SI2-SSI: Cyberinfrastructure for Advancing Hydrologic Knowledge through Collaborative Integration of Data Science, Modeling and Analysis OAC-1664061
National Science Foundation Collaborative Research: SI2-SSI: Cyberinfrastructure for Advancing Hydrologic Knowledge through Collaborative Integration of Data Science, Modeling and Analysis OAC-1664018
National Science Foundation Collaborative Research: SI2-SSI: Cyberinfrastructure for Advancing Hydrologic Knowledge through Collaborative Integration of Data Science, Modeling and Analysis OAC-1664119

How to Cite

Tarboton, D., I. Garousi-Nejad (2022). Notebook for retrieval of National Water Model Retrospective run results at SNOTEL sites, HydroShare, https://doi.org/10.4211/hs.3d4976bf6eb84dfbbe11446ab0e31a0a

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

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

Comments

There are currently no comments

New Comment

required