CLI Reference¶
hydro-param provides a command-line interface for project management, dataset discovery, pipeline execution, and model-specific parameterization.
Usage: hydro-param COMMAND
Configuration-driven hydrologic parameterization.
Commands: datasets, gfv11, init, pywatershed, run, --help, --version
Top-Level Commands¶
| Command | Description |
|---|---|
init |
Scaffold a new hydro-param project directory |
datasets |
List, inspect, and download registered datasets |
run |
Execute the generic parameterization pipeline (stages 1--5) |
pywatershed |
Derive PRMS parameters and validate output |
gfv11 |
Download GFv1.1 NHM data layer rasters from ScienceBase |
Project Management¶
hydro-param init¶
Scaffold a new hydro-param project directory.
| Parameter | Description | Default |
|---|---|---|
PROJECT-DIR |
Directory to initialise. | . |
--force / --no-force |
Re-initialise an existing project. | False |
--registry |
Path to a custom registry YAML. | — |
Example:
# Create a new project in the current directory
hydro-param init
# Create a project in a specific directory, overwriting if it exists
hydro-param init my-project --force
Dataset Discovery¶
The datasets subcommand provides tools for exploring and downloading
the bundled dataset registry.
hydro-param datasets list¶
Display all registered datasets grouped by category.
| Parameter | Description | Default |
|---|---|---|
--registry |
Path to a custom registry YAML file or directory. | — |
Example:
hydro-param datasets info¶
Show full details for a single dataset.
| Parameter | Description | Default |
|---|---|---|
NAME (required) |
Dataset name (e.g., dem_3dep_10m). |
— |
--registry |
Path to a custom registry YAML. | — |
Example:
hydro-param datasets download¶
Download dataset files via the AWS CLI.
Usage: hydro-param datasets download NAME [--dest PATH] [--years YEARS] [--variables VARS] [--registry PATH]
| Parameter | Description | Default |
|---|---|---|
NAME (required) |
Dataset name to download. | — |
--dest |
Destination directory for downloaded files. | — |
--years |
Comma-separated years to download. | — |
--variables |
Comma-separated variables or products. | — |
--registry |
Path to a custom registry YAML. | — |
Note
Downloads require the AWS CLI to be
installed and available on your PATH.
Example:
Pipeline Execution¶
hydro-param run¶
Execute the generic parameterization pipeline. Runs stages 1--5 to produce a normalized Standardized Internal Representation (SIR).
| Parameter | Description | Default |
|---|---|---|
CONFIG (required) |
Path to pipeline YAML config file. | — |
--registry |
Path to a custom dataset registry. | — |
--resume / --no-resume |
Enable manifest-based resume. | False |
Example:
# Run the pipeline
hydro-param run configs/examples/drb_pipeline.yml
# Resume a previously interrupted run
hydro-param run configs/examples/drb_pipeline.yml --resume
pywatershed Model Setup¶
The pywatershed subcommand derives PRMS parameters from pre-built SIR
output and validates the resulting parameter files.
hydro-param pywatershed run¶
Generate a complete pywatershed model setup from existing SIR output.
Consumes pre-built SIR and derives all PRMS parameters (Phase 2 only --
run hydro-param run first to produce the SIR).
| Parameter | Description | Default |
|---|---|---|
CONFIG (required) |
Path to pywatershed run config YAML (v4.0). | — |
Output files:
| File | Description |
|---|---|
parameters.nc |
Static PRMS parameters (CF-1.8 NetCDF) |
forcing/<var>.nc |
Forcing time series (precipitation, temperature) |
soltab.nc |
Potential solar radiation tables (nhru x 366) |
control.yml |
Simulation time period configuration |
Example:
hydro-param pywatershed validate¶
Validate a pywatershed parameter file against metadata constraints.
Checks that required PRMS parameters are present and values fall within
valid ranges defined in the bundled parameter_metadata.yml.
| Parameter | Description | Default |
|---|---|---|
PARAM-FILE (required) |
Path to parameter NetCDF file. | — |
Example:
GFv1.1 Data Layers¶
The gfv11 subcommand downloads Geospatial Fabric v1.1 NHM data layer
rasters from USGS ScienceBase.
hydro-param gfv11 download¶
Download GFv1.1 NHM data layer rasters from ScienceBase (~15 GB total).
| Parameter | Description | Default |
|---|---|---|
--output-dir (required) |
Shared data directory for downloaded rasters. | — |
--items |
Which ScienceBase item(s): all, data-layers, or tgf-topo. |
all |
Example: