Building the pre-processing tools
Suggested reading:
Prepare the pre-processing tools (GSW TOOLBOX and Nico’s regional tools):
First you may need the TEOS10 toolbox to convert from EOS80 to TEOS10. To avoid issues with updates on the GSW-Fortran tools, Nico has cloned the 2016 GSW-Fortran in this repository:
NB: In case you want to check for updates (not recommended), you can still do: git clone https://github.com/TEOS-10/GSW-Fortran.git
The gsw_data_v3_0.nc file provided in this repository should be fine, but in case you start again from the original file (i.e. from github.com/TEOS-10/GSW-Fortran.git), you will need to modify it to avoid NaN in some places (otherwise, skip the next 4 lines):
Back in root of BUILD_CONFIG_NEMO.git. Edit your own namelist, e.g. namelist_WED12, and link namelist_pre to it:
Edit compile_ALL.sh
, adapt fortran compiler (and maybe netcdf path), then execute it: ./compile_ALL.sh
. Create a directory where you will store all the netcdf files created along the following steps, e.g.: