Skip to content

Commit

Permalink
Update sfc_climo_gen utility for new orog data.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Dec 13, 2023
1 parent 292af0b commit 6678129
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions util/sfc_climo_gen/sfc_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
#
# Set the following variables:
#
# res - Grid resolution. Example: 384 or 384.mx025.
# res - Grid resolution. Example: 384.
#
# ocn - Ocean grid resolution. Example: 025.
# Comment out to use uncoupled grids.
#
# FIX_FV3 - Location of the pre-existing 'grid' and 'orography'
# files. Defaults to ${BASE_DIR}/fix/orog/C${res}, where
Expand All @@ -19,10 +22,13 @@
#
# 'grid' files - C${res}_grid.tile7.halo${HALO}.nc (regional grids).
# C${res}_grid.tile[1-6].nc (global grids).
# Note: 'res' without the 'mx' extension.
#
# 'orog' files - C${res}_oro_data.tile7.halo${HALO}.nc (regional grids).
# C${res}_oro_data.tile[1-6].nc (global grids).
# 'orog' files - When $ocn is not set:
# - C${res}_oro_data.tile7.halo${HALO}.nc (regional grids).
# - C${res}_oro_data.tile[1-6].nc (global grids).
#
# When $ocn is set:
# - C${res}.mx${ocn}_oro_data.tile[1-6].nc (global grids).
#
# GRIDTYPE - set to 'regional' for regional grids. Otherwise,
# comment out.
Expand Down Expand Up @@ -65,7 +71,8 @@

set -x

export res=768.mx025
export res=768
export ocn=025

#HALO=4
#export GRIDTYPE=regional
Expand All @@ -76,7 +83,7 @@ export veg_type_src="viirs.v3.igbp.30s"
export soil_type_src="bnu.v3.30s"

export WORK_DIR=/scratch1/NCEPDEV/stmp2/$LOGNAME/work.sfc
export SAVE_DIR=/scratch1/NCEPDEV/stmp2/$LOGNAME/sfc.C${res}
export SAVE_DIR=/scratch1/NCEPDEV/stmp2/$LOGNAME/sfc.save

export FIX_FV3=${BASE_DIR}/fix/orog/C${res}

Expand All @@ -101,8 +108,7 @@ if [[ "$GRIDTYPE" = "regional" ]]; then
HALO=$(( $HALO + 1 ))
export HALO
else
res2=${res//".mx"*}
export mosaic_file=$FIX_FV3/C${res2}_mosaic.nc
export mosaic_file=$FIX_FV3/C${res}_mosaic.nc
fi

export input_sfc_climo_dir=${BASE_DIR}/fix/sfc_climo
Expand Down

0 comments on commit 6678129

Please sign in to comment.