CIROH-UA / NGIAB-HPCInfra

NextGen In A Box: NextGen Generation Water Modeling Framework for Community Release (Singularity version)
0 stars 1 forks source link

NextGen In A Box (NGIAB)

Run the NextGen National Water Resources Modeling Framework locally with ease.

NGIAB provides a containerized and user-friendly solution for running the NextGen framework, allowing you to control inputs, configurations, and execution on your local machine.

alt text Funding for this project was provided by the National Oceanic & Atmospheric Administration (NOAA), awarded to the Cooperative Institute for Research to Operations in Hydrology (CIROH) through the NOAA Cooperative Agreement with The University of Alabama (NA22NWS4320003).

Why NextGen In A Box?

Repository Information

Prerequisites

Install SigularityCE and validate SigularityCE is up

On Windows * To install SingularityCE on Windows, first you will need to install [WSL](#install-wsl-on-windows) * [Install SingularityCE Desktop on Windows](https://docs.sylabs.io/guides/4.0/admin-guide/installation.html#windows) * Once SingularityCE is installed, the singularity command will now be available in your WSL2 environment. * Type `singularity exec library://ubuntu echo "Hello World!"` to make sure singularity is working.
On Mac - To install SingularityCE on Mac, the Sylabs recommend to use `Lima`, a Linux virtual machine with automatic file sharing and port forwarding (similar to WSL2). - [Install SingularityCE on Mac](https://docs.sylabs.io/guides/4.0/admin-guide/installation.html#mac) - Once Lima is installed, start Lima virtual machine by downloading `AlmaLinux 9` based [template](https://raw.githubusercontent.com/sylabs/singularity/main/examples/lima/singularity-ce.yml). ```bash limactl start ./singularity-ce.yml ``` - Type `limactl shell singularity-ce` to start Lima VM with SingularityCE. Here you should be able to access Shell within Lima VM. - Type `singularity --version` to make sure singularity is working.
On Linux > [!NOTE] > Please make sure you **install all the prerequisites** of installing SingularityCE on Linux. - [Install docker on Linux](https://docs.sylabs.io/guides/4.0/admin-guide/installation.html#installation-on-linux)

Install WSL on Windows

  1. Follow Microsofts latest instructions to install WSL
  2. Once this is complete, follow the instructions for linux inside your wsl terminal.

Input Data

This section guides you through downloading and preparing the sample input data for the NextGen In A Box project.

Step 1: Create Project Directory

cd NextGen/ngen-data
mkdir -p NextGen/ngen-data
cd NextGen/ngen-data

Step 2: Download Sample Data

Step 3: Extract and Rename

Run NextGen In A Box

To run NextGen framework, hydrologist only have to execute the guide script to run simulations on self-contained NextGen framework container image.