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

Feature 348 dmap reformat #356

Merged
merged 79 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
e10cbf1
Update version
bikegeek Nov 14, 2024
87323a6
Per dtcenter/METplus#2336, call custom GHA to trigger METplus use cas…
georgemccabe Nov 15, 2024
48ef291
Update keep_all_mpr_col to keep_all_cols now that DMAP linetype is al…
bikegeek Nov 26, 2024
2767398
Added test for reformatting the DMAP (grid_stat) linetype for support…
bikegeek Nov 26, 2024
48e8b3c
Test config file for reformatted DMAP data used for scatter plot
bikegeek Nov 26, 2024
d28b78f
Replace keep_all_mpr_cols with keep_all_cols now that DMAP linetype c…
bikegeek Nov 26, 2024
24900a5
Merge branch 'develop' of https://github.com/dtcenter/METdataio into …
bikegeek Nov 26, 2024
b84f8f6
update keep_all_mpr_cols to keep_all_cols
bikegeek Nov 26, 2024
ec1cd45
update the comment
bikegeek Nov 26, 2024
2de18e3
Removed debug print statements
bikegeek Nov 26, 2024
f8dde7d
Added test for reformatted DMAP output for line and contour plots
bikegeek Nov 26, 2024
fc88633
Merge branch 'main_v3.0' of https://github.com/dtcenter/METdataio int…
bikegeek Nov 26, 2024
8452ed5
DMAP sample data
bikegeek Nov 26, 2024
8790299
Add values for DMAP reformatting
bikegeek Nov 26, 2024
8e8ace8
Config file for testing reformatting DMAP for line and contour plot s…
bikegeek Nov 26, 2024
003d5f7
Example data and reformatted data for stat_name/stat_value/confidence…
bikegeek Nov 27, 2024
12f6c37
Refactored version of original. Content needed for matched pair data…
bikegeek Nov 27, 2024
776dee2
Added content for ranked data values, by all common stat+linetype-spe…
bikegeek Nov 27, 2024
f16ddef
New example data
bikegeek Nov 27, 2024
64dd34e
Clean up formatting and wording, added content for the TCDIAG reforma…
bikegeek Nov 28, 2024
d451a53
Examples for TCDIAG reformatting
bikegeek Nov 28, 2024
feeb294
Delete METreformat/test/data/ensemble_stat/ensemble_stat_20100101_120…
bikegeek Dec 4, 2024
729b463
Updated the data to the latest version of ECNT (includes additional c…
bikegeek Dec 4, 2024
aa15a6c
Accidentally removed this input file
bikegeek Dec 4, 2024
bc03224
Merge branch 'main_v3.0' of https://github.com/dtcenter/METdataio int…
bikegeek Dec 4, 2024
4c4b4f5
Added DMAP support
bikegeek Dec 4, 2024
5896960
Updated for new ensemble stat ECNT
bikegeek Dec 4, 2024
32ba09e
DMAP reformatting support
bikegeek Dec 4, 2024
d4ecdc1
change aggregation status in config file
bikegeek Dec 4, 2024
475013e
Update the ECNT/ensemble stat tests with latest data and make testing…
bikegeek Dec 4, 2024
06c1a54
Add better explanation for the input_stats_aggregated setting
bikegeek Dec 4, 2024
4641702
update counts for the ensemble stat data directory data: orank from 1…
bikegeek Dec 5, 2024
397ba5e
updated values for line_data_phist_bin from 180 to 340 and line_data_…
bikegeek Dec 5, 2024
98956c2
Delete METreformat/test/data/ensemble_stat/ensemble_stat_20100101_120…
bikegeek Dec 5, 2024
fefd7fe
fix numbe of line_data_phist_bin to 360
bikegeek Dec 5, 2024
bd4d2ff
Merge branch 'feature_348_dmap_reformat' of https://github.com/dtcent…
bikegeek Dec 5, 2024
4a5ddfb
update line_data_rhist_rank
bikegeek Dec 5, 2024
9065f48
Update ECNT aggregation reformatting test to not use hard-coded values
bikegeek Dec 6, 2024
3cf4a90
Remove use of named tuple now that test has been simplified
bikegeek Dec 6, 2024
a9bb295
update the yaml file to use keep_all_cols and updated DMAP line type …
bikegeek Dec 6, 2024
6ebaf59
Added reformatting information for ECNT
bikegeek Dec 7, 2024
0e63f44
Example reformatted output for ECNT
bikegeek Dec 7, 2024
809b224
Cleaned up format in 6.3.1 for easier reading.
bikegeek Dec 9, 2024
d6661d1
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
8cefcfc
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
2885427
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
ac2d175
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
1a07a53
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
b758f0d
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
923131e
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
94d43b5
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
74fe7bd
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
6834829
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
e4c301d
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
27b063e
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
f8f35de
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
5fdbdfa
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
e7fbf22
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
16b9fee
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
a62eb38
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
4bfdc69
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
8451d65
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
f0d2af6
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
8c7c7f2
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
ae288f5
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
bb936a3
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
cfd6eab
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
6c990e0
Update docs/Users_Guide/reformat_stat_data.rst
bikegeek Dec 10, 2024
d043d95
Update reformat_stat_data.rst
bikegeek Dec 10, 2024
f60d354
Update reformat_stat_data.rst
bikegeek Dec 11, 2024
e023b00
Address duplicate explicit target name in links for table 11.1, 12.1,…
bikegeek Dec 11, 2024
d4664b2
Capitalizing MET tool names
jprestop Dec 11, 2024
649e7e6
Per #348, updated spacing to attempt to fix formatting and update cap…
jprestop Dec 11, 2024
1c316df
Per #348, updated spacing to attempt to fix formatting and update cap…
jprestop Dec 11, 2024
e7fe4a0
Per #348, removing additional space before literal include directive …
jprestop Dec 11, 2024
0f8f581
Per #348, removing additional space before literal include directive …
jprestop Dec 11, 2024
529e04d
Per #348, adjusting alignment for appropriate alignment in rendering
jprestop Dec 11, 2024
a47f9a0
Per #348, modified spacing and capitalization
jprestop Dec 11, 2024
94bbf2d
Fixed some ambiguous text that was meant to be removed or reworded fr…
bikegeek Dec 11, 2024
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
8 changes: 4 additions & 4 deletions METdbLoad/test/test_met_db_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def assert_count_rows(cur, table, expected_count):
ENSEMBLE_STAT_DATA_DIR,
"ensemble_stat",
{
"line_data_orank": 1426,
"line_data_phist_bin": 180,
"line_data_rhist_rank": 84,
"line_data_phist": 9,
"line_data_orank": 1921,
"line_data_phist_bin": 360,
"line_data_rhist_rank": 108,
"line_data_phist": 18,
},
),
(
Expand Down
14 changes: 12 additions & 2 deletions METdbLoad/ush/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@
"fcst_init_beg)"]

