-
Notifications
You must be signed in to change notification settings - Fork 87
Add METplus-based ensemble verification #575
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 176 commits
4d2d117
442c3a3
28693d1
1f453dc
bab2c0d
9148743
26cb99d
f1710bd
c3def15
332b127
cf26307
473f63a
d4c26f0
0c3133d
ba6a846
b6d56e7
68f52eb
8e7b604
b297b17
c7bffda
b8ad8fd
36f43d7
2f92b9b
e95481c
cc0cf24
3814d0b
fa9eb95
b777999
a432746
bb7ae7a
ca6705b
49d08cf
c220470
1ea0468
b74118f
6795646
659edcf
ecf244a
4dc846a
0e9c2ae
718849e
db0855a
ea42fd5
cd1a124
0e51f50
e1f30a6
23fb36c
db5a506
adf3e34
254eceb
1f60907
59b6f39
204cde9
f4dadde
4218fe4
61afd7f
40b2eb3
14f2aa5
f06b1f5
bb2785a
4b7b6ca
e89d6bb
2413b45
e796eaa
264164a
37d270f
f329cfa
71d8274
5972813
6baf974
5976922
7aa504c
af5643a
7646cdf
692d98f
3b59866
4b10aa0
bcf164a
b4dcd77
13c7252
e7ccc81
ed5be89
f2622a3
5edcbde
44307e0
1e72b91
3bba67b
4ff19e5
930fce2
1756643
70fe725
655226c
f7ff262
c60cf0f
8797e73
9205175
eca872f
fddfbdb
390e4b8
19b965e
a385d65
67168ba
fa3c256
e7483da
c267953
51756d7
fb985a1
189b284
cbcf8a4
d4e36b0
e85b5b9
8cf7e9f
39794cc
0f3d8e0
6a74538
48a0595
8c6794c
ded8c34
877881b
979b42e
a58c2b9
5b23920
4335dc6
aaed46b
cc70bc8
3065dbf
850ac21
0e1440d
87cabe6
f76f08f
2d63860
822c912
ed7415b
fd87c79
aa34d0e
e4a0584
2f692dd
33ebfe0
08c2edc
2598d3b
9a45575
6cf3995
1aa2b0b
4488d0a
ae3be2e
d3bbaa7
e90431c
add2a77
3767873
7c7eace
a37a2a3
bc97c4d
8c15682
e18f629
fc1dcbd
63cec48
a8d96c5
fe06507
9a27777
d608d34
2746617
9b045b8
c2a37d6
d1573e6
4a37f8a
a7a11af
d231558
fbf7ba2
67119f9
45ebb20
40f9134
d407476
83b1379
f50c21e
fc336a5
bb664e6
9e668b1
b57d68b
b03571f
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 |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| #!/bin/bash | ||
|
|
||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # This script runs METplus for ensemble-stat on the UPP output files by | ||
| # initialization time for all forecast hours for gridded analysis. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
|
|
||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Source the variable definitions file and the bash utility functions. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| . ${GLOBAL_VAR_DEFNS_FP} | ||
| . $USHDIR/source_util_funcs.sh | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Save current shell options (in a global array). Then set new options | ||
| # for this script/function. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| { save_shell_opts; set -u -x; } > /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 METplus for ensemble-stat | ||
| on gridded fields by initialization time for all forecast hours. | ||
| ========================================================================" | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # If it doesn't already exist, create the directory (vx_dir) in | ||
| # which to store ensemble-stat output. | ||
| # | ||
| # Note that there may be a preexisting version of vx_dir from previous | ||
| # runs of this script (e.g. from the workflow task that runs this script | ||
| # failing and then being called again). Thus, we first make sure | ||
| # preexisting versions are deleted. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
|
|
||
| #if [ "${RUN_ENVIR}" = "nco" ]; then | ||
| # COMOUT="$COMROOT/$NET/$envir/$RUN.$PDY/$cyc" | ||
| # vx_dir="$COMOUT" | ||
| #else | ||
| # vx_dir="${CYCLE_DIR}/metprd" | ||
| #fi | ||
| #mkdir_vrfy -p "${vx_dir}" | ||
|
|
||
| #ensemblestat_dir="${vx_dir}/ensemble_stat" | ||
| ##check_for_preexist_dir "${ensemblestat_dir}" "delete" | ||
| #mkdir_vrfy -p "${ensemblestat_dir}" | ||
|
|
||
| #cd_vrfy "${ensemblestat_dir}" | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Call the ex-script for this J-job and pass to it the necessary varia- | ||
| # bles. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| $SCRIPTSDIR/exregional_run_ensgridvx.sh \ | ||
| cycle_dir="${CYCLE_DIR}" || \ | ||
| print_err_msg_exit "\ | ||
| Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed." | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Print exit message. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| print_info_msg " | ||
| ======================================================================== | ||
| Exiting script: \"${scrfunc_fn}\" | ||
| In directory: \"${scrfunc_dir}\" | ||
| ========================================================================" | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Restore the shell options saved at the beginning of this script/func- | ||
| # tion. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| { restore_shell_opts; } > /dev/null 2>&1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| #!/bin/bash | ||
|
|
||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # This script runs METplus for grid-stat on the UPP output files by | ||
| # initialization time for all forecast hours for gridded analysis. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
|
|
||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Source the variable definitions file and the bash utility functions. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| . ${GLOBAL_VAR_DEFNS_FP} | ||
| . $USHDIR/source_util_funcs.sh | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Save current shell options (in a global array). Then set new options | ||
| # for this script/function. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| { save_shell_opts; set -u -x; } > /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 METplus for grid-stat | ||
| on gridded fields by initialization time for all forecast hours. | ||
| ========================================================================" | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # If it doesn't already exist, create the directory (vx_dir) in | ||
| # which to store grid-stat output. | ||
| # | ||
| # Note that there may be a preexisting version of vx_dir from previous | ||
| # runs of this script (e.g. from the workflow task that runs this script | ||
| # failing and then being called again). Thus, we first make sure | ||
| # preexisting versions are deleted. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
|
|
||
| #if [ "${RUN_ENVIR}" = "nco" ]; then | ||
| # COMOUT="$COMROOT/$NET/$envir/$RUN.$PDY/$cyc" | ||
| # vx_dir="$COMOUT" | ||
| #else | ||
| # vx_dir="${CYCLE_DIR}/metprd" | ||
| #fi | ||
| #mkdir_vrfy -p "${vx_dir}" | ||
|
|
||
| #ensemblestat_dir="${vx_dir}/ensemble_stat" | ||
| #gridstat_mean_dir="${ensemblestat_dir}/ensemble_mean" | ||
| ##check_for_preexist_dir "${ensemblestat_dir}" "delete" | ||
| #mkdir_vrfy -p "${gridstat_mean_dir}" | ||
|
|
||
| #cd_vrfy "${gridstat_mean_dir}" | ||
| # | ||
|
Collaborator
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 argument as previous comment regarding commented code.
Collaborator
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. Same response as above -- not needed, will remove. |
||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Call the ex-script for this J-job and pass to it the necessary varia- | ||
| # bles. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| $SCRIPTSDIR/exregional_run_ensgridvx_mean.sh \ | ||
| cycle_dir="${CYCLE_DIR}" || \ | ||
| print_err_msg_exit "\ | ||
| Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed." | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Print exit message. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| print_info_msg " | ||
| ======================================================================== | ||
| Exiting script: \"${scrfunc_fn}\" | ||
| In directory: \"${scrfunc_dir}\" | ||
| ========================================================================" | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Restore the shell options saved at the beginning of this script/func- | ||
| # tion. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| { restore_shell_opts; } > /dev/null 2>&1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| #!/bin/bash | ||
|
|
||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # This script runs METplus for grid-stat on the UPP output files by | ||
| # initialization time for all forecast hours for gridded analysis. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
|
|
||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Source the variable definitions file and the bash utility functions. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| . ${GLOBAL_VAR_DEFNS_FP} | ||
| . $USHDIR/source_util_funcs.sh | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Save current shell options (in a global array). Then set new options | ||
| # for this script/function. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| { save_shell_opts; set -u -x; } > /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 METplus for grid-stat | ||
| on gridded fields by initialization time for all forecast hours. | ||
| ========================================================================" | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # If it doesn't already exist, create the directory (vx_dir) in | ||
| # which to store grid-stat output. | ||
| # | ||
| # Note that there may be a preexisting version of vx_dir from previous | ||
| # runs of this script (e.g. from the workflow task that runs this script | ||
| # failing and then being called again). Thus, we first make sure | ||
| # preexisting versions are deleted. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
|
|
||
| #if [ "${RUN_ENVIR}" = "nco" ]; then | ||
| # COMOUT="$COMROOT/$NET/$envir/$RUN.$PDY/$cyc" | ||
| # vx_dir="$COMOUT" | ||
| #else | ||
| # vx_dir="${CYCLE_DIR}/metprd" | ||
| #fi | ||
| #mkdir_vrfy -p "${vx_dir}" | ||
|
|
||
| #ensemblestat_dir="${vx_dir}/ensemble_stat" | ||
| #gridstat_prob_dir="${ensemblestat_dir}/ensemble_prob" | ||
| ##check_for_preexist_dir "${ensemblestat_dir}" "delete" | ||
| #mkdir_vrfy -p "${gridstat_prob_dir}" | ||
|
|
||
| #cd_vrfy "${gridstat_prob_dir}" | ||
| # | ||
|
Collaborator
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 comment about commented code.
Collaborator
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. Same response as above -- not needed, will remove. |
||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Call the ex-script for this J-job and pass to it the necessary varia- | ||
| # bles. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| $SCRIPTSDIR/exregional_run_ensgridvx_prob.sh \ | ||
| cycle_dir="${CYCLE_DIR}" || \ | ||
| print_err_msg_exit "\ | ||
| Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed." | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Print exit message. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| print_info_msg " | ||
| ======================================================================== | ||
| Exiting script: \"${scrfunc_fn}\" | ||
| In directory: \"${scrfunc_dir}\" | ||
| ========================================================================" | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| # Restore the shell options saved at the beginning of this script/func- | ||
| # tion. | ||
| # | ||
| #----------------------------------------------------------------------- | ||
| # | ||
| { restore_shell_opts; } > /dev/null 2>&1 | ||
|
|
||
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.
Is this commented block of code above still needed? If not, I would recommend removing it.
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.
Ah, good catch. The commented out section is not needed (commented out for testing purposes but never removed)!