Skip to content

Commit

Permalink
Update FIX variables in global cycle scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Feb 16, 2024
1 parent 89bb1e1 commit 4d4df62
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 40 deletions.
72 changes: 35 additions & 37 deletions ush/global_cycle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,21 @@
#
# Imported Shell Variables:
# CASE Model resolution. Defaults to C768.
# JCAP Spectral truncation of the global fixed climatology files
# JCAP_CASE Spectral truncation of the global fixed climatology files
# (such as albedo), which are on the old GFS gaussian grid.
# Computed from CASE by default.
# LATB i-dimension of the global climatology files. NOT the
# LATB_CASE i-dimension of the global climatology files. NOT the
# i-dimension of the model grid. Computed from CASE by default.
# LONB j-dimension of the global climatology files. NOT the
# LONB_CASE j-dimension of the global climatology files. NOT the
# j-dimension of the model grid. Computed from CASE by default.
# OCNRES Ocean grid resolution. '100' is one degree.
# BASEDIR Root directory where all scripts and fixed files reside.
# Default is /nwprod2.
# HOMEgfs Directory for gfs. Default is
# $BASEDIR/gfs.v15.0.0.
# FIX_DIR Directory for fixed data. Default is $HOMEgfs/fix.
# FIXam Directory for the global fixed climatology files.
# Defaults to $FIX_DIR/am
# FIXgfs Directory for fixed data. Default is $HOMEgfs/fix.
# OROFIX Directory for model orography data. Default is
# $FIX_DIR/orog/${CASE}
# $FIXgfs/orog/${CASE}
# FIX_SFC Directory for model surface climatological data.
# Default is $OROFIX/sfc.
# EXECgfs Directory of the program executable. Defaults to
Expand All @@ -55,46 +54,46 @@
# CYCLEXEC Program executable.
# Defaults to ${EXECgfs}/global_cycle$XC
# FNGLAC Input glacier climatology GRIB file.
# Defaults to ${FIXam}/global_glacier.2x2.grb
# Defaults to ${FIXgfs}/am/global_glacier.2x2.grb
# FNMXIC Input maximum sea ice climatology GRIB file.
# Defaults to ${FIXam}/global_maxice.2x2.grb
# Defaults to ${FIXgfs}/am/global_maxice.2x2.grb
# FNTSFC Input SST climatology GRIB file.
# Defaults to ${FIXam}/RTGSST.1982.2012.monthly.clim.grb
# Defaults to ${FIXgfs}/am/RTGSST.1982.2012.monthly.clim.grb
# FNSALC Input Salinity climatology netcdf file.
# Defaults to ${FIXam}/global_salclm.t1534.3072.1536.nc
# Defaults to ${FIXgfs}/am/global_salclm.t1534.3072.1536.nc
# FNSNOC Input snow climatology GRIB file.
# Defaults to ${FIXam}/global_snoclim.1.875.grb
# Defaults to ${FIXgfs}/am/global_snoclim.1.875.grb
# FNZORC Input roughness climatology.
# Defaults to igbp vegetation type-based lookup table
# FNVETC must be set to igbp file:
# ${FIXam}/global_vegtype.igbp.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.rg.grb
# FNALBC Input 4-component albedo climatology GRIB file.
# defaults to ${FIXam}/global_snowfree_albedo.bosu.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.rg.grb
# defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.snowfree_albedo.tileX.nc
# FNALBC2 Input 'facsf' and 'facwf' albedo climatology GRIB file.
# Defaults to ${FIXam}/global_albedo4.1x1.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.facsf.tileX.nc
# FNAISC Input sea ice climatology GRIB file.
# Defaults to ${FIXam}/IMS-NIC.blended.ice.monthly.clim.grb
# Defaults to ${FIXgfs}/am/IMS-NIC.blended.ice.monthly.clim.grb
# FNTG3C Input deep soil temperature climatology GRIB file.
# Defaults to ${FIXam}/global_tg3clim.2.6x1.5.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.substrate_temperature.tileX.nc
# FNVEGC Input vegetation fraction climatology GRIB file.
# Defaults to ${FIXam}/global_vegfrac.0.144.decpercent.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc
# FNVETC Input vegetation type climatology GRIB file.
# Defaults to ${FIXam}/global_vegtype.igbp.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.rg.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.vegetation_type.tileX.nc
# FNSOTC Input soil type climatology GRIB file.
# Defaults to ${FIXam}/global_soiltype.statsgo.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.rg.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.soil_type.tileX.nc
# FNSMCC Input soil moisture climatology GRIB file.
# Defaults to ${FIXam}/global_soilmgldas.statsgo.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.grb
# Defaults to ${FIXgfs}/am/global_soilmgldas.statsgo.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.grb
# FNVMNC Input min veg frac climatology GRIB file.
# Defaults to ${FIXam}/global_shdmin.0.144x0.144.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc
# FNVMXC Input max veg frac climatology GRIB file.
# Defaults to ${FIXam}/global_shdmax.0.144x0.144.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc
# FNSLPC Input slope type climatology GRIB file.
# Defaults to ${FIXam}/global_slope.1x1.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.slope_type.tileX.nc
# FNABSC Input max snow albedo climatology GRIB file.
# Defaults to ${FIXam}/global_mxsnoalb.uariz.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.rg.grb
# Defaults to ${FIX_SFC}/${CASE}.mx${OCNRES}.maximum_snow_albedo.tileX.nc
# FNMSKH Input high resolution land mask GRIB file. Use to set mask for
# some of the input climatology fields. This is NOT the model mask.
# Defaults to ${FIXam}/seaice_newland.grb
# Defaults to ${FIXgfs}/am/global_slmask.t1534.3072.1536.grb
# NST_FILE GSI file on the gaussian grid containing NST increments.
# Defaults to NULL (no file).
# FNTSFA Input SST analysis GRIB file.
Expand Down Expand Up @@ -236,9 +235,8 @@ gfs_ver=${gfs_ver:-v15.0.0}
BASEDIR=${BASEDIR:-${NWROOT:-/nwprod2}}
HOMEgfs=${HOMEgfs:-$BASEDIR/gfs_ver.${gfs_ver}}
EXECgfs=${EXECgfs:-$HOMEgfs/exec}
FIX_DIR=${FIX_DIR:-$HOMEgfs/fix}
FIXam=${FIXam:-$FIX_DIR/am}
OROFIX=${OROFIX:-$FIX_DIR/orog/${CASE}}
FIXgfs=${FIXgfs:-$HOMEgfs/fix}
OROFIX=${OROFIX:-$FIXgfs/orog/${CASE}}
FIX_SFC=${FIX_SFC:-$OROFIX/sfc}
DATA=${DATA:-$(pwd)}
COMIN=${COMIN:-$(pwd)}
Expand Down Expand Up @@ -278,14 +276,14 @@ zsea2=${zsea2:-0}
MAX_TASKS_CY=${MAX_TASKS_CY:-99999}
FRAC_GRID=${FRAC_GRID:-.false.}