#
# Used by MET reformatter
# Used by METdataio reformatter
# 1 more than the MET User's Guide to
# account for the FCST_INIT_BEG
#
Expand All @@ -1336,6 +1336,7 @@
NUM_STAT_MCTC_COLS = 28
NUM_STAT_MCTS_COLS = 45
NUM_STAT_MPR_COLS = 40
NUM_STAT_DMAP_COLS =49
# Number of columns BEFORE the "variable" fields (i.e. VERSION, MODEL, ..., LINETYPE), including the
# FCST_INIT_BEG column .
# For PCT the "variable" fields are N_THRESH, THRESH_i, OY_i, ON_i,..., THRESH_N, where the
Expand Down Expand Up @@ -1693,5 +1694,14 @@
'fcst_climo_mean', 'fcst_climo_stdev']

MPR_SPECIFIC = [cur_stat_header.upper() for cur_stat_header in LC_MPR_SPECIFIC]

MPR_HEADERS = LC_COMMON_STAT_HEADER + ['total'] + LC_MPR_SPECIFIC


# DMAP
LC_DMAP_SPECIFIC = ['fy', 'oy', 'fbias', 'baddeley', 'hausdorff',
'med_fo', 'med_of', 'med_min', 'med_max', 'med_mean',
'fom_fo', 'fom_of', 'fom_min', 'fom_max', 'fom_mean',
'zhu_fo', 'zhu_of', 'zhu_min', 'zhu_max', 'zhu_mean',
'g', 'gbeta', 'beta_value']
DMAP_SPECIFIC = [cur_stat_header.upper() for cur_stat_header in LC_DMAP_SPECIFIC]
DMAP_HEADERS = LC_COMMON_STAT_HEADER + ['total'] + LC_DMAP_SPECIFIC
6 changes: 3 additions & 3 deletions METreformat/reformat_stat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ log_filename: stdout
# most verbose is info, less verbose is error
log_level: info

# Currently support FHO, CTC, CTS, CNT, SL1L2, VL1L2, PCT, MCTC, VCNT, ECNT, RHIST, TCDiag, and MPR line types
# Currently support FHO, CTC, CTS, CNT, SL1L2, VL1L2, PCT, MCTC, VCNT, ECNT, RHIST, TCDiag, MPR, and DMAP line types
line_type: PCT

#
# FOR MPR linetype only
# FOR MPR or DMAP linetypes only
#

