Usage - NOAA-OWP/ngen GitHub Wiki
Prerequisites
-
A subset of the NOAA NextGen Hydrofabric in either GeoJSON or as a GeoPackage.
-
A realization configuration file
- Compiled shared libraries
- Model initialization files, if necessary
-
(If performing channel routing) A routing configuration file with reference to it in your realization configuration
-
(If using MPI and partitioning) A partition configuration file
[!NOTE]
If using GeoJSON, you will need files for both the
divides
andnexus
layers.
Running
Once you have the necessary prerequisites, all that's left is to call your ngen
executable with the correct CLI arguments.
ngen \
<divides.geojson or fabric.gpkg> \
<divides subset ids or "all"> \
<nexus.geojson or fabric.gpkg> \
<nexus subset ids or "all"> \
<realization.json> \
[partition.json]
Example with GeoJSON Hydrofabric Layers
- Divides path:
path/to/divides.geojson
- Subset:
cat-1, cat-3, cat-7
- Subset:
- Nexus path:
path/to/nexus.geojson
- Subset:
nex-1, nex-2
- Subset:
- Realization path:
path/to/realization_cfg.json
ngen path/to/divides.geojson "cat-1,cat-3,cat-7" path/to/nexus.geojson "nex-1,nex-2" path/to/realization_cfg.json
Example with GeoPackage
- GeoPackage path:
path/to/fabric.gpkg
- Divides Subset:
cat-1, cat-3, cat-7
- Nexus Subset:
all
- Divides Subset:
- Realization path:
path/to/gpkg_realization.json
ngen path/to/fabric.gpkg "cat-1,cat-3,cat-7" path/to/fabric.gpkg "all" path/to/gpkg_realization.json