Skip to content

Tutorial

Alexander Michalek edited this page Jul 22, 2025 · 11 revisions

Provided with the code in the data folder is an example of routing hourly total runoff directly from ERA5Land for the Stony Brook Watershed near Princeton, NJ during 2017 to 2018.

Quick Start

First, load the required modules (below if for Tiger3):

module load hdf5/gcc/1.14.4
module load netcdf/gcc/hdf5-1.14.4/4.9.2

To run the example directly after compiling the script run the following command:

./bin/routing ./data/config.yaml

This should generate the following in the /data/outputs/ folder

mytimeseries_2017-01-01_00_00_00.nc  
mytimeseries_2018-01-01_00_00_00.nc  
snapshot_2017-01-01_00_00_00.nc  
snapshot_2018-01-01_00_00_00.nc

Example Details

For more details on the simulations and how to generate the parameters files, it is recommended that users go through the provided notebook: example.ipynb.

Clone this wiki locally