Skip to content

Configuration Variables

Christopher Geiger edited this page Feb 7, 2020 · 5 revisions

Below is a short list of variables which can be configured by adding them to the config.sh file and calling ./config.sh, or by directly editing the Variables.env file.

cesm_root

The root of your cesm directory. You could list the path directly, e.g.

cesm_root=/glade/u/home/chrgeiger/test/cesm-unifying-scripts/tools/mapping

or run generate the path using some bash command(s), e.g.

cesm_root=$(cd ../.. && pwd)  # Go two directories up, and print the path where I land

gen_mapping_files

The location of the gen_mapping_files directory, within your cesm folder. This is usually just:

gen_mapping_files=${cesm_root}/tools/mapping/gen_mapping_files

nx, ny

The number of i and j ocn landpoints (longitude/latitude). E.g.

nx=320                       # number of i ocn gridpoints (longitudes)
ny=394                       # number of j ocn gridpoints (latitudes)

scripdir

Default:

scripdir=/gpfs/fs1/p/cgd/ccr/people/ranfeng/plio_bnd/PlioMIP_enh/cpl_mapping/scrip1.4/

popgridfile

Location of horiz_grid_plioenh_070820.ieeer8. Usually just:

popgridfile=${gen_mapping_files}/horiz_grid_plioenh_070820.ieeer8

kmtgridfile

Location of topography_plio_enh_gx1v6_190619.CESM2_modMed.ieeei4. Usually just:

kmtgridfile=${gen_mapping_files}/topography_plio_enh_gx1v6_190619.CESM2_modMed.ieeei4

ocngridname

Default:

ocngridname='plio_enh'

DATE

This date will be used in the names of the generated files. Must be in the format YYMMDD. For example,

DATE=$(date +%y%m%d)  # Sets DATE to the current day

ocngridfile

For example,

ocnres='gx1v6plioenh'
ocngridfile=${ocnres}_${DATE}.nc

output_folder

log_folder