Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...
This resource contains some files/folders that have non-preferred characters in their name. Show non-conforming files/folders.
This resource contains content types with files that need to be updated to match with metadata changes. Show content type files that need updating.
| Authors: |
|
|
|---|---|---|
| Owners: |
|
This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource. |
| Type: | Resource | |
| Storage: | The size of this resource is 208.2 MB | |
| Created: | Jun 02, 2026 at 6:43 p.m. (UTC) | |
| Last updated: | Jun 04, 2026 at 4:20 p.m. (UTC) | |
| Citation: | See how to cite this resource |
| Sharing Status: | Public |
|---|---|
| Views: | 44 |
| Downloads: | 8 |
| +1 Votes: | Be the first one to this. |
| Comments: | No comments (yet) |
Abstract
This resource includes materials for the workshop about configuring and running a NextGen simulation and analyzing model outputs, presented during the 2026 NWCSI Bootcamp. It's meant to provide an overview of techniques for configuring and executing a model simulation within the NOAA NextGen modeling framework. Code examples leverage tools and techniques established through the Cooperative Institute for Research to Operations in Hydrology (CIROH).
Subject Keywords
Coverage
Spatial
Content
README.md
This resource includes materials for the workshop about configuring and running a NextGen simulation and analyzing model outputs, presented during the 2026 NWCSI Bootcamp. It's meant to provide an overview of techniques for configuring and executing a model simulation within the NOAA NextGen modeling framework. Code examples leverage tools and techniques established through the Cooperative Institute for Research to Operations in Hydrology (CIROH). This README.md outlines the steps that should be executed before running the code in this resource.
Acquiring a Cloud Computing Environment
The code included in this resource is designed to run in the CIROH JupyterHub environment and the instructions below reflect that, however this should work with very little modification on any system that has the requisite software installed on it.
- Use HydroShare's "Open With" capabilitiy to launch this resource into the CIROH-2i2c JupyterHub application.
- You'll need to choose a hardware and software configuration to run the code in. At present, we recommend that you choose a "Medium (11GB RAM, 4 CPUs)" sized machine and the "CIROH Community NextGen Hub" environment. These selections will ensure that (1) you'll have sufficient hardware resources to complete the analysis defined in the notebook and (2) that the NextGen modeling framework is already installed and configured.
Once these steps have been completed, you should have a JupyterHub instance that contains all of the data, code, and software you'll need to run the code in this resource.
Environment Setup
As mentioned in the previous section, the resource contains code that requires a computational environment that has the NOAA NextGen Modeling Framework installed on it. Run the following command to verify that it's installed:
ngen
You should see output that looks like this:
NGen Framework 0.3.0
Usage:
ngen <catchment_data_path> <catchment subset ids> <nexus_data_path> <nexus subset ids> <realization_config_path>
Arguments for <catchment subset ids> and <nexus subset ids> must be given.
Use all as explicit argument when no subset is needed.
Build Info:
NGen version: 0.3.0
Parallel build
NetCDF lumped forcing enabled
Fortran BMI enabled
C BMI enabled
Python active
Embedded interpreter version: 3.11.8
Routing active
Python Environment Info:
VIRTUAL_ENV environment variable: (not set)
Discovered venv: None
System paths:
/srv/conda/envs/notebook/lib/python311.zip
/srv/conda/envs/notebook/lib/python3.11
/srv/conda/envs/notebook/lib/python3.11/lib-dynload
/srv/conda/envs/notebook/lib/python3.11/site-packages
If you receive an error, you'll need to either choose a computational environment that already contains this software, or install it yourself by following the instructions located on https://github.com/noAA-OWP/ngen.
Next, we need to prepare a Python environment that contains the software we'll be using. To do this, launch a terminal, and deactivate the current (notebook) environment. After executing the command below, you should see that the (notebook) environment is no longer active.
conda deactivate
This will remove the (notebook) item from your terminal prompt string, i.e. (notebook) jovyan@jupyter-<username>$ should now appear as jovyan@jupyter-<username>$
Now create a new virtual environments using the uv library. This will enable us to install and use our own software libaries.
uv venv
Activate the environment
source .venv/bin/activate
Install software dependencies
uv pip install -r requirements.txt
Finally, lets register our new environment with Jupyter so we can use it in our notebook.
python -m ipykernel install --user --name=ngen-preprocess --display-name="NGEN (Venv)"
Data Setup
The ngiab_data_cli tool that we'll be using relies on a large input hydrofabric dataset that spans to contiguous United States (CONUS). This is much larger than we need for this exercise so we'll instead be using a subset of the hydrofabric that covers only the South Atlantic West area (VPU 03W).
To do this, we're going to use a helper script to place a smaller subset of hydrofabric data in the ngiab working directory. This is done by executing:
bash prepare.sh
Upon completion of this notebook, you may wish to run NextGen simulations elsewhere in the USA. To do so, you'll want to revert the files we're using (i.e. 03W) by executing:
bash restore.sh
Related Resources
| The content of this resource is derived from | Garousi-Nejad, I., A. M. Castronova (2025). CUAHSI Workshop 1: FAIR Data Management & Cloud-Based Simulation Collaboration, HydroShare, http://www.hydroshare.org/resource/1a787a25fb3047d5a6a0291c4a4b6fc2, accessed on: 06/10/2025 |
| This resource updates and replaces a previous version | Garousi-Nejad, I., A. M. Castronova (2026). CUAHSI Workshop 3: Configuring and Running a NextGen Simulation and Analyzing Model Outputs, HydroShare, http://www.hydroshare.org/resource/18134d8103d84deeb2a9a5008068158d |
Credits
Funding Agencies
This resource was created using funding from the following sources:
| Agency Name | Award Title | Award Number |
|---|---|---|
| National Oceanic and Atmospheric Administration (NOAA) | COOPERATIVE INSTITUTE FOR RESEARCH TO OPERATIONS IN HYDROLOGY (CIROH) | NA22NWS4320003 |
How to Cite
This resource is shared under the Creative Commons Attribution CC BY.
http://creativecommons.org/licenses/by/4.0/
Comments
There are currently no comments
New Comment