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.
Replace old post script with initial post refactor
Refactors the post job to only run the offline post portion. Interpolation of grib files will be moved to a new product generation job using less resources. So will WAFS/GOES post, though those will reuse the base python script. New script is primarily python-based. The shell exscript is responsible for providing the python script with the appropriate YAML settings file for the cdump and forecast hour. The YAML file, located in `parm/post`, is responsible for providing all of the needed settings (many via environment variables). This is still a work in progress. Only offline post for gfs forecast hours is confirmed to work. Support for other cdumps, as well as WAFS and GOES, will be implemented later. Refs: NOAA-EMC#270
- Loading branch information
1 parent
cfde4e7
commit d99a5dd
Showing
11 changed files
with
402 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
work_dir: !ENV ${DATA} | ||
tmpl_file: !ENV ${PARMpost}/post.nml.j2 | ||
mp_file: !ENV ${PARMpost}/nam_micro_lookup.dat | ||
grib_out: !ENV ${COMOUT}/${RUN}.${cycle}.master.grb2f${fhr} | ||
grib_idx_out: !ENV ${COMOUT}/${RUN}.${cycle}.master.grb2if${fhr} | ||
exe_log_file: !ENV ${pgmout} | ||
out_form: 'netcdfpara' | ||
cdate: !ENV ${CDATE} | ||
fhr: !ENV ${fhr} | ||
grib_version: 'grib2' | ||
grib_table: !ENV ${g2tmpl_ROOT}/share/params_grib2_tbl_new | ||
post_variables: 'KPO=57,PO=1000.,975.,950.,925.,900.,875.,850.,825.,800.,775.,750.,725.,700.,675.,650.,625.,600.,575.,550.,525.,500.,475.,450.,425.,400.,375.,350.,325.,300.,275.,250.,225.,200.,175.,150.,125.,100.,70.,50.,40.,30.,20.,15.,10.,7.,5.,3.,2.,1.,0.7,0.4,0.2,0.1,0.07,0.04,0.02,0.01,' | ||
post_exe: !ENV ${HOMEgfs}/exec/upp.x | ||
grib_idx_exe: !ENV ${GRB2INDEX} | ||
mpi_run: !ENV ${APRUNP} | ||
sleep_max: 900 | ||
sleep_interval: 5 | ||
send_com: !ENV ${SENDCOM} | ||
send_dbn: !ENV ${SENDDBN} | ||
dbn_alert: !ENV ${DBNROOT}/bin/dbn_alert |
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,15 @@ | ||
include: | ||
- !INC ${PARMpost}/atm_post.yaml | ||
|
||
atm_file: !ENV ${COMIN}/${RUN}.${cycle}.atmanl.nc | ||
sfc_file: !ENV ${COMIN}/${RUN}.${cycle}.sfcanl.nc | ||
trigger_file: !ENV ${COMIN}/${RUN}.${cycle}.atmanl.nc | ||
|
||
igen: anal_gfs | ||
flat_file: !ENV ${PARMpost}/postxconfig-NT-GFS-ANL.txt | ||
ctrl_file: !ENV ${PARMpost}/postcntrl_gfs_anl.xml | ||
grib2_table: !ENV ${g2tmpl_ROOT}/share/params_grib2_tbl_new | ||
|
||
dbn_signals: | ||
GFS_SA: !ENV ${COMIN}/${RUN}.${cycle}.atmanl.nc | ||
GFS_MSC_sfcanal: !ENV ${COMIN}/${RUN}.${cycle}.sfcanl.nc |
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,15 @@ | ||
include: | ||
- !INC ${PARMpost}/atm_post.yaml | ||
|
||
atm_file: !ENV ${COMIN}/${RUN}.${cycle}.atmf000.nc | ||
sfc_file: !ENV ${COMIN}/${RUN}.${cycle}.sfcf000.nc | ||
trigger_file: !ENV ${COMIN}/${CDUMP}.t${cyc}z.logf000.txt | ||
|
||
igen: gfs_avn | ||
flat_file: !ENV ${PARMpost}/postxconfig-NT-GFS-F00.txt | ||
ctrl_file: !ENV ${PARMpost}/postcntrl_gfs_f00.xml | ||
grib2_table: !ENV ${g2tmpl_ROOT}/share/params_grib2_tbl_new | ||
|
||
dbn_signals: | ||
GFS_SA: !ENV ${COMIN}/${RUN}.${cycle}.atmf000.nc | ||
GFS_MSC_sfcanal: !ENV ${COMIN}/${RUN}.${cycle}.sfcf000.nc |
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,11 @@ | ||
include: | ||
- !INC ${PARMpost}/atm_post.yaml | ||
|
||
atm_file: !ENV ${COMIN}/${RUN}.${cycle}.atmf${fhr}.nc | ||
sfc_file: !ENV ${COMIN}/${RUN}.${cycle}.sfcf${fhr}.nc | ||
trigger_file: !ENV ${COMIN}/${CDUMP}.t${cyc}z.logf${fhr}.txt | ||
|
||
igen: gfs_avn | ||
flat_file: !ENV ${PARMpost}/postxconfig-NT-GFS.txt | ||
ctrl_file: !ENV ${PARMpost}/postcntrl_gfs.xml | ||
grib2_table: !ENV ${g2tmpl_ROOT}/share/params_grib2_tbl_new |
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,12 @@ | ||
&model_inputs | ||
fileName='atm_file' | ||
fileNameFlux='sfc_file' | ||
IOFORM='{{out_form}}' | ||
grib='{{grib_version}}' | ||
DateStr='%Y-%m-%d_%H:%M:%S' | ||
MODELNAME='GFS' | ||
/ | ||
|
||
&NAMPGB | ||
{{post_variables}} | ||
/ |
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,17 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
|
||
# Determine which yaml file to use | ||
case ${fhr} in | ||
anl) yaml_cat='anl' ;; | ||
000) yaml_cat='f000';; | ||
*) yaml_cat='fhr' ;; | ||
esac | ||
post_settings="${PARMpost}/atm_post_${CDUMP}_${yaml_cat}.yaml" | ||
|
||
# Run post | ||
"${HOMEgfs}/ush/atm_post.py" "${post_settings}" | ||
err=$? | ||
|
||
exit ${err} |
Oops, something went wrong.