Skip to content

Commit

Permalink
Update FIX variables in the snow and ice blend scripts.
Browse files Browse the repository at this point in the history
Fixes #897.
  • Loading branch information
GeorgeGayno-NOAA committed Feb 16, 2024
1 parent 7addff5 commit 89bb1e1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
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
4 changes: 2 additions & 2 deletions ush/emcsfc_ice_blend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ envir=${envir:-"prod"}
NWROOT=${NWROOT:-"/nw${envir}"}

HOMEgfs=${HOMEgfs:-${NWPROD:-$NWROOT/gfs.${gfs_ver:?}}}
FIXam=${FIXam:-$HOMEgfs/fix/am}
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
4 changes: 2 additions & 2 deletions ush/emcsfc_snow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ envir=${envir:-"prod"}
NWROOT=${NWROOT:-"/nw${envir}"}
HOMEgfs=${HOMEgfs:-$NWROOT/gfs.${gfs_ver:?}}
EXECgfs=${EXECgfs:-$HOMEgfs/exec}
FIXam=${FIXam:-$HOMEgfs/fix/am}
FIXgfs=${FIXgfs:-$HOMEgfs/fix}

COMOUT=${COMOUT:-$PWD}

Expand Down Expand Up @@ -114,7 +114,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

0 comments on commit 89bb1e1

Please sign in to comment.