Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update directory names for global workflow #899

Merged
19 changes: 9 additions & 10 deletions scripts/exemcsfc_global_sfc_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ RUN=${RUN:-"gfs"}
export HOMEgfs=${HOMEgfs:-$NWROOT/gfs.${gfs_ver:?}}
export USHgfs=${USHgfs:-$HOMEgfs/ush}
export FIXgfs=${FIXgfs:-$HOMEgfs/fix}
FIXgfs_am=${FIXgfs_am:-$HOMEgfs/fix/am}
export EXECgfs=${EXECgfs:-$HOMEgfs/exec}

# output com directory.
Expand Down Expand Up @@ -116,7 +115,7 @@ export IMS_FILE=${IMS_FILE:-"ims.grib2"}
export FIVE_MIN_ICE_FILE=${FIVE_MIN_ICE_FILE:-"seaice.5min.grib2"}

# landmask file for global 5-minute data (grib 2)
export FIVE_MIN_ICE_MASK_FILE=${FIVE_MIN_ICE_MASK_FILE:-${FIXgfs_am}/emcsfc_gland5min.grib2}
export FIVE_MIN_ICE_MASK_FILE=${FIVE_MIN_ICE_MASK_FILE:-${FIXgfs}/am/emcsfc_gland5min.grib2}

# the output ice blend data (grib)
export BLENDED_ICE_FILE=${BLENDED_ICE_FILE:-seaice.5min.blend}
Expand Down Expand Up @@ -182,10 +181,10 @@ LATB=${LATB:-"1536"}

resolution="${JCAP}.${LONB}.${LATB}"

export MODEL_SLMASK_FILE=${SLMASK:-$FIXgfs_am/global_slmask.t${resolution}.grb}
export MODEL_LATITUDE_FILE=${MDL_LATS:-$FIXgfs_am/global_latitudes.t${resolution}.grb}
export MODEL_LONGITUDE_FILE=${MDL_LONS:-$FIXgfs_am/global_longitudes.t${resolution}.grb}
export GFS_LONSPERLAT_FILE=${LONSPERLAT:-$FIXgfs_am/global_lonsperlat.t${resolution}.txt}
export MODEL_SLMASK_FILE=${SLMASK:-${FIXgfs}/am/global_slmask.t${resolution}.grb}
export MODEL_LATITUDE_FILE=${MDL_LATS:-${FIXgfs}/am/global_latitudes.t${resolution}.grb}
export MODEL_LONGITUDE_FILE=${MDL_LONS:-${FIXgfs}/am/global_longitudes.t${resolution}.grb}
export GFS_LONSPERLAT_FILE=${LONSPERLAT:-${FIXgfs}/am/global_lonsperlat.t${resolution}.txt}
export MODEL_SNOW_FILE=${FNSNOAJCAP:-${RUN}.${cycle}.snogrb_t${resolution}}
export MODEL_SNOW_FILE_m6hrs=${FNSNOGJCAP:-${COMINgfs_m6hrs}/${RUN}.${cycle_m6hrs}.snogrb_t${resolution}}

Expand Down Expand Up @@ -240,10 +239,10 @@ LATB_ENKF=${LATB_ENKF:-"576"}

resolution="${JCAP_ENKF}.${LONB_ENKF}.${LATB_ENKF}"

export MODEL_SLMASK_FILE=${SLMASK_ENKF:-$FIXgfs_am/global_slmask.t${resolution}.grb}
export MODEL_LATITUDE_FILE=${MDL_LATS_ENKF:-$FIXgfs_am/global_latitudes.t${resolution}.grb}
export MODEL_LONGITUDE_FILE=${MDL_LONS_ENKF:-$FIXgfs_am/global_longitudes.t${resolution}.grb}
export GFS_LONSPERLAT_FILE=${LONSPERLAT_ENKF:-$FIXgfs_am/global_lonsperlat.t${resolution}.txt}
export MODEL_SLMASK_FILE=${SLMASK_ENKF:-${FIXgfs}/am/global_slmask.t${resolution}.grb}
export MODEL_LATITUDE_FILE=${MDL_LATS_ENKF:-${FIXgfs}/am/global_latitudes.t${resolution}.grb}
export MODEL_LONGITUDE_FILE=${MDL_LONS_ENKF:-${FIXgfs}/am/global_longitudes.t${resolution}.grb}
export GFS_LONSPERLAT_FILE=${LONSPERLAT_ENKF:-${FIXgfs}/am/global_lonsperlat.t${resolution}.txt}
export MODEL_SNOW_FILE=${FNSNOAJCAP_ENKF:-${RUN}.${cycle}.snogrb_t${resolution}}
export MODEL_SNOW_FILE_m6hrs=${FNSNOGJCAP_ENKF:-${COMINgfs_m6hrs}/${RUN}.${cycle_m6hrs}.snogrb_t${resolution}}

