NOC-MSM / pyBDY

pyBDY: a Python based regional NEMO model configuration toolbox.
GNU General Public License v3.0
7 stars 7 forks source link

pyBDY

pyBDY documentation. To be updated soon.

How do I get set up?

These are the steps to take to install pyBDY:

This should result in pyBDY being installed in the virtual environment, and can be checked by entering:

pybdy -v

Resulting in a help usage prompt:

usage: pybdy -g -s <namelist.bdy>

To use pyBDY, the following command is entered: (the example will run an benchmarking test):

pybdy -s /path/to/namelist/file (e.g. ./inputs/namelist_remote.bdy)

Contribution guidelines

See contribution guidelines for developers.

Bench Marking Tests

The pyBDY module can be tested using the bench marking namelist bdy file in the inputs folder. To check the outputs of the benchmark test, these can be visualised using the plotting script within the plotting folder. A local version of the benchmark data can be downloaded from here.

E.g.

cd $PYBDY_DIR/inputs/benchmark/
wget -r -np -nH --cut-dirs=3 -erobots=off --reject="index.html*" http://gws-access.jasmin.ac.uk/public/jmmp/benchmark/

The ./benchmark directory should reside as a subfolder of ./inputs. The following steps are required,

Example: generating tidal boundary conditions on ARCHER2

Take about 120s. Generates 7 consitutents, using FES2014 data, written to `outputs`:

coordinates.bdy.nc
NNA_R12_bdytide_FES2014_M4_grd_V.nc
NNA_R12_bdytide_FES2014_Q1_grd_U.nc
NNA_R12_bdytide_FES2014_K2_grd_U.nc
NNA_R12_bdytide_FES2014_M4_grd_Z.nc
NNA_R12_bdytide_FES2014_Q1_grd_V.nc
NNA_R12_bdytide_FES2014_K2_grd_V.nc
...