Recipes for reproducible analysis of NEMO ocean general circulation model outputs using xarray.
-
Documentation
-
Report an Issue
-
NEMO Cookbook is a collection of recipes for performing reproducible analyses of the Nucleus for European Modelling of the Ocean (NEMO) ocean general circulation model outputs.
Our aim is to provide Python implementations of the post-processing & analysis functions available in CDFTOOLS alongside new diagnostics (e.g., surface-forced water mass transformation), which are compatible with generalised vertical coordinate systems (e.g., MES).
NEMO Cookbook introduces the NEMODataTree
structure, which is an extension of the xarray.DataTree
object and an alternative to the xgcm grid object.
Each recipe uses NEMODataTree
to leverage xarray, flox & dask libraries (think of these are your cooking utensils) to calculate a diagnostic with NEMO ocean model outputs (the raw ingredients - that's where you come in!).
Users are recommended to installing NEMO Cookbook into a new virtual environment via GitHub:
pip install git+https://github.com/NOC-MSM/nemo_cookbook.git
Alternatively, users can clone the latest version of the nemo_cookbook repository using Git:
git clone [email protected]:NOC-MSM/nemo_cookbook.git
Then, install the dependencies in a new conda virtual environment and pip install NEMO Cookbook in editable mode:
cd nemo_cookbook
conda env create -f environment.yml
conda activate env_nemo_cookbook
pip install -e .
We are steadily adding more recipes to the NEMO Cookbook. Here, we include a list of currently available recipes & several more that are in development.
Available:
-
Meridional Overturning Stream Function in an arbitrary tracer coordinates.
-
Meridional Overturning Stream Function in depth coordinates (z/z*).
-
Meridional Heat & Salt Transports.
-
Surface-Forced Water Mass Transformation in potential density coordinates.
-
Volume census in temperature - salinity coordinates.
In Development:
-
Barotropic Stream Functions.
-
Meridional Overturning Stream Functions in depth coordinates (MES).
-
Ocean Heat Content & Mixed Layer Heat Content.
-
Sea Ice Diagnostics.
-
Vorticity Diagnostics.