-
Notifications
You must be signed in to change notification settings - Fork 210
Change RUN and CDUMP for ensemble jobs #1309
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
Changes from all commits
6332990
acfb0b3
b29ea65
6db59ab
078839b
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,31 +22,33 @@ GDATE=$(${NDATE} -${assim_freq} ${CDATE}) | |||||
| gPDY=$(echo ${GDATE} | cut -c1-8) | ||||||
| gcyc=$(echo ${GDATE} | cut -c9-10) | ||||||
| GDUMP=${GDUMP:-"gdas"} | ||||||
|
Contributor
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
Contributor
Author
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. This wasn't something I changed, but I've changed it now to what you suggested (I had wondered the same thing). |
||||||
| GDUMP_ENS=${GDUMP_ENS:-"enkf${GDUMP}"} | ||||||
|
Contributor
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. This is a j-job. There is no one above this job setting
Suggested change
Same on the line above for |
||||||
|
|
||||||
| export CASE=${CASE_ENKF} | ||||||
| export CDUMP_OBS=${CDUMP_OBS:-${CDUMP}} | ||||||
| export CDUMP_OBS=${CDUMP_OBS:-${CDUMP/enkf}} | ||||||
| export CDUMP_CTL=${CDUMP_CTL:-${CDUMP/enkf}} | ||||||
|
Contributor
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. What is intent of introducing
Contributor
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. Same for
Contributor
Author
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.
|
||||||
|
|
||||||
|
|
||||||
| export OPREFIX="${CDUMP_OBS}.t${cyc}z." | ||||||
| export APREFIX="${CDUMP}.t${cyc}z." | ||||||
| export APREFIX="${CDUMP_CTL}.t${cyc}z." | ||||||
| export APREFIX_ENS="${CDUMP}.t${cyc}z." | ||||||
| export GPREFIX="${GDUMP}.t${gcyc}z." | ||||||
| export GPREFIX_ENS="${GDUMP_ENS}.t${gcyc}z." | ||||||
|
|
||||||
| 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}} | ||||||
| export COMIN_OBS=${COMIN_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${CDUMP_OBS}.${PDY}/${cyc}/${COMPONENT}} | ||||||
| else | ||||||
| export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||||||
| export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||||||
| export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP_OBS}.${PDY}/${cyc}/obs}" | ||||||
| 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}/enkf${CDUMP}.${PDY}/${cyc}" | ||||||
| export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}" | ||||||
|
|
||||||
|
|
||||||
| export ATMGES_ENSMEAN="${COMIN_GES_ENS}/${GPREFIX}atmf006.ensmean.nc" | ||||||
| export ATMGES_ENSMEAN="${COMIN_GES_ENS}/${GPREFIX_ENS}atmf006.ensmean.nc" | ||||||
| if [ ! -f ${ATMGES_ENSMEAN} ]; then | ||||||
| echo "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}" | ||||||
| exit 1 | ||||||
|
|
@@ -71,21 +73,21 @@ export GBIASAIR=${COMIN_GES_CTL}/${GPREFIX}abias_air | |||||
| export GRADSTAT=${COMIN_GES_CTL}/${GPREFIX}radstat | ||||||
|
|
||||||
| # Bias correction coefficients related to ensemble mean | ||||||
| export ABIAS="${COMOUT}/${APREFIX}abias.ensmean" | ||||||
| export ABIASPC="${COMOUT}/${APREFIX}abias_pc.ensmean" | ||||||
| export ABIASAIR="${COMOUT}/${APREFIX}abias_air.ensmean" | ||||||
| export ABIASe="${COMOUT}/${APREFIX}abias_int.ensmean" | ||||||
| export ABIAS="${COMOUT}/${APREFIX_ENS}abias.ensmean" | ||||||
| export ABIASPC="${COMOUT}/${APREFIX_ENS}abias_pc.ensmean" | ||||||
| export ABIASAIR="${COMOUT}/${APREFIX_ENS}abias_air.ensmean" | ||||||
| export ABIASe="${COMOUT}/${APREFIX_ENS}abias_int.ensmean" | ||||||
|
|
||||||
| # Diagnostics related to ensemble mean | ||||||
| export GSISTAT="${COMOUT}/${APREFIX}gsistat.ensmean" | ||||||
| export CNVSTAT="${COMOUT}/${APREFIX}cnvstat.ensmean" | ||||||
| export OZNSTAT="${COMOUT}/${APREFIX}oznstat.ensmean" | ||||||
| export RADSTAT="${COMOUT}/${APREFIX}radstat.ensmean" | ||||||
| export GSISTAT="${COMOUT}/${APREFIX_ENS}gsistat.ensmean" | ||||||
| export CNVSTAT="${COMOUT}/${APREFIX_ENS}cnvstat.ensmean" | ||||||
| export OZNSTAT="${COMOUT}/${APREFIX_ENS}oznstat.ensmean" | ||||||
| export RADSTAT="${COMOUT}/${APREFIX_ENS}radstat.ensmean" | ||||||
|
|
||||||
| # Select observations based on ensemble mean | ||||||
| export RUN_SELECT="YES" | ||||||
| export USE_SELECT="NO" | ||||||
| export SELECT_OBS="${COMOUT}/${APREFIX}obsinput.ensmean" | ||||||
| export SELECT_OBS="${COMOUT}/${APREFIX_ENS}obsinput.ensmean" | ||||||
|
|
||||||
| export DIAG_SUFFIX="_ensmean" | ||||||
| export DIAG_COMPRESS="NO" | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "ecen" -c "base ecen" | |
| # Set variables used in the script | ||
| ############################################## | ||
| export CDATE=${CDATE:-${PDY}${cyc}} | ||
| export CDUMP=${CDUMP:-${RUN:-"gdas"}} | ||
| export CDUMP=${CDUMP:-${RUN:-"enkfgdas"}} | ||
| export COMPONENT="atmos" | ||
|
|
||
|
|
||
|
|
@@ -20,35 +20,23 @@ GDATE=$(${NDATE} -${assim_freq} ${CDATE}) | |
| gPDY=$(echo ${GDATE} | cut -c1-8) | ||
| gcyc=$(echo ${GDATE} | cut -c9-10) | ||
| GDUMP=${GDUMP:-"gdas"} | ||
| GDUMP_ENS=${GDUMP_ENS:-"enkf${GDUMP}"} | ||
|
Contributor
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. Similar comment as the one made above. |
||
|
|
||
| export CASE=${CASE_ENKF} | ||
|
|
||
| export CDUMP_OBS=${CDUMP_OBS:-${CDUMP/enkf}} | ||
|
Contributor
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.
Contributor
Author
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. This was done because this is how other j-jobs did it (though I clearly wasn't consistent, since I didn't use a |
||
|
|
||
| EUPD_CYC=$(echo ${EUPD_CYC:-"gdas"} | tr a-z A-Z) | ||
| if [[ ${EUPD_CYC} = "GFS" ]]; then | ||
| CDUMP_ENKF="gfs" | ||
| else | ||
| CDUMP_ENKF=${CDUMP} | ||
| fi | ||
|
|
||
| export OPREFIX="${CDUMP}.t${cyc}z." | ||
| export APREFIX="${CDUMP}.t${cyc}z." | ||
| export APREFIX_ENKF="${CDUMP_ENKF}.t${cyc}z." | ||
| export OPREFIX="${CDUMP_OBS}.t${cyc}z." | ||
| export APREFIX="${CDUMP/enkf}.t${cyc}z." | ||
| export APREFIX_ENS="${CDUMP}.t${cyc}z." | ||
| export GPREFIX="${GDUMP}.t${gcyc}z." | ||
|
|
||
| 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="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}" | ||
| export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs" | ||
| fi | ||
| export GPREFIX_ENS="${GDUMP_ENS}.t${gcyc}z." | ||
|
|
||
| # COMIN, COMIN_ENS and COMIN_GES_ENS are used in script | ||
| export COMIN="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/atmos" | ||
| export COMIN_ENS="${ROTDIR}/enkf${CDUMP_ENKF}.${PDY}/${cyc}" | ||
| export COMOUT_ENS="${ROTDIR}/enkf${CDUMP}.${PDY}/${cyc}" | ||
| export COMIN_GES_ENS="${ROTDIR}/enkf${GDUMP}.${gPDY}/${gcyc}" | ||
| export COMIN="${ROTDIR}/${CDUMP/enkf}.${PDY}/${cyc}/atmos" | ||
| export COMIN_ENS="${ROTDIR}/${CDUMP}.${PDY}/${cyc}" | ||
| export COMOUT_ENS="${ROTDIR}/${CDUMP}.${PDY}/${cyc}" | ||
| export COMIN_GES_ENS="${ROTDIR}/${GDUMP_ENS}.${gPDY}/${gcyc}" | ||
|
|
||
|
|
||
| ############################################################### | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.