Skip to content

NGWPC/reference-builds

 
 

Repository files navigation

Reference-Builds

This repo is meant to take OCONUS reference data products and convert them into reference-files that can be used in the NGWPC/nhf-builds Repository

Data sources:

Science Base

The NHDPlusHR is used for PRVI and HI and can be downloaded in HUC4 form through: https://www.sciencebase.gov/catalog/item/57645ff2e4b07657d19ba8e8

the zipped geopackage is required

Since reference 0.1.6, The USGS Reference Hydrofabric is used for AK and can be downloaded for the entire state here (as VPU 19). This change was made to include more coastal areas for better NWM support: https://www.sciencebase.gov/catalog/item/6644f800d34e1955f5a42da9

the reference_19 geopackage is required

GeoGlows

Prior to reference 0.1.6, GeoGlows v2 was used for the AK reference and the code to use it is still present. The source files can be downloaded from the following location:

the catchment.parquet and streams_mapping.gpkg files are required from each VPU

saved location

This data only needs to be unzipped in it's "domain" folder for it to be picked up by the example scripts alt text

Quick Start

All dependencies can be installed through

uv sync

and the example configs can be used to create the references once the data is downloaded

uv run python builds/build_reference.py --config config/example_prvi.yaml
uv run python builds/build_reference.py --config config/example_hi.yaml
uv run python builds/build_reference.py --config config/example_ak.yaml

About

Creates the reference flowpath and divide geometries for the OCONUS NGWPC Hydrofabric

Resources

License

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%