Code and data for manuscript submitted to JGR: Atmospheres
Comprehensive analysis of the NOAA National Water Model: A call for heterogeneous formulations and diagnostic model selection
J. Michael Johnson, Shiqi Fang, A.Sankarasubramanian, Arash Modaresi Rad, Luciana Kindl da Cunha, Keith S Jennings, Keith C. Clarke, Amir Mazrooei, Lilit Yeghiazarian
nhdplus_nwis_mapping.parquet
- This file stores the
GAGE_ID
/feature_id
relation found with the NLDI
- This file stores the
data/usgs_metadata.parquet
- This files stores the metadata about NWIS flow records found with
dataRetrieval::readNWISdata()
- This files stores the metadata about NWIS flow records found with
- This file downloads the
gagesII
shapediles from the USGS and joins it to precomputed data (0) - The output is a 680MB geopackage called
basins.gpkg
- This file uses the
GAGE_ID
/feature_id
sets inbasins.gpkg
to query daily timeseries data from a NWIS and NWM2.0 NetCDF file. - All stats are computed based on the comparison of these series
- The stats are joined to the basins and re-exported to the
basins.gpkg
- This file downloads all requisite NLDAS data from the NASA GES DISC based on the file
data/subset_NLDAS_FORA0125_M_20230907_224958_.txt
- Directions for generating that file are in the notes of the R file, however, it should work for everyone as is.
- This file prepares basin summarized NLDAS data
- The stats are joined to the basins and re-exported to the
basins.gpkg
- This file prepares basin summarized NLCD data
- The stats are joined to the basins and re-exported to the
basins.gpkg
- This file prepares the basin summarized NID data
- The stats are joined to the basins and re-exported to the
basins.gpkg
- This simply reads the
basins.gpkg
and exports the non-spatial data as a parquet file. This file is calleddata/v20_summary_stats.parquet
and is used in all image creation (see section called Create all images)
- This file re-formates the data for the NextGen experiment from CSV files produced by co-authors from
ngen
simulation.
The key artifacts used in the analysis of this paper are:
- data/v20_summary_stats.parquet
- this is the basins.gpkg stripped of geometry and saved as a parquet file
Run this from the terminal (in this directory):
bash ./make_images.sh
All images will be generated in the ./images/png
directory.