Skip to content
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

[develop] Incorporate RRFS_dev1 workflow to SRW and import most tasks #540

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
6a68955
Add process bufr ex-scripts/j-jobs and modify them as I see it fit.
danielabdi-noaa Jan 13, 2023
1f46f64
Started modifying config_defaults.yaml and FV3LAM_wflow.xml to match …
danielabdi-noaa Jan 13, 2023
7e07dc5
Second round of tiresome updates to xml and config_defaults.
danielabdi-noaa Jan 14, 2023
023944b
Remove duplicates.
danielabdi-noaa Jan 14, 2023
ce134ed
Fix cyclestr locations.
danielabdi-noaa Jan 14, 2023
c6d0945
Add dummy true dependency to make rocoto happy.
danielabdi-noaa Jan 14, 2023
eafca27
Workflow generation starting to work.
danielabdi-noaa Jan 15, 2023
1d34336
Remove forecast cycledef, also init other cycledefs from date_first_c…
danielabdi-noaa Jan 15, 2023
2f912d1
Rearrange.
danielabdi-noaa Jan 15, 2023
1526941
Try to increase readability of xml file.
danielabdi-noaa Jan 15, 2023
294e11f
First succcess with running few tasks of existing we2e with RRFS dev …
danielabdi-noaa Jan 15, 2023
64e5ad9
Move new workflow switches to right section.
danielabdi-noaa Jan 15, 2023
1467669
Fix get_extrn_ics/lbcs dependency for retro runs.
danielabdi-noaa Jan 15, 2023
51d5e80
Fix make_ics and run_fcst dependencies.
danielabdi-noaa Jan 15, 2023
207eef7
Add TAG to all tasks.
danielabdi-noaa Jan 15, 2023
1614c9d
Make restart interval an int until we make arrays work.
danielabdi-noaa Jan 15, 2023
08236be
All tasks in SRW run successfully (verfied by Met_ensemble_verificati…
danielabdi-noaa Jan 15, 2023
8edf94a
Change order of sections.
danielabdi-noaa Jan 16, 2023
5005ee3
Add a RRFS_dev config yaml file, totally untested.
danielabdi-noaa Jan 16, 2023
b4379f2
RRFS_dev1 conus workflow generaton works!
danielabdi-noaa Jan 16, 2023
aff5e55
Add new queues to each platform.
danielabdi-noaa Jan 16, 2023
c5965ec
Modify start year,month etc, necessary?
danielabdi-noaa Jan 16, 2023
fd11132
More shuffles in config_defaults.
danielabdi-noaa Jan 16, 2023
4d72144
Fixes for config.rrfs.yaml.
danielabdi-noaa Jan 16, 2023
5563952
Add gsi,smoke etc FIX file locations.
danielabdi-noaa Jan 16, 2023
d9c1344
process_bufr task works!
danielabdi-noaa Jan 16, 2023
1fa298e
process_radarref task works!
danielabdi-noaa Jan 16, 2023
86fe716
Make get ics/lbcs work for RRFS testcase.
danielabdi-noaa Jan 16, 2023
448effc
Add prepstart j-job and ex-scripts.
danielabdi-noaa Jan 16, 2023
e73cd0e
Define CYCLE_SUBTYPE to null for consistency.
danielabdi-noaa Jan 16, 2023
288d556
Change nwges NCO dir location
danielabdi-noaa Jan 16, 2023
1b083b7
Minor fixes.
danielabdi-noaa Jan 17, 2023
d1e1453
Modify make_ics/lbcs to symlink files to NWGES.
danielabdi-noaa Jan 17, 2023
3ac9421
Populate nwges directory with symlinks to files.
danielabdi-noaa Jan 17, 2023
7c8946e
prep_cyc_spinup works!
danielabdi-noaa Jan 18, 2023
2dd5539
Add GSI analysis ex-scritps/j-jobs.
danielabdi-noaa Jan 18, 2023
2e2a347
Fixes to gsi scripts.
danielabdi-noaa Jan 18, 2023
b0fbd00
anal_gsi runs gsi.x but there seems to be version mimatch.
danielabdi-noaa Jan 18, 2023
8f2ec48
Update GSI hash.
danielabdi-noaa Jan 18, 2023
b21a9e9
Hack to get gsi running a little longer, update did not help.
danielabdi-noaa Jan 18, 2023
e7e0d42
Add CRTM coefficients location.
danielabdi-noaa Jan 18, 2023
b82f16c
GSI analysis runs with binary from rrfs_dev but NanNs
danielabdi-noaa Jan 18, 2023
6e1464d
Minor fixes.
danielabdi-noaa Jan 19, 2023
52f2ab6
Add po/j-job.
danielabdi-noaa Jan 19, 2023
a0ae5c6
postanal task works but with a caveat! cold-start test case
danielabdi-noaa Jan 19, 2023
9e411ba
Add ex-/j-job scripts for novar cloud analysis.
danielabdi-noaa Jan 19, 2023
6fd5be4
Nonvarcld analysis works with RRFS dev binaries!
danielabdi-noaa Jan 19, 2023
6ae0515
Switch GSI to NOAA-GSL/feature/rrfs_dev
danielabdi-noaa Jan 20, 2023
c719f02
Make parallel make_lbcs work.
danielabdi-noaa Jan 20, 2023
54affd2
Use EMC 65 levels according to:
danielabdi-noaa Jan 20, 2023
146e1ac
Use rrfs specific file for idential make_ics/lbcs result.
danielabdi-noaa Jan 20, 2023
d99c0f5
Bugfix aircraft reject file.
danielabdi-noaa Jan 20, 2023
9b8d637
Update hash of rrfs_utils.
danielabdi-noaa Jan 20, 2023
23e8654
Temporarily remove fort.11 until test case is updated.
danielabdi-noaa Jan 20, 2023
3e810ab
Start modifying run_fcst to use background.
danielabdi-noaa Jan 20, 2023
15d98b2
More changes to fcst ex-/j-job scripts.
danielabdi-noaa Jan 21, 2023
5a645e1
Write background directly to forecast directory.
danielabdi-noaa Jan 21, 2023
3d1bbde
run_fcst with background works but fails after a while.
danielabdi-noaa Jan 21, 2023
e7a8667
run_fcst works with correct spinup fcst len hrs.
danielabdi-noaa Jan 21, 2023
bfe05cc
Minor modification.
danielabdi-noaa Jan 21, 2023
7d772d7
Add ex-/j-job scripts for save restart task.
danielabdi-noaa Jan 21, 2023
d7a6905
save_restart task works.
danielabdi-noaa Jan 21, 2023
6572e0b
Start modifying postprocessing job.
danielabdi-noaa Jan 21, 2023
6797b37
More changes to post.
danielabdi-noaa Jan 21, 2023
f5f07f6
run_post works including wgrib2 calls!.
danielabdi-noaa Jan 21, 2023
152390a
Don't delete task working dir when using another tasks working dir
danielabdi-noaa Jan 21, 2023
86f5474
Add ex-/j-job scripts for prepstart ensemble mean.
danielabdi-noaa Jan 22, 2023
0dd2c38
Add ex-/j-job scritps for prepstart from ics/lbcs.
danielabdi-noaa Jan 22, 2023
2a4cbc1
Add ex-/j-job script for prdgen, looks immature.
danielabdi-noaa Jan 22, 2023
7801f28
prdgen works but need to check closely.
danielabdi-noaa Jan 22, 2023
3c955ed
Bug fixes unconvered during second day spinup cycle.
danielabdi-noaa Jan 22, 2023
834dc26
More fixes to prepstart, and a bug in original rrfs_dev??
danielabdi-noaa Jan 22, 2023
39aaa62
Bugfix postanal that was not really tested before.
danielabdi-noaa Jan 22, 2023
5f9315d
Bugfix in post.
danielabdi-noaa Jan 22, 2023
eea758e
Yet another update issue - temporarily disable code
danielabdi-noaa Jan 22, 2023
c3a7203
Add namelist for DA cycle.
danielabdi-noaa Jan 22, 2023
e7ba6b5
More namelist related changes.
danielabdi-noaa Jan 22, 2023
9f2f72c
Add a temporary surface cycle namelist
danielabdi-noaa Jan 23, 2023
cd945e4
More changes to get warm start fcst running.
danielabdi-noaa Jan 23, 2023
90c4763
Fcst from warm start works thereby completing second spinup cycle.
danielabdi-noaa Jan 23, 2023
5cc896d
Added NLDN lightning parm
Jan 23, 2023
5b6b8c1
Add ex-/j-job scripts for archiving.
danielabdi-noaa Jan 23, 2023
5f0ed32
Fix archive script for bash, it works now but needs write privilage t…
danielabdi-noaa Jan 23, 2023
642f015
Bug fix for productin cycle post-processing.
danielabdi-noaa Jan 24, 2023
c1e9e19
Bugfix fix directory creation issue.
danielabdi-noaa Jan 24, 2023
d851f59
added lightning exregional and jobs scripts
Jan 24, 2023
dc85414
Restore existing SRW test case running possibility.
danielabdi-noaa Jan 25, 2023
f5e20f6
Remove mem and postprd directory in NCO mode.
danielabdi-noaa Jan 25, 2023
c9c0c6f
Replace TMMARK with POST_OUTPUT_DOMAIN_NAME.
danielabdi-noaa Jan 25, 2023
a4b39b9
Avoid unncessary tasks in srw we2e tests, and don't download
danielabdi-noaa Jan 25, 2023
db9411a
Changes in stoch namelist.
danielabdi-noaa Jan 25, 2023
a1d1595
Fix stochastic physics test case.
danielabdi-noaa Jan 25, 2023
c995bd9
Fix naming of analsis result file.
danielabdi-noaa Jan 25, 2023
4c2bfc8
Add ex-/j-job scripts for cleaning directories.
danielabdi-noaa Jan 25, 2023
34546f0
Handle 0th hr lbc differently b/n RRFS and SRW.
danielabdi-noaa Jan 25, 2023
0e7aa41
Add pygraf plotting ex-/j-job scripts.
danielabdi-noaa Jan 26, 2023
fd67f1f
Rearrange config_default entries.
danielabdi-noaa Jan 26, 2023
9273f89
Add graphics modulefiles for hera/jet.
danielabdi-noaa Jan 26, 2023
89351ac
Pygraf plotting works and generates good looking plots!
danielabdi-noaa Jan 26, 2023
6ee1a62
Variable forecast length hours for each cycle, and cycle type (spinup…
danielabdi-noaa Jan 26, 2023
96f24bd
fixed variable names and formatting
EdwardSnyder-NOAA Jan 26, 2023
f6966d0
Fix unbound variable BASH_SOURCE issue.
danielabdi-noaa Jan 26, 2023
593407f
Fix the bugfix.
danielabdi-noaa Jan 27, 2023
a00f895
Remove unnecessary variable GWD_HRRRsuite_DIR.
danielabdi-noaa Jan 27, 2023
21c7d7c
Add a new CONUS 3km predefeined grid.
danielabdi-noaa Jan 27, 2023
8febd09
Update valid_vals.
danielabdi-noaa Jan 27, 2023
b04b33f
Fix inline post.
danielabdi-noaa Jan 27, 2023
9fe19b2
Use the right post symlink name.
danielabdi-noaa Jan 27, 2023
3008092
Fix postprocessing to match UPP parm file.
danielabdi-noaa Jan 28, 2023
9f2be30
Modify inline post as well.
danielabdi-noaa Jan 28, 2023
71189dc
Add prdgen support script.
danielabdi-noaa Jan 28, 2023
1eabf86
Create symlinks to grib2 files.
danielabdi-noaa Jan 28, 2023
85e3dd1
Point to GSL's ufs-weather-model
danielabdi-noaa Jan 28, 2023
10aaf5c
Add FV3_RAP physics.
danielabdi-noaa Jan 28, 2023
198a5e1
Update FV3_HRR fv3_core_nml entry, updated physics causes problems.
danielabdi-noaa Jan 29, 2023
f7c7784
Fix post-processing in community mode.
danielabdi-noaa Jan 29, 2023
6776090
Add diagnostic and field tables for FV3_RAP.
danielabdi-noaa Jan 29, 2023
1f8de56
Update FV3_HRRR physics.
danielabdi-noaa Jan 29, 2023
0c7bcf4
Undo hash update -- meant to do it to ufs-weather-model instead of uf…
danielabdi-noaa Jan 29, 2023
1158951
Point to the GSL ufs-weather-model and temporarily disable WoFS ccpp …
danielabdi-noaa Jan 29, 2023
db84269
Add RAP suites to ufs-weather-model build.
danielabdi-noaa Jan 29, 2023
17996be
Add smoke and dust to FV3_HRRR.
danielabdi-noaa Jan 29, 2023
7198b18
Bug fix in make_ics/lbcs for FV3_RAP physics.
danielabdi-noaa Jan 29, 2023
2443353
Add upgrade option for pre-existing directory.
danielabdi-noaa Jan 29, 2023
421d1e1
Add ex-/j-job scripts for ref2tten.
danielabdi-noaa Jan 29, 2023
cb1a4c3
Turn on lightnening & refl2tten.
danielabdi-noaa Jan 29, 2023
590fb7e
ref2tten task works but not sure if did real work.
danielabdi-noaa Jan 29, 2023
88fef12
Add ex-/j-job scripts for enkf.
danielabdi-noaa Jan 30, 2023
09525a3
Minor bug fix.
danielabdi-noaa Jan 31, 2023
9eab09e
Remove CYCLE_DIR from xml.
danielabdi-noaa Jan 31, 2023
9635fbd
Don't run fcst when not needed.
danielabdi-noaa Feb 1, 2023
67f54c8
Revert ufs-weather-model hash and other similar changes that need GSL…
danielabdi-noaa Jan 31, 2023
0698288
Merge branch 'develop' into merge_conflict
danielabdi-noaa Feb 24, 2023
aaa4bae
[develop] Add RAVE data processing to fire_emission task for AQM (#628)
chan-hoo Feb 25, 2023
e46b5e1
First attempt to resolve fcst_len_hrs conflict.
danielabdi-noaa Feb 26, 2023
e316501
Fixes for Externals.cfg
danielabdi-noaa Feb 26, 2023
86e517c
Some bug fixes.
danielabdi-noaa Feb 26, 2023
ab53019
Add TAG to aqm tasks.
danielabdi-noaa Feb 26, 2023
ecb04e9
Merge branch 'develop' into jan24
danielabdi-noaa Mar 4, 2023
c8d1cfd
Fix verification workflow.
danielabdi-noaa Mar 4, 2023
45dd209
Fix versions.
danielabdi-noaa Mar 6, 2023
a0a41c5
Add GSD_RAP13km test.
danielabdi-noaa Mar 7, 2023
4410884
Merge branch 'develop' into feature/process_bufr
danielabdi-noaa Mar 7, 2023
c8a756d
Fix workflow conflict
danielabdi-noaa Mar 7, 2023
c8492b2
Put values for RRFS_NA_13km predef grid from RRFS_dev1 in comments.
danielabdi-noaa Mar 7, 2023
0d77098
Delete GSD_RAP13km
danielabdi-noaa Mar 7, 2023
aa2dc88
Fix unittest.
danielabdi-noaa Mar 7, 2023
39fee60
Replace other GSD_RAP13km instances.
danielabdi-noaa Mar 7, 2023
e79e27f
Undo DO_ENSEMBLE relocation in config_defaults.
danielabdi-noaa Mar 9, 2023
450e241
Update test case.
danielabdi-noaa Mar 10, 2023
9a87b18
Fix get_lbcs for AQM.
danielabdi-noaa Mar 10, 2023
e85eb56
Merge branch 'develop' into feature/process_bufr
danielabdi-noaa Mar 10, 2023
1908280
Add missing TN_PLOT_ALLVARS definition.
danielabdi-noaa Mar 10, 2023
f3a9268
Add missing rrfs_build option from PR #644.
danielabdi-noaa Mar 11, 2023
efb4ca2
Add WCOSS2 and task specific pre-task commands, good idea?
danielabdi-noaa Mar 12, 2023
73d676e
Minor bugfix duplict namelist fn.
danielabdi-noaa Mar 13, 2023
72fbe93
Use HPSS queue for get_ics/lbcs
danielabdi-noaa Mar 13, 2023
ea61a6b
Merge branch 'develop' into feature/process_bufr
danielabdi-noaa Mar 15, 2023
04f4197
Update process_bufr
danielabdi-noaa Mar 15, 2023
cafd8c0
Merge branch 'develop' into feature/process_bufr
danielabdi-noaa Mar 15, 2023
5957a64
Update workflow
danielabdi-noaa Mar 15, 2023
66555e0
Merge branch 'develop' into feature/process_bufr
danielabdi-noaa Mar 17, 2023
ed32493
Merge branch 'develop' into feature/process_bufr
danielabdi-noaa Mar 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ required = True
protocol = git
repo_url = https://github.com/ufs-community/ufs-weather-model
# Specify either a branch name or a hash but not both.
#branch = develop
hash = e051e0e
#branch = RRFS_dev
hash = 84b28ec
local_path = sorc/ufs-weather-model
required = True

Expand All @@ -27,10 +27,10 @@ required = True

[GSI]
protocol = git
repo_url = https://github.com/NOAA-EMC/GSI.git
repo_url = https://github.com/NOAA-GSL/GSI.git
# Specify either a branch name or a hash but not both.
#branch = develop
hash = ad84f17
#branch = feature/rrfs_dev
hash = a4c421c
local_path = sorc/gsi
externals = None
required = True
Expand All @@ -40,10 +40,17 @@ protocol = git
repo_url = https://github.com/NOAA-GSL/rrfs_utl.git
# Specify either a branch name or a hash but not both.
#branch = develop
hash = 8d21f25
hash = cb12cab8
local_path = sorc/rrfs_utl
required = True

[python_graphics]
protocol = git
repo_url = https://github.com/NOAA-GSL/pygraf
hash = da304b0
local_path = python_graphics
required = True

[arl_nexus]
protocol = git
repo_url = https://github.com/noaa-oar-arl/NEXUS
Expand Down
68 changes: 68 additions & 0 deletions fix/fix_am/global_hyblev_fcst_rrfsL65.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
2 66
0.000 1.00000000
0.000 0.99787363
0.000 0.99547387
0.017 0.99276698
0.234 0.98971388
1.058 0.98626929
3.103 0.98238159
7.211 0.97799245
14.450 0.97303658
26.130 0.96744145
43.805 0.96112727
69.754 0.95400221
107.500 0.94595747
160.901 0.93687684
233.980 0.92663902
330.883 0.91511905
455.809 0.90219033
612.932 0.88772712
806.289 0.87160769
1039.659 0.85371818
1316.413 0.83395695
1639.350 0.81223965
2010.516 0.78850460
2431.016 0.76271850
2900.827 0.73488203
3418.626 0.70503512
3981.638 0.67326135
4585.535 0.63969119
5224.384 0.60450347
5890.665 0.56792486
6575.364 0.53022703
7268.150 0.49172137
7957.623 0.45275150
8631.631 0.41368369
9277.633 0.37489594
9883.087 0.33676625
10435.842 0.29966091
10924.498 0.26392352
11338.722 0.22986547
11669.502 0.19775844
11909.318 0.16782909
12052.236 0.14025627
12093.928 0.11517042
12031.620 0.09265514
11863.989 0.07275035
11591.011 0.05545674
11213.791 0.04074101
10734.376 0.02854147
10155.564 0.01877378
9480.727 0.01133629
8714.452 0.00610706
7877.419 0.00279793
7004.872 0.00097247
6132.608 0.00018806
5296.374 0.00000379
4530.025 0.00000000
3843.468 0.00000000
3229.725 0.00000000
2681.893 0.00000000
2193.544 0.00000000
1758.738 0.00000000
1372.014 0.00000000
1028.378 0.00000000
723.285 0.00000000
452.613 0.00000000
212.637 0.00000000
0.000 0.00000000
4 changes: 4 additions & 0 deletions jobs/JREGIONAL_MAKE_ICS
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ for the FV3 (in NetCDF format).
#
if [ $RUN_ENVIR = "nco" ]; then
export INPUT_DATA="${COMIN}"
export INPUT_DATA_NWGES="${NWGES_DIR}${SLASH_ENSMEM_SUBDIR}/ics"
else
export INPUT_DATA="${COMIN}${SLASH_ENSMEM_SUBDIR}/INPUT"
export INPUT_DATA_NWGES="${NWGES_DIR}${SLASH_ENSMEM_SUBDIR}/ics"
fi
mkdir_vrfy -p "${INPUT_DATA}"
mkdir_vrfy -p "${INPUT_DATA_NWGES}"
#
#
#-----------------------------------------------------------------------
#
Expand Down
3 changes: 3 additions & 0 deletions jobs/JREGIONAL_MAKE_LBCS
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ hour zero).
#
if [ $RUN_ENVIR = "nco" ]; then
export INPUT_DATA="${COMIN}"
export INPUT_DATA_NWGES="${NWGES_DIR}${SLASH_ENSMEM_SUBDIR}/lbcs"
else
export INPUT_DATA="${COMIN}${SLASH_ENSMEM_SUBDIR}/INPUT"
export INPUT_DATA_NWGES="${NWGES_DIR}${SLASH_ENSMEM_SUBDIR}/lbcs"
fi
mkdir_vrfy -p "${INPUT_DATA}"
mkdir_vrfy -p "${INPUT_DATA_NWGES}"
#
#-----------------------------------------------------------------------
#
Expand Down
110 changes: 110 additions & 0 deletions jobs/JREGIONAL_PROCESS_BUFR
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
#!/bin/bash

#
#-----------------------------------------------------------------------
#
# This J-JOB script runs the preprocess of BUFR files
# for the FV3-LAM model
#
# Description:
#
# RRFS runs several executables included with rrfs-utl as a preparation of
# existing RAP bufr files. It does the following:
# - Run process_Lightning.exe on files like *lghtng.tm00.bufr_d
# - Run process_larccld.exe on files like *lgycld.tm00.bufr_d
# - Run process_metarcld.exe on files like *prepbufr.tm00
#
# Arguments needed in the corresponding ex-script:
#
# FIXgsi: Location of GSI fix files
# OBSPATH_TEMPLATE: A template path to the location of observation files
#
#-----------------------------------------------------------------------
#
#
#-----------------------------------------------------------------------
#
# Source the variable definitions file and the bash utility functions.
#
#-----------------------------------------------------------------------
#
. $USHdir/source_util_funcs.sh
source_config_for_task "task_process_bufr" ${GLOBAL_VAR_DEFNS_FP}
. $USHdir/job_preamble.sh "TRUE"
#
#-----------------------------------------------------------------------
#
# Save current shell options (in a global array). Then set new options
# for this script/function.
#
#-----------------------------------------------------------------------
#
{ save_shell_opts; . $USHdir/preamble.sh; } > /dev/null 2>&1
#
#-----------------------------------------------------------------------
#
# Get the full path to the file in which this script/function is located
# (scrfunc_fp), the name of that file (scrfunc_fn), and the directory in
# which the file is located (scrfunc_dir).
#
#-----------------------------------------------------------------------
#
scrfunc_fp=$( readlink -f "${BASH_SOURCE[0]}" )
scrfunc_fn=$( basename "${scrfunc_fp}" )
scrfunc_dir=$( dirname "${scrfunc_fp}" )
#
#-----------------------------------------------------------------------
#
# Print message indicating entry into script.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Entering script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"

This is the J-job script for the task that runs a BUFR preprocess for
the specified cycle.
========================================================================"
#
#-----------------------------------------------------------------------
#
# Create the working directory under the cycle directory.
#
#-----------------------------------------------------------------------
#
if [ ${CYCLE_TYPE} == "spinup" ]; then
DATA="${DATA:-${COMIN}/process_bufr_spinup}"
else
DATA="${DATA:-${COMIN}/process_bufr}"
fi
mkdir_vrfy -p ${DATA}
#
#-----------------------------------------------------------------------
#
# Call the ex-script for this J-job and pass to it the necessary varia-
# bles.
#
#-----------------------------------------------------------------------
#
$SCRIPTSdir/exregional_process_bufr.sh || print_err_msg_exit "\
Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
#-----------------------------------------------------------------------
#
# Run job postamble.
#
#-----------------------------------------------------------------------
#
job_postamble
#
#-----------------------------------------------------------------------
#
# Restore the shell options saved at the beginning of this script/func-
# tion.
#
#-----------------------------------------------------------------------
#
{ restore_shell_opts; } > /dev/null 2>&1

96 changes: 96 additions & 0 deletions jobs/JREGIONAL_PROCESS_LIGHTNING
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
#!/bin/bash

#
#-----------------------------------------------------------------------
#
# This J-JOB script runs the NetCDF ligthning observation preprocess
# for the FV3-LAM model
#
#-----------------------------------------------------------------------
#
#
#-----------------------------------------------------------------------
#
# Source the variable definitions file and the bash utility functions.
#
#-----------------------------------------------------------------------
#
. $USHdir/source_util_funcs.sh
source_config_for_task "task_process_lightning" ${GLOBAL_VAR_DEFNS_FP}
. $USHdir/job_preamble.sh "TRUE"
#
#-----------------------------------------------------------------------
#
# Save current shell options (in a global array). Then set new options
# for this script/function.
#
#-----------------------------------------------------------------------
#
{ save_shell_opts; . $USHdir/preamble.sh; } > /dev/null 2>&1
#
#-----------------------------------------------------------------------
#
# Get the full path to the file in which this script/function is located
# (scrfunc_fp), the name of that file (scrfunc_fn), and the directory in
# which the file is located (scrfunc_dir).
#
#-----------------------------------------------------------------------
#
scrfunc_fp=$( $READLINK -f "${BASH_SOURCE[0]}" )
scrfunc_fn=$( basename "${scrfunc_fp}" )
scrfunc_dir=$( dirname "${scrfunc_fp}" )
#
#-----------------------------------------------------------------------
#
# Print message indicating entry into script.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Entering script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"

This is the J-job script for the task that runs a lightning preprocess for
the specified cycle.
========================================================================"
#
#-----------------------------------------------------------------------
#
# Create the working directory under the cycle directory.
#
#-----------------------------------------------------------------------
#
if [ ${CYCLE_TYPE} == "spinup" ]; then
DATA="${DATA:-${COMIN}/process_lightning_spinup}"
else
DATA="${DATA:-${COMIN}/process_lightning}"
fi
mkdir_vrfy -p ${DATA}
#
#-----------------------------------------------------------------------
#
# Call the ex-script for this J-job and pass to it the necessary varia-
# bles.
#
#-----------------------------------------------------------------------
#
$SCRIPTSdir/exregional_process_lightning.sh || print_err_msg_exit "\
Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
#-----------------------------------------------------------------------
#
# Run job postamble.
#
#-----------------------------------------------------------------------
#
job_postamble
#
#-----------------------------------------------------------------------
#
# Restore the shell options saved at the beginning of this script/func-
# tion.
#
#-----------------------------------------------------------------------
#
{ restore_shell_opts; } > /dev/null 2>&1
Loading