Expand Down
9 changes: 4 additions & 5 deletions ush/emcsfc_ice_blend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,18 @@ cd $DATA
SENDCOM=${SENDCOM:-"NO"}

envir=${envir:-"prod"}
NWROOT=${NWROOT:-"/nw${envir}"}

HOMEgfs=${HOMEgfs:-${NWPROD:-$NWROOT/gfs.${gfs_ver:?}}}
FIXam=${FIXam:-$HOMEgfs/fix/am}
HOMEgfs=${HOMEgfs:-/nw${envir}/gfs.${gfs_ver:?}}
GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved
EXECgfs=${EXECgfs:-$HOMEgfs/exec}

FIXgfs=${FIXgfs:-$HOMEgfs/fix}

# output com directory.
COMOUT=${COMOUT:-$PWD}

# the input data. ims may be grib1 or grib2. five_min files are grib 2.
IMS_FILE=${IMS_FILE:-"ims.grib2"}
FIVE_MIN_ICE_FILE=${FIVE_MIN_ICE_FILE:-"seaice.5min.grib2"}
FIVE_MIN_ICE_MASK_FILE=${FIVE_MIN_ICE_MASK_FILE:-${FIXam}/emcsfc_gland5min.grib2}
FIVE_MIN_ICE_MASK_FILE=${FIVE_MIN_ICE_MASK_FILE:-${FIXgfs}/am/emcsfc_gland5min.grib2}

# the output ice blend data (grib)
BLENDED_ICE_FILE=${BLENDED_ICE_FILE:-seaice.5min.blend}
Expand Down
7 changes: 3 additions & 4 deletions ush/emcsfc_snow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ fi
#------------------------------------------------------------------------

envir=${envir:-"prod"}
NWROOT=${NWROOT:-"/nw${envir}"}
HOMEgfs=${HOMEgfs:-$NWROOT/gfs.${gfs_ver:?}}
HOMEgfs=${HOMEgfs:-/nw${envir}/gfs.${gfs_ver:?}}
GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved
EXECgfs=${EXECgfs:-$HOMEgfs/exec}
FIXam=${FIXam:-$HOMEgfs/fix/am}
FIXgfs=${FIXgfs:-$HOMEgfs/fix}

COMOUT=${COMOUT:-$PWD}

Expand Down Expand Up @@ -114,7 +113,7 @@ IMS_FILE=${IMS_FILE:-"imssnow96.grb.grib2"}
# File of snow cover climo used to qc the input snow data
#------------------------------------------------------------------------

CLIMO_QC=${CLIMO_QC:-${FIXam}/emcsfc_snow_cover_climo.grib2}
CLIMO_QC=${CLIMO_QC:-${FIXgfs}/am/emcsfc_snow_cover_climo.grib2}

#------------------------------------------------------------------------
# Output snow analysis on model grid
Expand Down
81 changes: 39 additions & 42 deletions ush/global_cycle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,20 @@
#
# 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.
# BASEDIR Root directory where all scripts and fixed files reside.
# Default is /nwprod2.
# OCNRES Ocean grid resolution. '100' is one degree.
# 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
# nwprod/gfs.v15.0.0.
# envir Environment - i.e., 'prod' or 'para'. Default is 'prod'.
# 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 +53,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
GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved
# 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 @@ -233,12 +231,11 @@ OCNRES=${OCNRES:-100}

# Directories.
gfs_ver=${gfs_ver:-v15.0.0}
BASEDIR=${BASEDIR:-${NWROOT:-/nwprod2}}
HOMEgfs=${HOMEgfs:-$BASEDIR/gfs_ver.${gfs_ver}}
envir=${envir:-prod}
HOMEgfs=${HOMEgfs:-/nw${envir}/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}
GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved
DATA=${DATA:-$(pwd)}
COMIN=${COMIN:-$(pwd)}
Expand Down Expand Up @@ -278,14 +275,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 +293,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 +327,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
12 changes: 6 additions & 6 deletions ush/global_cycle_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export CDUMP=${CDUMP:-gfs} # gfs or gdas
export COMPONENT=${COMPONENT:-atmos}

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 DMPDIR=${DMPDIR:-$pwd}
export envir=${envir:-prod}
export gfs_ver=${gfs_ver:-v15.0.0}
export HOMEgfs=${HOMEgfs:-/nw${envir}/gfs.${gfs_ver}}
GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved
export FIXgfs=${FIXgfs:-$HOMEgfs/fix}
export OROFIX=${OROFIX:-$FIXgfs/orog/${CASE}}
export FIX_SFC=${FIX_SFC:-$OROFIX/sfc}
GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved

ntiles=${ntiles:-6}
Expand Down
Loading