Skip to content

Commit

Permalink
modified extractvars files
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMFernando-NOAA committed Jan 16, 2025
1 parent 8e34b37 commit 1adfe47
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 212 deletions.
5 changes: 5 additions & 0 deletions jobs/JGLOBAL_EXTRACTVARS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "extractvars" -c "base extractvars"
source "${USHgfs}/wave_domain_grid.sh"

# Set COM Paths
for grid in '0p25' '0p50' '1p00'; do
Expand All @@ -19,6 +20,10 @@ YMD="${PDY}" HH="${cyc}" declare_from_tmpl -rx \
"COMIN_ICE_NETCDF:COM_ICE_NETCDF_TMPL" \
"COMIN_WAVE_GRID:COM_WAVE_GRID_TMPL"

process_grdID "${waveGRD}"
YMD=${PDY} HH=${cyc} GRDRESNAME=${grdNAME} declare_from_tmpl -rx \
"COMIN_WAVE_GRID_${GRDREGION}_${GRDRES}:COM_WAVE_GRID_RES_TMPL"

if [[ "${DO_ATM}" == "YES" ]]; then
if [[ ! -d "${ARC_RFCST_PROD_ATMOS_F2D}" ]]; then mkdir -p "${ARC_RFCST_PROD_ATMOS_F2D}"; fi
if [[ ! -d "${ARC_RFCST_PROD_ATMOS_F3D}" ]]; then mkdir -p "${ARC_RFCST_PROD_ATMOS_F3D}"; fi
Expand Down
86 changes: 0 additions & 86 deletions parm/archive/gefs_extracted_atmos.yaml.j2

This file was deleted.

33 changes: 0 additions & 33 deletions parm/archive/gefs_extracted_ice.yaml.j2

This file was deleted.

40 changes: 0 additions & 40 deletions parm/archive/gefs_extracted_ocean.yaml.j2

This file was deleted.

52 changes: 0 additions & 52 deletions parm/archive/gefs_extracted_wave.yaml.j2

This file was deleted.

7 changes: 6 additions & 1 deletion ush/wave_extractvars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
#######################

source "${USHgfs}/preamble.sh"
source "${USHgfs}/wave_domain_grid.sh"

process_grdID "${waveGRD}"
com_varname="COMOUT_WAVE_GRID_${GRDREGION}_${GRDRES}"
com_dir=${!com_varname}

subdata=${1}

Expand All @@ -18,7 +23,7 @@ subdata=${1}
for (( nh = FHOUT_WAV_EXTRACT; nh <= FHMAX_WAV; nh = nh + FHOUT_WAV_EXTRACT )); do
fnh=$(printf "%3.3d" "${nh}")

infile=${COMIN_WAVE_GRID}/${RUN}wave.t${cyc}z.global.${wavres}.f${fnh}.grib2
infile=${com_dir}/${RUN}wave.t${cyc}z.global.${wavres}.f${fnh}.grib2
outfile=${subdata}/${RUN}wave.t${cyc}z.global.${wavres}.f${fnh}.grib2
rm -f "${outfile}" # Remove outfile if it already exists before extraction

Expand Down

0 comments on commit 1adfe47

Please sign in to comment.