From 2794d413d083b43d9ba37a15375d5c61b610d29e Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Tue, 4 Jun 2024 09:35:04 -0400 Subject: [PATCH] Use FIXorog instead of FIXgfs/orog in global_cycle scripts (#956) Replace FIXgfs/orog with variable FIXorog in global_cycle_driver.sh and global_cycle.sh. FIXorog is defaulted to FIXgfs/orog. Fixes #955. --- ush/global_cycle.sh | 42 ++++++++++++++++++++------------------ ush/global_cycle_driver.sh | 7 ++++--- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/ush/global_cycle.sh b/ush/global_cycle.sh index 4ce053751..53e8324f4 100755 --- a/ush/global_cycle.sh +++ b/ush/global_cycle.sh @@ -30,6 +30,7 @@ # PACKAGEROOT/gfs.v15.0.0. # PACKAGEROOT Location of gfs package. # FIXgfs Directory for fixed data. Default is $HOMEgfs/fix. +# FIXorog Directory for fixed orography data. Default is $FIXgfs/orog # EXECgfs Directory of the program executable. Defaults to # $HOMEgfs/exec # DATA Working directory @@ -63,29 +64,29 @@ # FNVETC must be set to igbp file: # ${FIXgfs}/am/global_vegtype.igbp.t$JCAP_CASE.$LONB_CASE.$LATB_CASE.rg.grb # FNALBC Input 4-component albedo climatology GRIB file. -# defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.snowfree_albedo.tileX.nc +# defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.snowfree_albedo.tileX.nc # FNALBC2 Input 'facsf' and 'facwf' albedo climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.facsf.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.facsf.tileX.nc # FNAISC Input sea ice climatology GRIB file. # Defaults to ${FIXgfs}/am/IMS-NIC.blended.ice.monthly.clim.grb # FNTG3C Input deep soil temperature climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.substrate_temperature.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.substrate_temperature.tileX.nc # FNVEGC Input vegetation fraction climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc # FNVETC Input vegetation type climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_type.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_type.tileX.nc # FNSOTC Input soil type climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.soil_type.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.soil_type.tileX.nc # FNSMCC Input soil moisture climatology GRIB file. # 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 ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc # FNVMXC Input max veg frac climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc # FNSLPC Input slope type climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.slope_type.tileX.nc +# Defaults to ${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.slope_type.tileX.nc # FNABSC Input max snow albedo climatology GRIB file. -# Defaults to ${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.maximum_snow_albedo.tileX.nc +# Defaults to ${FIXorog}/${CASE}/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 ${FIXgfs}/am/global_slmask.t1534.3072.1536.grb @@ -233,6 +234,7 @@ PACKAGEROOT=${PACKAGEROOT:-/lfs/h1/ops/prod/packages} HOMEgfs=${HOMEgfs:-${PACKAGEROOT}/gfs_ver.${gfs_ver}} EXECgfs=${EXECgfs:-$HOMEgfs/exec} FIXgfs=${FIXgfs:-$HOMEgfs/fix} +FIXorog=${FIXorog:-$FIXgfs/orog} DATA=${DATA:-$(pwd)} COMIN=${COMIN:-$(pwd)} COMOUT=${COMOUT:-$(pwd)} @@ -281,16 +283,16 @@ FNSNOC=${FNSNOC:-${FIXgfs}/am/global_snoclim.1.875.grb} FNZORC=${FNZORC:-igbp} 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:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.facsf.tileX.nc} -FNTG3C=${FNTG3C:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.substrate_temperature.tileX.nc} -FNVEGC=${FNVEGC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc} -FNALBC=${FNALBC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.snowfree_albedo.tileX.nc} -FNVETC=${FNVETC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_type.tileX.nc} -FNSOTC=${FNSOTC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.soil_type.tileX.nc} -FNABSC=${FNABSC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.maximum_snow_albedo.tileX.nc} -FNVMNC=${FNVMNC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc} -FNVMXC=${FNVMXC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc} -FNSLPC=${FNSLPC:-${FIXgfs}/orog/${CASE}/sfc/${CASE}.mx${OCNRES}.slope_type.tileX.nc} +FNALBC2=${FNALBC2:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.facsf.tileX.nc} +FNTG3C=${FNTG3C:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.substrate_temperature.tileX.nc} +FNVEGC=${FNVEGC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc} +FNALBC=${FNALBC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.snowfree_albedo.tileX.nc} +FNVETC=${FNVETC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_type.tileX.nc} +FNSOTC=${FNSOTC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.soil_type.tileX.nc} +FNABSC=${FNABSC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.maximum_snow_albedo.tileX.nc} +FNVMNC=${FNVMNC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc} +FNVMXC=${FNVMXC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.vegetation_greenness.tileX.nc} +FNSLPC=${FNSLPC:-${FIXorog}/${CASE}/sfc/${CASE}.mx${OCNRES}.slope_type.tileX.nc} FNMSKH=${FNMSKH:-${FIXgfs}/am/global_slmask.t1534.3072.1536.grb} NST_FILE=${NST_FILE:-"NULL"} FNTSFA=${FNTSFA:-${COMIN}/${PREINP}sstgrb${SUFINP}} diff --git a/ush/global_cycle_driver.sh b/ush/global_cycle_driver.sh index 3f8b4d2e6..a22915d53 100755 --- a/ush/global_cycle_driver.sh +++ b/ush/global_cycle_driver.sh @@ -20,6 +20,7 @@ export PACKAGEROOT=${PACKAGEROOT:-/lfs/h1/ops/prod/packages} export gfs_ver=${gfs_ver:-v15.0.0} export HOMEgfs=${HOMEgfs:-${PACKAGEROOT}/gfs.${gfs_ver}} export FIXgfs=${FIXgfs:-$HOMEgfs/fix} +export FIXorog=${FIXorog:-$FIXgfs/orog} ntiles=${ntiles:-6} DONST=${DONST:-"NO"} @@ -87,11 +88,11 @@ for n in $(seq 1 $ntiles); do chmod 644 $COMOUT/$PDY.${cyc}0000.sfcanl_data.tile${n}.nc ln -fs $COMOUT/$PDY.${cyc}0000.sfcanl_data.tile${n}.nc $DATA/fnbgso.00$n - ln -fs $FIXgfs/orog/${CASE}/C${CRES}_grid.tile${n}.nc $DATA/fngrid.00$n + ln -fs $FIXorog/${CASE}/C${CRES}_grid.tile${n}.nc $DATA/fngrid.00$n if (( OCNRES > 9999 ));then - ln -fs $FIXgfs/orog/${CASE}/C${CRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n + ln -fs $FIXorog/${CASE}/C${CRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n else - ln -fs $FIXgfs/orog/${CASE}/C${CRES}.mx${OCNRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n + ln -fs $FIXorog/${CASE}/C${CRES}.mx${OCNRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n fi if [[ "$DO_SNO_INC_JEDI" == ".true." ]] ; then