Repository navigation
05 Create a fully forced experiment
anwiseNOCL edited this page Aug 22, 2024
·
1 revision
- Two scripts are included in the repo that have been used to create the T&S fields for the AMM75 configuration from a parent datatset. In this case GLOSEA6 has been used to be consistent with the lateral boundaries. The python scripts use conservative regridding in the horizontal and vertical and flood fill land points. Python package dependencies are xarray, numpy, xesmf, xgcm.
$REPO/PROCESSING_CODE/INITIAL_CONDITON/gen_regridding_weights.py
Will create the weights files appropriate to your source and destination grid and can be reused for data at different times.
$REPO/PROCESSING_CODE/INITIAL_CONDITON/regrid.py
Will use the weights to create a temperature and salinity dataset on the AMM75 (or other domain if you choose) grid.
Note that paths and variable names will need updating to suit. Dependencies are the destination domain_cfg, source domain_cfg or mesh_mask file and the source T grid dataset.