forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feature/version-files
* origin/develop: Initial blocks in place for forecast refactor work (NOAA-EMC#1466) Update buoys file and fix boundary point jobs (NOAA-EMC#1465) Move Fit2Obs to stand-alone job (NOAA-EMC#1456) Rework arch job dependencies (NOAA-EMC#1455) Stage bias files for UFSDA aerosols (NOAA-EMC#1370) Add logging level to logger (NOAA-EMC#1442) Update hash for GDASApp to db2f998 (NOAA-EMC#1443) Remove para module paths for ncdiag on WCOSS2 (NOAA-EMC#1437) Use P8 settings for C384 atm by default (NOAA-EMC#1440) Enforce rstprod on relevant tarballs (NOAA-EMC#1436)
- Loading branch information
Showing
38 changed files
with
499 additions
and
756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
source "${HOMEgfs}/ush/jjob_header.sh" -e "fit2obs" -c "base fit2obs" | ||
|
||
|
||
############################################## | ||
# Set variables used in the script | ||
############################################## | ||
|
||
export CDUMP=${RUN/enkf} | ||
|
||
# Ignore spelling warning; nothing is misspelled | ||
# shellcheck disable=SC2153 | ||
CDATE=$(${NDATE} -"${VBACKUP_FITS}" "${PDY}${cyc}") # set CDATE to lookback cycle for use in fit2obs package | ||
export CDATE | ||
vday=${CDATE:0:8} | ||
vcyc=${CDATE:8:2} | ||
|
||
export COM_INA=${ROTDIR}/gdas.${vday}/${vcyc}/atmos | ||
# We want to defer variable expansion, so ignore warning about single quotes | ||
# shellcheck disable=SC2016 | ||
export COM_INF='$ROTDIR/vrfyarch/gfs.$fdy/$fzz' | ||
export COM_PRP=${ROTDIR}/gdas.${vday}/${vcyc}/obs | ||
|
||
export PRPI=${COM_PRP}/${RUN}.t${vcyc}z.prepbufr | ||
export sig1=${COM_INA}/${RUN}.t${vcyc}z.atmanl.nc | ||
export sfc1=${COM_INA}/${RUN}.t${vcyc}z.atmanl.nc | ||
export CNVS=${COM_INA}/${RUN}.t${vcyc}z.cnvstat | ||
|
||
export OUTPUT_FILETYPE=${OUTPUT_FILETYPE:-netcdf} | ||
|
||
export FIT_DIR=${ARCDIR}/fits | ||
[[ ! -d "${FIT_DIR}" ]] && mkdir -p "${FIT_DIR}" | ||
export HORZ_DIR=${ARCDIR}/horiz | ||
[[ ! -d "${HORZ_DIR}" ]] && mkdir -p "${HORZ_DIR}" | ||
export COMLOX=${DATA}/fitx | ||
[[ ! -d "${COMLOX}" ]] && mkdir -p "${COMLOX}" | ||
|
||
echo "echo err_chk">"${DATA}"/err_chk; chmod 755 "${DATA}"/err_chk | ||
echo "echo postmsg">"${DATA}"/postmsg; chmod 755 "${DATA}"/postmsg | ||
|
||
############################################## | ||
# Check spinup and available inputs | ||
############################################## | ||
|
||
# Ignore spelling warning; nothing is misspelled | ||
# shellcheck disable=SC2153 | ||
if [[ ${CDATE} -gt ${SDATE} ]]; then | ||
for file in ${PRPI} ${sig1} ${sfc1} ${CNVS}; do | ||
if [[ ! -f "${file}" ]]; then | ||
echo "FATAL ERROR: FILE MISSING: ${file}" | ||
exit 1 | ||
fi | ||
done | ||
|
||
############################################## | ||
# RUN FIT2OBS VERIFICATION | ||
############################################## | ||
|
||
"${fitdir}/batrun/excfs_gdas_vrfyfits.sh.ecf" | ||
status=$? | ||
[[ ${status} -ne 0 ]] && exit "${status}" | ||
|
||
############################################## | ||
# End JOB SPECIFIC work | ||
############################################## | ||
|
||
############################################## | ||
# Final processing | ||
############################################## | ||
if [[ -e "${pgmout}" ]] ; then | ||
cat "${pgmout}" | ||
fi | ||
|
||
else | ||
|
||
echo "Too early for FIT2OBS to run. Exiting." | ||
|
||
fi | ||
|
||
########################################## | ||
# Remove the Temporary working directory | ||
########################################## | ||
cd "${DATAROOT}" || (echo "FATAL ERROR: ${DATAROOT} does not exist. ABORT!"; exit 1) | ||
[[ ${KEEPDATA} = "NO" ]] && rm -rf "${DATA}" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO SOURCE FV3GFS WORKFLOW MODULES ===============" | ||
. "${HOMEgfs}/ush/load_fv3gfs_modules.sh" | ||
status=$? | ||
[[ ${status} -ne 0 ]] && exit "${status}" | ||
|
||
export job="fit2obs" | ||
export jobid="${job}.$$" | ||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO RUN FIT2OBS ===============" | ||
# Execute the JJOB | ||
"${HOMEgfs}/jobs/JGDAS_FIT2OBS" | ||
status=$? | ||
[[ ${status} -ne 0 ]] && exit "${status}" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.