Repository navigation
08. Make full boundaries
micdom edited this page Dec 21, 2022
·
7 revisions
- Follow the same instructions for the creation of the tidal boundaries.
- In this case study, we use the Atlantic - European North West Shelf - Ocean Physics Analysis and Forecast data at 1.5 km resolution for the open boundaries. Variables needed and downloadable from CMEMS AMM15 are currents, salinity, temperature and sea surface height. How to build the required coordinates and mask file is described here. For NOC users, some data is available in
/work/n01/n01/micdom/CMEMS_AMM15. - Check that the parent files are meaningful: no dummy files, correct domain and time period (you need a full month).
- Change the PyNEMO namelist as follows:
!------------------------------------------------------------------------------
! unstructured open boundaries
!------------------------------------------------------------------------------
ln_coords_file = .true. ! =T : produce bdy coordinates files
cn_coords_file = 'coordinates.bdy.nc' ! name of bdy coordinates files
! (if ln_coords_file=.TRUE.)
ln_mask_file = .true. ! =T : read mask from file
cn_mask_file = '../DOMAIN/bdy_mask.nc' ! name of mask file
! (if ln_mask_file=.TRUE.)
ln_dyn2d = .true. ! boundary conditions for
! barotropic fields
ln_dyn3d = .true. ! boundary conditions for
! baroclinic velocities
ln_tra = .true. ! boundary conditions for T and S
ln_ice = .false. ! ice boundary condition
nn_rimwidth = 9 ! width of the relaxation zone
!------------------------------------------------------------------------------
! Time information
!------------------------------------------------------------------------------
nn_year_000 = 2019 ! year start
nn_year_end = 2019 ! year end
nn_month_000 = 08 ! month start (default = 1 is years>1)
nn_month_end = 08 ! month end (default = 12 is years>1)
sn_dst_calendar = 'gregorian' ! output calendar format
nn_base_year = 1970 ! base year for time counter
- Run PyNEMO
It is advisable to run PyNEMO as a job, using a slurm script like this submitpynemo.slurm, check the correct namelist is used
:
#!/bin/bash
#SBATCH --job-name=pynemo
#SBATCH --time=00:10:00
#SBATCH --nodes=1
#SBATCH --ntasks=3
#SBATCH --account=n01-ACCORD
#SBATCH --partition=serial
#SBATCH --qos=serial
source ~/.bashrc
conda activate pynemo
cd /work/n01/n01/$USER/SEVERN-SWOT/BUILD_CFG/OPEN_BOUNDARIES/
pynemo -s namelist_AMM15Severn.bdy
To run it:
sbatch submitpynemo.slurm
- After producing the bdy file, copy them in the INPUTS directory:
cp OUTPUT/*bdy[TUV]* /work/n01/n01/$USER/SEVERN-SWOT/INPUTS/OBC/.