-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify workflow to access files from obs component #1202
Changes from 16 commits
af35fd9
40c930c
cffd37a
1888a7d
b62030b
21cdf29
ce62f2f
ca5e63a
b2a36c0
5ce3364
6d95e54
a3a5619
aa1c253
7715189
031355b
e97b991
d2d0e8a
58a7eab
2bacc00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -38,8 +38,8 @@ if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then | |||||
else | ||||||
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMOUT_ENS="${ROTDIR}/enkfgdas.${PDY}/${cyc}" | ||||||
export COMIN_OBS="${DMPDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_GES_OBS="${DMPDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos" | ||||||
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
fi | ||||||
mkdir -m 775 -p ${COMOUT} | ||||||
# COMIN_GES and COMIN_GES_ENS are used in script | ||||||
|
@@ -60,7 +60,7 @@ status=$? | |||||
############################################## | ||||||
# Final processing | ||||||
############################################## | ||||||
if [ -e "${pgmout}" ] ; then | ||||||
if [[ -e "${pgmout}" ]] ; then | ||||||
cat ${pgmout} | ||||||
fi | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -25,7 +25,7 @@ export CASE=${CASE_ENKF} | |||||
|
||||||
|
||||||
EUPD_CYC=$(echo ${EUPD_CYC:-"gdas"} | tr a-z A-Z) | ||||||
if [ ${EUPD_CYC} = "GFS" ]; then | ||||||
if [[ ${EUPD_CYC} = "GFS" ]]; then | ||||||
CDUMP_ENKF="gfs" | ||||||
else | ||||||
CDUMP_ENKF=${CDUMP} | ||||||
|
@@ -42,8 +42,8 @@ if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then | |||||
export COMIN_OBS=${COMIN_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${RUN}.${PDY}/${cyc}/atmos} | ||||||
export COMIN_GES_OBS=${COMIN_GES_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${GDUMP}.${gPDY}/${gcyc}/atmos} | ||||||
else | ||||||
export COMIN_OBS="${DMPDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_GES_OBS="${DMPDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos" | ||||||
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
fi | ||||||
|
||||||
# COMIN, COMIN_ENS and COMIN_GES_ENS are used in script | ||||||
|
@@ -68,7 +68,7 @@ status=$? | |||||
############################################## | ||||||
# Final processing | ||||||
############################################## | ||||||
if [ -e "${pgmout}" ] ; then | ||||||
if [[ -e "${pgmout}" ]] ; then | ||||||
cat ${pgmout} | ||||||
fi | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -36,8 +36,8 @@ if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then | |||||
export COMIN_OBS=${COMIN_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${RUN}.${PDY}/${cyc}/${COMPONENT}} | ||||||
export COMIN_GES_OBS=${COMIN_GES_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${GDUMP}.${gPDY}/${gcyc}/${COMPONENT}} | ||||||
else | ||||||
export COMIN_OBS="${DMPDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENT}" | ||||||
export COMIN_GES_OBS="${DMPDIR}/${GDUMP}.${gPDY}/${gcyc}/${COMPONENT}" | ||||||
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
fi | ||||||
|
||||||
# COMIN_GES, COMIN_ANL COMIN_GES_ENS, and COMOUT are used in script | ||||||
|
@@ -49,7 +49,7 @@ export COMOUT="${ROTDIR}/enkf${CDUMP}.${PDY}/${cyc}" | |||||
|
||||||
|
||||||
export ATMGES_ENSMEAN="${COMIN_GES_ENS}/${GPREFIX}atmf006${GSUFFIX}" | ||||||
if [ ! -f ${ATMGES_ENSMEAN} ]; then | ||||||
if [[ ! -f ${ATMGES_ENSMEAN} ]]; then | ||||||
echo "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}" | ||||||
exit 1 | ||||||
fi | ||||||
|
@@ -60,23 +60,14 @@ status=$? | |||||
|
||||||
# Link observational data | ||||||
export PREPQC="${COMIN_OBS}/${OPREFIX}prepbufr" | ||||||
if [ ! -f ${PREPQC} ]; then | ||||||
if [[ ! -f ${PREPQC} ]]; then | ||||||
echo "WARNING: Global PREPBUFR FILE ${PREPQC} MISSING" | ||||||
fi | ||||||
export TCVITL="${COMIN_ANL}/${OPREFIX}syndata.tcvitals.tm00" | ||||||
if [[ ${DONST} = "YES" ]]; then | ||||||
if [[ ${MAKE_NSSTBUFR} == "YES" ]]; then | ||||||
export NSSTBF="${COMOUT}/${OPREFIX}nsstbufr" | ||||||
else | ||||||
export NSSTBF="${COMIN_OBS}/${OPREFIX}nsstbufr" | ||||||
fi | ||||||
fi | ||||||
|
||||||
if [[ ${MAKE_ACFTBUFR} == "YES" ]]; then | ||||||
export PREPQCPF="${COMOUT}/${OPREFIX}prepbufr.acft_profiles" | ||||||
else | ||||||
export PREPQCPF="${COMIN_OBS}/${OPREFIX}prepbufr.acft_profiles" | ||||||
export NSSTBF="${COMIN_OBS}/${OPREFIX}nsstbufr" | ||||||
fi | ||||||
export PREPQCPF="${COMIN_OBS}/${OPREFIX}prepbufr.acft_profiles" | ||||||
|
||||||
# Guess Bias correction coefficients related to control | ||||||
export GBIAS=${COMIN_GES_CTL}/${GPREFIX}abias | ||||||
|
@@ -123,7 +114,7 @@ status=$? | |||||
############################################## | ||||||
# Send Alerts | ||||||
############################################## | ||||||
if [ ${SENDDBN} = YES ] ; then | ||||||
if [[ ${SENDDBN} = YES ]] ; then | ||||||
${DBNROOT}/bin/dbn_alert MODEL ENKF1_MSC_gsistat ${job} ${GSISTAT} | ||||||
fi | ||||||
|
||||||
|
@@ -135,7 +126,7 @@ fi | |||||
############################################## | ||||||
# Final processing | ||||||
############################################## | ||||||
if [ -e "${pgmout}" ] ; then | ||||||
if [[ -e "${pgmout}" ]] ; then | ||||||
cat ${pgmout} | ||||||
fi | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -25,7 +25,7 @@ export CASE=${CASE_ENKF} | |||||
|
||||||
|
||||||
EUPD_CYC=$(echo ${EUPD_CYC:-"gdas"} | tr a-z A-Z) | ||||||
if [ ${EUPD_CYC} = "GFS" ]; then | ||||||
if [[ ${EUPD_CYC} = "GFS" ]]; then | ||||||
CDUMP_ENKF="gfs" | ||||||
else | ||||||
CDUMP_ENKF=${CDUMP} | ||||||
|
@@ -42,8 +42,8 @@ if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then | |||||
export COMIN_OBS=${COMIN_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${RUN}.${PDY}/${cyc}/atmos} | ||||||
export COMIN_GES_OBS=${COMIN_GES_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${GDUMP}.${gPDY}/${gcyc}/atmos} | ||||||
else | ||||||
export COMIN_OBS="${DMPDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_GES_OBS="${DMPDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos" | ||||||
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
fi | ||||||
|
||||||
# COMIN, COMIN_ENS and COMIN_GES_ENS are used in script | ||||||
|
@@ -69,7 +69,7 @@ status=$? | |||||
############################################## | ||||||
# Final processing | ||||||
############################################## | ||||||
if [ -e "${pgmout}" ] ; then | ||||||
if [[ -e "${pgmout}" ]] ; then | ||||||
cat ${pgmout} | ||||||
fi | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -38,8 +38,8 @@ if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then | |||||
export COMIN_GES_OBS=${COMIN_GES_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${GDUMP}.${gPDY}/${gcyc}/atmos} | ||||||
else | ||||||
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_OBS="${DMPDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_GES_OBS="${DMPDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos" | ||||||
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
fi | ||||||
mkdir -m 775 -p ${COMOUT} | ||||||
# COMIN_GES and COMIN_GES_ENS are used in script | ||||||
|
@@ -48,7 +48,7 @@ export COMIN_GES_ENS="${ROTDIR}/enkfgdas.${gPDY}/${gcyc}" | |||||
|
||||||
|
||||||
export ATMGES="${COMIN_GES}/${GPREFIX}atmf006${GSUFFIX}" | ||||||
if [ ! -f ${ATMGES} ]; then | ||||||
if [[ ! -f ${ATMGES} ]]; then | ||||||
echo "FATAL ERROR: FILE MISSING: ATMGES = ${ATMGES}" | ||||||
exit 1 | ||||||
fi | ||||||
|
@@ -60,9 +60,9 @@ status=$? | |||||
[[ ${status} -ne 0 ]] && exit ${status} | ||||||
|
||||||
|
||||||
if [ ${DOHYBVAR} = "YES" ]; then | ||||||
if [[ ${DOHYBVAR} = "YES" ]]; then | ||||||
export ATMGES_ENSMEAN="${COMIN_GES_ENS}/${GPREFIX}atmf006.ensmean${GSUFFIX}" | ||||||
if [ ! -f ${ATMGES_ENSMEAN} ]; then | ||||||
if [[ ! -f ${ATMGES_ENSMEAN} ]]; then | ||||||
echo "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}" | ||||||
exit 2 | ||||||
fi | ||||||
|
@@ -71,26 +71,19 @@ fi | |||||
|
||||||
# Link observational data | ||||||
export PREPQC="${COMIN_OBS}/${OPREFIX}prepbufr" | ||||||
if [ ! -f ${PREPQC} ]; then | ||||||
if [[ ! -f ${PREPQC} ]]; then | ||||||
echo "WARNING: Global PREPBUFR FILE ${PREPQC} MISSING" | ||||||
fi | ||||||
export TCVITL="${COMOUT}/${OPREFIX}syndata.tcvitals.tm00" | ||||||
if [[ ${DONST} = "YES" ]]; then | ||||||
if [[ ${MAKE_NSSTBUFR} == "YES" ]]; then | ||||||
export NSSTBF="${COMOUT}/${OPREFIX}nsstbufr" | ||||||
else | ||||||
export NSSTBF="${COMIN_OBS}/${OPREFIX}nsstbufr" | ||||||
fi | ||||||
fi | ||||||
|
||||||
if [[ ${MAKE_ACFTBUFR} == "YES" ]]; then | ||||||
export PREPQCPF="${COMOUT}/${OPREFIX}prepbufr.acft_profiles" | ||||||
else | ||||||
export PREPQCPF="${COMIN_OBS}/${OPREFIX}prepbufr.acft_profiles" | ||||||
fi | ||||||
export PREPQCPF="${COMIN_OBS}/${OPREFIX}prepbufr.acft_profiles" | ||||||
|
||||||
# Copy fix file for obsproc # TODO: Why is this necessary? | ||||||
if [ ${RUN} = "gfs" ]; then | ||||||
if [[ ${RUN} = "gfs" ]]; then | ||||||
mkdir -p ${ROTDIR}/fix | ||||||
cp ${FIXgsi}/prepobs_errtable.global ${ROTDIR}/fix/ | ||||||
fi | ||||||
|
@@ -121,7 +114,7 @@ fi | |||||
############################################## | ||||||
# Final processing | ||||||
############################################## | ||||||
if [ -e "${pgmout}" ] ; then | ||||||
if [[ -e "${pgmout}" ]] ; then | ||||||
cat ${pgmout} | ||||||
fi | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -36,8 +36,8 @@ if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then | |||||
export COMIN_GES_OBS=${COMIN_GES_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${GDUMP}.${gPDY}/${gcyc}/atmos} | ||||||
else | ||||||
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_OBS="${DMPDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_GES_OBS="${DMPDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos" | ||||||
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
fi | ||||||
mkdir -m 775 -p ${COMOUT} | ||||||
# COMIN_GES and COMIN_GES_ENS are used in script | ||||||
|
@@ -46,7 +46,7 @@ export COMIN_GES_ENS="${ROTDIR}/enkfgdas.${gPDY}/${gcyc}" | |||||
|
||||||
|
||||||
export ATMGES="${COMIN_GES}/${GPREFIX}atmf006${GSUFFIX}" | ||||||
if [ ! -f ${ATMGES} ]; then | ||||||
if [[ ! -f ${ATMGES} ]]; then | ||||||
echo "FATAL ERROR: FILE MISSING: ATMGES = ${ATMGES}" | ||||||
exit 1 | ||||||
fi | ||||||
|
@@ -58,9 +58,9 @@ status=$? | |||||
[[ ${status} -ne 0 ]] && exit ${status} | ||||||
|
||||||
|
||||||
if [ ${DOHYBVAR} = "YES" ]; then | ||||||
if [[ ${DOHYBVAR} = "YES" ]]; then | ||||||
export ATMGES_ENSMEAN="${COMIN_GES_ENS}/${GPREFIX}atmf006.ensmean${GSUFFIX}" | ||||||
if [ ! -f ${ATMGES_ENSMEAN} ]; then | ||||||
if [[ ! -f ${ATMGES_ENSMEAN} ]]; then | ||||||
echo "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}" | ||||||
exit 2 | ||||||
fi | ||||||
|
@@ -86,7 +86,7 @@ status=$? | |||||
############################################## | ||||||
# Final processing | ||||||
############################################## | ||||||
if [ -e "${pgmout}" ] ; then | ||||||
if [[ -e "${pgmout}" ]] ; then | ||||||
cat ${pgmout} | ||||||
fi | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -10,7 +10,7 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "sfcanl" -c "base sfcanl" | |||||
export CDATE=${CDATE:-${PDY}${cyc}} | ||||||
export CDUMP=${CDUMP:-${RUN:-"gfs"}} | ||||||
export COMPONENT="atmos" | ||||||
if [ ${RUN_ENVIR} = "nco" ]; then | ||||||
if [[ ${RUN_ENVIR} = "nco" ]]; then | ||||||
export ROTDIR=${COMROOT:?}/${NET}/${envir} | ||||||
fi | ||||||
|
||||||
|
@@ -38,8 +38,8 @@ if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then | |||||
export COMIN_GES_OBS=${COMIN_GES_OBS:-${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos} | ||||||
else | ||||||
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||||||
export COMIN_OBS="${DMPDIR}/${CDATE}/${CDUMP}" | ||||||
export COMIN_GES_OBS="${DMPDIR}/${GDATE}/${GDUMP}" | ||||||
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
fi | ||||||
mkdir -m 775 -p ${COMOUT} | ||||||
# COMIN_GES and COMIN_GES_ENS are used in script | ||||||
|
@@ -48,7 +48,7 @@ export COMIN_GES_ENS="${ROTDIR}/enkfgdas.${gPDY}/${gcyc}" | |||||
|
||||||
|
||||||
export ATMGES="${COMIN_GES}/${GPREFIX}atmf006${GSUFFIX}" | ||||||
if [ ! -f ${ATMGES} ]; then | ||||||
if [[ ! -f ${ATMGES} ]]; then | ||||||
echo "FATAL ERROR: FILE MISSING: ATMGES = ${ATMGES}" | ||||||
exit 1 | ||||||
fi | ||||||
|
@@ -69,7 +69,7 @@ status=$? | |||||
############################################## | ||||||
# Final processing | ||||||
############################################## | ||||||
if [ -e "${pgmout}" ] ; then | ||||||
if [[ -e "${pgmout}" ]] ; then | ||||||
cat ${pgmout} | ||||||
fi | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ROTDIR_DUMP=NO
does not work, so this change is untested.