FNGLAC=${FNGLAC:-${FIXam}/global_glacier.2x2.grb}
FNMXIC=${FNMXIC:-${FIXam}/global_maxice.2x2.grb}
FNTSFC=${FNTSFC:-${FIXam}/RTGSST.1982.2012.monthly.clim.grb}
FNSALC=${FNSALC:-${FIXam}/global_salclm.t1534.3072.1536.nc}
FNSNOC=${FNSNOC:-${FIXam}/global_snoclim.1.875.grb}
FNGLAC=${FNGLAC:-${FIXgfs}/am/global_glacier.2x2.grb}
FNMXIC=${FNMXIC:-${FIXgfs}/am/global_maxice.2x2.grb}
FNTSFC=${FNTSFC:-${FIXgfs}/am/RTGSST.1982.2012.monthly.clim.grb}
FNSALC=${FNSALC:-${FIXgfs}/am/global_salclm.t1534.3072.1536.nc}
FNSNOC=${FNSNOC:-${FIXgfs}/am/global_snoclim.1.875.grb}
FNZORC=${FNZORC:-igbp}
FNAISC=${FNAISC:-${FIXam}/IMS-NIC.blended.ice.monthly.clim.grb}
FNSMCC=${FNSMCC:-${FIXam}/global_soilmgldas.statsgo.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.grb}
FNAISC=${FNAISC:-${FIXgfs}/am/IMS-NIC.blended.ice.monthly.clim.grb}
FNSMCC=${FNSMCC:-${FIXgfs}/am/global_soilmgldas.statsgo.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.grb}
FNALBC2=${FNALBC2:-${FIX_SFC}/${CASE}.mx${OCNRES}.facsf.tileX.nc}
FNTG3C=${FNTG3C:-${FIX_SFC}/${CASE}.mx${OCNRES}.substrate_temperature.tileX.nc}
FNVEGC=${FNVEGC:-${FIX_SFC}/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc}
Expand All @@ -296,7 +294,7 @@ FNABSC=${FNABSC:-${FIX_SFC}/${CASE}.mx${OCNRES}.maximum_snow_albedo.tileX.nc}
FNVMNC=${FNVMNC:-${FIX_SFC}/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc}
FNVMXC=${FNVMXC:-${FIX_SFC}/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc}
FNSLPC=${FNSLPC:-${FIX_SFC}/${CASE}.mx${OCNRES}.slope_type.tileX.nc}
FNMSKH=${FNMSKH:-${FIXam}/global_slmask.t1534.3072.1536.grb}
FNMSKH=${FNMSKH:-${FIXgfs}/am/global_slmask.t1534.3072.1536.grb}
NST_FILE=${NST_FILE:-"NULL"}
LND_SOI_FILE=${LND_SOI_FILE:-"NULL"}
FNTSFA=${FNTSFA:-${COMIN}/${PREINP}sstgrb${SUFINP}}
Expand Down Expand Up @@ -330,7 +328,7 @@ ln -fs $FNTSFC sstclm
ln -fs $FNSALC salclm

# If the appropriate resolution fix file is not present, use the highest resolution available (T1534)
[[ ! -f $FNSMCC ]] && FNSMCC="$FIXam/global_soilmgldas.statsgo.t1534.3072.1536.grb"
[[ ! -f $FNSMCC ]] && FNSMCC="$FIXgfs/am/global_soilmgldas.statsgo.t1534.3072.1536.grb"

################################################################################
# Make surface analysis
Expand Down
5 changes: 2 additions & 3 deletions ush/global_cycle_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ pwd=$(pwd)
export NWPROD=${NWPROD:-$pwd}
export DMPDIR=${DMPDIR:-$NWPROD}
export HOMEgfs=${HOMEgfs:-$NWPROD/gfs.v15.0.0}
export FIX_DIR=${FIX_DIR:-$HOMEgfs/fix}
export FIXam=${FIXam:-$FIX_DIR/am}
export OROFIX=${OROFIX:-$FIX_DIR/orog/${CASE}}
export FIXgfs=${FIXgfs:-$HOMEgfs/fix}
export OROFIX=${OROFIX:-$FIXgfs/orog/${CASE}}
export FIX_SFC=${FIX_SFC:-$OROFIX/sfc}

ntiles=${ntiles:-6}
Expand Down

0 comments on commit 4d4df62

Please sign in to comment.