# True if reformatting for scatter plot, False otherwise
keep_all_mpr_cols: False
keep_all_cols: False
2 changes: 1 addition & 1 deletion METreformat/test/ECNT_for_agg.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
input_stats_aggregated: True
input_stats_aggregated: False
output_dir: ../output
output_filename: ensemble_stat_ecnt_for_agg.data
line_type: ECNT
Expand Down
3,926 changes: 0 additions & 3,926 deletions METreformat/test/data/ensemble_stat/ensemble_stat_20100101_120000V.stat

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION MODEL DESC FCST_LEAD FCST_VALID_BEG FCST_VALID_END OBS_LEAD OBS_VALID_BEG OBS_VALID_END FCST_VAR FCST_UNITS FCST_LEV OBS_VAR OBS_UNITS OBS_LEV OBTYPE VX_MASK INTERP_MTHD INTERP_PNTS FCST_THRESH OBS_THRESH COV_THRESH ALPHA LINE_TYPE
V11.1.0 FV3_core NA 010000 20190521_010000 20190521_010000 000000 20190521_010000 20190521_010000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NEAREST 1 <999 <999 NA NA DMAP 1814400 64663 123297 0.52445 59.29468 181.17671 10.80896 0.83382 0.83382 10.80896 5.82139 0.56002 0.49584 0.49584 0.56002 0.52793 5.5015 0.51393 0.51393 5.5015 3.00771 4558.55938 0.94245 1646023680000
V11.1.0 FV3_core NA 010000 20190521_010000 20190521_010000 000000 20190521_010000 20190521_010000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NBRHD_SQUARE 1 <999 <999 >=0.5 NA NBRCTC 1814400 59822 4841 63475 1686262
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION MODEL DESC FCST_LEAD FCST_VALID_BEG FCST_VALID_END OBS_LEAD OBS_VALID_BEG OBS_VALID_END FCST_VAR FCST_UNITS FCST_LEV OBS_VAR OBS_UNITS OBS_LEV OBTYPE VX_MASK INTERP_MTHD INTERP_PNTS FCST_THRESH OBS_THRESH COV_THRESH ALPHA LINE_TYPE
V11.1.0 FV3_core NA 020000 20190521_020000 20190521_020000 000000 20190521_020000 20190521_020000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NEAREST 1 <999 <999 NA NA DMAP 1814400 122478 124217 0.986 37.25676 95.90099 4.91174 4.83528 4.83528 4.91174 4.87351 0.75398 0.75347 0.75347 0.75398 0.75372 2.55647 2.51824 2.51824 2.55647 2.53735 4453.14484 0.94635 1646023680000
V11.1.0 FV3_core NA 020000 20190521_020000 20190521_020000 000000 20190521_020000 20190521_020000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NBRHD_SQUARE 1 <999 <999 >=0.5 NA NBRCTC 1814400 86624 35854 37593 1654329
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION MODEL DESC FCST_LEAD FCST_VALID_BEG FCST_VALID_END OBS_LEAD OBS_VALID_BEG OBS_VALID_END FCST_VAR FCST_UNITS FCST_LEV OBS_VAR OBS_UNITS OBS_LEV OBTYPE VX_MASK INTERP_MTHD INTERP_PNTS FCST_THRESH OBS_THRESH COV_THRESH ALPHA LINE_TYPE
V11.1.0 FV3_core NA 010000 20190521_010000 20190521_010000 000000 20190521_010000 20190521_010000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NEAREST 1 <999 <999 NA NA DMAP 1814400 42968 123297 0.34849 88.36694 246.28845 23.97453 0.61461 0.61461 23.97453 12.29457 0.3947 0.33924 0.33924 0.3947 0.36697 12.09423 0.41427 0.41427 12.09423 6.25425 6279.69715 0.84955 1646023680000
V11.1.0 FV3_core NA 010000 20190521_010000 20190521_010000 000000 20190521_010000 20190521_010000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NBRHD_SQUARE 1 <999 <999 >=0.5 NA NBRCTC 1814400 41616 1352 81681 1689751
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION MODEL DESC FCST_LEAD FCST_VALID_BEG FCST_VALID_END OBS_LEAD OBS_VALID_BEG OBS_VALID_END FCST_VAR FCST_UNITS FCST_LEV OBS_VAR OBS_UNITS OBS_LEV OBTYPE VX_MASK INTERP_MTHD INTERP_PNTS FCST_THRESH OBS_THRESH COV_THRESH ALPHA LINE_TYPE
V11.1.0 FV3_core NA 020000 20190521_020000 20190521_020000 000000 20190521_020000 20190521_020000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NEAREST 1 <999 <999 NA NA DMAP 1814400 99988 124217 0.80495 35.7628 108.22661 7.25606 2.82767 2.82767 7.25606 5.04186 0.68722 0.66673 0.66673 0.68722 0.67697 3.72527 1.51107 1.51107 3.72527 2.61817 4331.2607 0.95064 1646023680000
V11.1.0 FV3_core NA 020000 20190521_020000 20190521_020000 000000 20190521_020000 20190521_020000 fcst_obj_raw NA *,* obs_obj_raw NA *,* GOES FULL NBRHD_SQUARE 1 <999 <999 >=0.5 NA NBRCTC 1814400 77791 22197 46426 1667986
Loading
Loading