Skip to content

Commit

Permalink
Fix analysis location for eobs
Browse files Browse the repository at this point in the history
The enkf obs job was looking in the wrong directory for the
deterministic analysis files following the prior commit changing
the `$RUN` for EnKF.

Refs: #1298
  • Loading branch information
WalterKolczynski-NOAA committed Feb 13, 2023
1 parent 3dfc5ec commit 73786ca
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions jobs/JGDAS_ENKF_SELECT_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export CDUMP_OBS=${CDUMP_OBS:-${CDUMP/enkf}}

export OPREFIX="${CDUMP_OBS}.t${cyc}z."
export APREFIX="${CDUMP}.t${cyc}z."
export GPREFIX_DET="${GDUMP}.t${gcyc}z."
export APREFIX_ANL="${CDUMP/enkf}.t${cyc}z."
export GPREFIX_CTL="${GDUMP}.t${gcyc}z."
export GPREFIX="${GDUMP_ENS}.t${gcyc}z."
export GSUFFIX=".ensmean.nc"

Expand All @@ -43,12 +44,11 @@ fi

# COMIN_GES, COMIN_ANL COMIN_GES_ENS, and COMOUT are used in script
COMIN_GES_CTL="${ROTDIR}/gdas.${gPDY}/${gcyc}/${COMPONENT}"
export COMIN_ANL="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENT}"
export COMIN_ANL="${ROTDIR}/${CDUMP/enkf}.${PDY}/${cyc}/${COMPONENT}"
export COMIN_GES_ENS="${ROTDIR}/enkfgdas.${gPDY}/${gcyc}"
export COMIN_GES=${COMIN_GES_ENS}
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}"


export ATMGES_ENSMEAN="${COMIN_GES_ENS}/${GPREFIX}atmf006${GSUFFIX}"
if [[ ! -f ${ATMGES_ENSMEAN} ]]; then
echo "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}"
Expand All @@ -70,11 +70,17 @@ if [[ ${DONST} = "YES" ]]; then
fi
export PREPQCPF="${COMIN_OBS}/${OPREFIX}prepbufr.acft_profiles"

# Deterministic analysis and increment files
export SFCANL="${COMIN_ANL}/${APREFIX_ANL}sfcanl.nc"
export DTFANL="${COMIN_ANL}/${APREFIX_ANL}dtfanl.nc"
export ATMANL="${COMIN_ANL}/${APREFIX_ANL}atmanl.nc"
export ATMINC="${COMIN_ANL}/${APREFIX_ANL}atminc.nc"

# Guess Bias correction coefficients related to control
export GBIAS=${COMIN_GES_CTL}/${GPREFIX_DET}abias
export GBIASPC=${COMIN_GES_CTL}/${GPREFIX_DET}abias_pc
export GBIASAIR=${COMIN_GES_CTL}/${GPREFIX_DET}abias_air
export GRADSTAT=${COMIN_GES_CTL}/${GPREFIX_DET}radstat
export GBIAS=${COMIN_GES_CTL}/${GPREFIX_CTL}abias
export GBIASPC=${COMIN_GES_CTL}/${GPREFIX_CTL}abias_pc
export GBIASAIR=${COMIN_GES_CTL}/${GPREFIX_CTL}abias_air
export GRADSTAT=${COMIN_GES_CTL}/${GPREFIX_CTL}radstat

# Bias correction coefficients related to ensemble mean
export ABIAS="${COMOUT}/${APREFIX}abias.ensmean"
Expand Down

0 comments on commit 73786ca

Please sign in to comment.