Creating a restart for a new ocean grid
This document describes the bootstrap method used to generate the initial conditions for the AGCM when introducing a new NEMO configuration (i.e. anything other than ORCA1, ORCA025, and eORCA1). This document assumes that the user has a general knowledge of running CanESM5.
Ensure that you have a working NEMO, OMIP-style simulation that can at least run a few timesteps.
saveall the necessary input fields and and update the CanESM sequencing, perhaps specifying a new NEMO configuration, and CanESM5 runmodeCreate a new CanESM5 run in the typical way
Modify canesm.cfg with the following - Update
CanNEMO_CONFIGto the new configuration - Update the runmode toCanESM-init-debug=onto make sure the run directory is retained when the model crashesRun the model in the normal way. The model will likely crash at the end of the first timestep. This is expected because the ocean and atmosphere do not agree on the land mask.
Navigate to the run directory under
$CCRNTMPCopy the
cpl_fland.nc(orcpl_fland_info.nc, depending on agcm version) file in the directory to a temporary scratch directoryFrom the
cpl_fland.nc(orcpl_fland_info.nc, depending on agcm version) file create a new file that contains the variableSRCFwhich is fraction of ocean in each grid cell.Use python, ncks, etc. to calculate
1-FLNDand create a new netCDF file with the variableSRCF. For example,$ ncap2 -s “SRCF=1-fland_cpl” cpl_fland_info.nc cpl_srcf.nc
(For spectral AGCM grid) Use
ncksto expand thelondimension to account for the longitudinal cycle. For example,$ ncks -h -O –msa_usr_rdr -d lon,0,127 -d lon,0 cpl_srcf.nc cpl_srcf.nc
Use
nc2cccto convert this file to a CCCma-style file, for example,$ nc2ccc var=SRCF cpl_srcf.nc t63_to_eorca1_i_fland_caspian
This file can then be passed to Vivek to create a new river routing file
saveboth the newSRCFand river routing fileUpdate
CCCma_tools/cccjob_dir/lib/jobdefs/canesm_cgcm_jobdef(GEM) orCanESM_source_link/CONFIG/ESM/model_run_basefile_defaults.cfg(spectral)Change
maskfileto the saved file withSRCFChange
targetto the new river routing file
After all these changes, run the model again. This will run for a year and create a new useable restart.