Skip to content
 
 

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 NOAA-OWP/hydrofabric-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

Setup from Archive

An archive called reference_builds_data.tar contains all needed data. Extract this file in repo root and rename the folder to data. This includes all data for NHDPlusHR, GeoGlows, and USGS reference data.

Data Location

This data only needs to be unzipped in it's data/domain folder for it to be picked up by the example scripts. The folder data is required

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

Run test suite with:

pytest tests

About

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

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages