Skip to content

02 Creating the domain_cfg

anwiseNOCL edited this page Aug 14, 2024 · 2 revisions

Create the coordinates file and then the bathymetry file

  1. Use the AMM15 coordinates file to create a coarsened version, i.e. 1.5 km --> 7.5 km See PROCESSING_CODE/DOMAIN_CFG/coarsen_amm15_coordinates.ipynb

  2. Now use the AMM15 bathymetry to crease a coarsened bathymetry See PROCESSING_CODE/Coarsen_bathy.ipynb This notebook does not get you all the way. In the absence of a way to satisfactorily automate this process in a robust way, the bathymetry was manually smoothed at sections of coastline, isolated wet points removed and the channels connecting to the baltic opened up.

  3. Correct a few bugs (Alternatively update the notebooks with the bug fixes, which are just variable name changes) See PROCESSING_CODE/touch_up_amm75_domain_files.ipynb

Make the domain_cfg.nc

Create the domain_cfg using the same configuration setup as in AMM15 e.g. quasi terrain following with rmax=0.1, wetting & drying to remove minimum depth limit at coast.

  1. Build the DOMAINcfg tools.
. $REPO/PROCESSING_CODE/DOMAIN_CFG/make_domain_tools.sh 
  1. Copy the coordinates, bathymetry and domain_cfg namelist into the tool's directory
cp $REPO/DATASETS/coordinates.nc $TDIR/DOMAINcfg/.
cp $REPO/DATASETS/bathy_meter.nc $TDIR/DOMAINcfg/. 
cp $REPO/PROCESSING_CODE/DOMAIN_CFG/namelist_cfg $TDIR/DOMAINcfg/.
cp $REPO/PROCESSING_CODE/DOMAIN_CFG/make_domain_cfg.slurm $TDIR/DOMAINcfg/.
  1. launch job to create domain_cfg.nc
cd $TDIR/DOMAINcfg/
sbatch make_domain_cfg.slurm