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

Update develop-ref after #2056, #2057, and #2060 #2059

Merged
merged 155 commits into from
Feb 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
9437447
Per #1906, modify code to pass entire path to make_temp_file_name ins…
jprestop Oct 26, 2021
8c446ff
Feature 1761 percent thresh (#1956)
sethlinden Nov 3, 2021
d60924c
Feature 1905 ens_ctrl (#1955)
JohnHalleyGotway Nov 3, 2021
3b13ce1
Hotfix after merging changing for #1761. Updating the list of expecte…
JohnHalleyGotway Nov 3, 2021
5131042
Per #1905, committing a hotfix directly to the develop branch. Revert…
JohnHalleyGotway Nov 3, 2021
4ff28d1
Feature 1957 ascii2nc_python (#1958)
JohnHalleyGotway Nov 4, 2021
aee6269
Feature 1949 cf netcdf documentaton (#1951)
hsoh-u Nov 15, 2021
867360f
Feature 1968 ens_ctrl (#1969)
JohnHalleyGotway Nov 15, 2021
0990061
Feature 1809 gen prob (#1967)
JohnHalleyGotway Nov 16, 2021
1663bb6
Merge branch 'develop-ref' into develop
JohnHalleyGotway Nov 16, 2021
13996c2
Feature 1970 v10.1.0-beta4 (#1973)
JohnHalleyGotway Nov 16, 2021
dae9db7
Fix tiny typo in plot_data_plane usage statement.
JohnHalleyGotway Nov 17, 2021
9bd9946
Hotfix for the develop branch to get met-10.1.0-beta4 compiling on WC…
JohnHalleyGotway Nov 17, 2021
e0b659d
Updating the beta4 release date from 11/16 to 11/17 since the beta4 r…
JohnHalleyGotway Nov 17, 2021
817d9db
Update the MET PR template to list expected changes up front.
JohnHalleyGotway Nov 19, 2021
4e28ae7
Bugfix 1976 develop cdist (#1979)
JohnHalleyGotway Nov 22, 2021
6d16e23
Merge branch 'develop-ref' into develop
JohnHalleyGotway Nov 23, 2021
39a5233
#1936 Excludes precip3hr, precip6hr, precip12hr, and precip10min from…
Nov 29, 2021
c9434e8
Per #1985, correcting typo found while creating V10.0.1 in the develo…
JohnHalleyGotway Dec 1, 2021
84f8c7f
Per #1985, VERY minor change to fix alignment of titles in Point-Stat…
JohnHalleyGotway Dec 1, 2021
d35190e
#1936 Added an unit test for newer MESONET file
Dec 1, 2021
f81d250
Merge pull request #1984 from dtcenter/feature_1936_madis_nc2
hsoh-u Dec 2, 2021
8c29f09
Feature 1989 sort (#1990)
JohnHalleyGotway Dec 13, 2021
b93f4ea
Feature 1991 VCNT (#1992)
JohnHalleyGotway Dec 13, 2021
49fb555
Feature 1993 grid_mask (#1994)
JohnHalleyGotway Dec 13, 2021
dd0a68b
#1844 Added vx_pointdata_python
Dec 28, 2021
2b61506
#1844 Added vx_pointdata_python to PYTHON_LIBS & make file for vx_poi…
Dec 28, 2021
b4a4e18
#1844 Added vx_pointdata_python to SUBDIRS
Dec 28, 2021
ba9f81e
#1844 Initial release
Dec 28, 2021
abef2b7
#1844 Added met_point_data.cc & met_point_data.h
Dec 28, 2021
6c36d79
#1844 NcHeaderData is renamed to MetPointHeader and moved to met_poin…
Dec 28, 2021
3f0de5e
#1844 NcPointObsData is derived from MetPointObsData. Many methods ar…
Dec 28, 2021
6c50d50
#1844 Moved varianbles and methods to the base class MetPointData
Dec 28, 2021
0d7b731
#1844 override the obs_data pointer to the derived class
Dec 28, 2021
b053f71
#1844 Added pyobject_as_bool & pyobject_as_string_array
Dec 28, 2021
0ecea6e
#1844 Cleanup include statements and addpointdata_python.h if python …
Dec 28, 2021
e397fa1
#18443 Support python embedding
Dec 28, 2021
315d3b4
#1844 Initial release
Dec 28, 2021
95a65ed
#1844 Make buf_size const
Dec 29, 2021
e900334
Add GitHub Actions workflow to trigger METplus testing workflow (#2002)
georgemccabe Jan 5, 2022
1c981f4
changed names of inputs to send to METplus to match changes to METplu…
georgemccabe Jan 5, 2022
0273cf1
#1965 Excludes the duplicated variable names from multiple input files
Jan 7, 2022
ab1199b
#1965 Processed with the raw variable names and update them when the …
Jan 11, 2022
d5cc7b1
#1965 Added unit test ioda2nc_same_input
Jan 11, 2022
e48c5ff
#1965 Processed with the raw variable names and update them when the …
Jan 11, 2022
5617aa2
#1965 Added unit test ioda2nc_same_input
Jan 11, 2022
ee76143
#1965 initialize var_idx
hsoh-u Jan 12, 2022
1e97085
Merge pull request #2006 from dtcenter/feature_1965_ioda2nc_same_input
hsoh-u Jan 12, 2022
acbb7b9
Update the development environment for seneca to add /usr/local/nco/b…
Jan 12, 2022
717dd17
Merge branch 'develop' of https://github.com/dtcenter/MET into develop
JohnHalleyGotway Jan 12, 2022
58988bf
send email address of user who triggered event to METplus workflow as…
georgemccabe Jan 12, 2022
5632c5c
Merge branch 'develop' of github.com:dtcenter/MET into develop
georgemccabe Jan 12, 2022
b267883
Fixup the Rscript diffing logic to support running the nightly build …
JohnHalleyGotway Jan 12, 2022
d7eb8e4
Merge branch 'develop' of https://github.com/dtcenter/MET into develop
JohnHalleyGotway Jan 12, 2022
96536f5
No real changes here. Just formatting
Jan 12, 2022
fa41760
Feature 1974 message_type_group_map (#1999)
hsoh-u Jan 12, 2022
551f92b
Feature 1996 uninitialized variables (#2004)
hsoh-u Jan 12, 2022
39d7e6f
Merge remote-tracking branch 'origin/develop' into feature_1844_pytho…
Jan 12, 2022
dbc7d10
Feature 1695 ensemble single file (gen_ens_prod) (#2001)
georgemccabe Jan 12, 2022
be7910e
Feature 1965 NB faile with time summary by ioda2nc (#2008)
hsoh-u Jan 12, 2022
1e13dea
Feature 1810 shapes (#2005)
JohnHalleyGotway Jan 13, 2022
edd61fd
#1844 Added log message for use_var_id
Jan 13, 2022
6cae6b5
#1844 Get use_var_id for python embedding
Jan 13, 2022
aaa1010
#1844 Initial release
Jan 13, 2022
adf4928
#1844 Added met_point_obs.py and read_met_point_obs.py
Jan 13, 2022
0640d8d
#1844 Added 4 unit test for python embedding of MET point data
Jan 13, 2022
9483487
Merge remote-tracking branch 'origin/develop' into feature_1844_pytho…
Jan 13, 2022
37f4f32
More changes to test_util.R to account for differences between 4.7.0 …
JohnHalleyGotway Jan 13, 2022
36761b6
Fix merge conflict
JohnHalleyGotway Jan 13, 2022
4f57edd
#1844 Added python embedding for point observation data
Jan 13, 2022
27925d8
Merge remote-tracking branch 'origin/develop' into feature_1844_pytho…
Jan 13, 2022
de81526
Feature 1926 gridstat openmp (#1977)
mo-mglover Jan 13, 2022
e96a211
feature 1695 ensemble single file (ensemble_stat) (#2007)
georgemccabe Jan 14, 2022
032456b
Committing directly to the develop branch. Removing many, many instan…
JohnHalleyGotway Jan 14, 2022
ee4a3a4
feature 2011 v10.1.0-beta5 (#2014)
JohnHalleyGotway Jan 15, 2022
18ccf3a
feature 1695 fix issues with ensemble changes (#2012)
georgemccabe Jan 15, 2022
634806e
Merge branch 'develop-ref' into develop
JohnHalleyGotway Jan 15, 2022
e9df2fc
Hotfix for #1695 committed directly to the develop branch. The new En…
JohnHalleyGotway Jan 16, 2022
e75fe46
Merge branch 'develop-ref' into develop
JohnHalleyGotway Jan 17, 2022
65539e1
Adding George to email list for the nightly build.
JohnHalleyGotway Jan 18, 2022
ee621eb
Merge branch 'develop' into feature_1844_python_embedding
JohnHalleyGotway Jan 18, 2022
7c18231
Fix the links for the met-10.1.0-beta5 release notes.
JohnHalleyGotway Jan 20, 2022
3bd3cb3
Merge remote-tracking branch 'origin/develop' into feature_1844_pytho…
Jan 20, 2022
b8e0de3
#1844 Make met_point_obs as abstract class
Jan 21, 2022
29d479f
#1844 correctedb for loop end condition on processing obs bdata
Jan 21, 2022
333419c
Feature 1546 unit_tests (#2021)
JohnHalleyGotway Jan 24, 2022
b177c3b
#2020 Added SonarQube related varibales
Jan 25, 2022
11daa46
#2020 Initial release
Jan 25, 2022
89642fc
#2015 Avoid the repeasted debug message if derived varibales are disa…
Jan 25, 2022
6b9b411
#1996 Initialize right and left
Jan 25, 2022
b606312
#1966 Call clear() instead of reset memory for Header variable
Jan 25, 2022
4142c48
#1966 Make sure the levels from variable does not exceed the maxLevel
Jan 25, 2022
c4f5a1b
#1966 Removed unreachable codes
Jan 25, 2022
4226cbe
#1966 Do not write into NetcDF if empty data
Jan 25, 2022
dd9c46c
Merge branch 'develop' into feature_1844_python_embedding
JohnHalleyGotway Jan 25, 2022
7aaddba
Merge pull request #2010 from dtcenter/feature_1844_python_embedding
hsoh-u Jan 26, 2022
587b936
#2015 Corrected "retained or derived" count
Jan 27, 2022
cfb4759
Merge pull request #2024 from dtcenter/feature_2020_run_sonarqube
hsoh-u Jan 27, 2022
80f79fd
Merge pull request #2026 from dtcenter/feature_2015_pb2nc_debug_message
hsoh-u Jan 27, 2022
3097278
Feature 1546 CI testing (#2029)
georgemccabe Jan 27, 2022
d9447e9
Merge branch 'develop-ref' into develop
JohnHalleyGotway Jan 27, 2022
42ca71a
fixed broken workflow by setting environment variable expected for do…
georgemccabe Jan 27, 2022
5939357
add missing docker tag from push command
georgemccabe Jan 27, 2022
1e7551f
added correct docker tag value
georgemccabe Jan 27, 2022
afe0ad4
fixed incorrect truth data version for updating -ref reference data
georgemccabe Jan 27, 2022
6e1e209
Merge branch 'develop-ref' into develop
georgemccabe Jan 27, 2022
555494b
Updating develop with changes to the unit tests names. Renaming unit_…
JohnHalleyGotway Jan 28, 2022
ece4c3a
fixed directory to copy truth data into -- copy command was copying t…
georgemccabe Jan 28, 2022
afdf9db
git push origin develop0;136;0cMerge branch 'develop-ref' into develop
georgemccabe Jan 28, 2022
82d45a9
Per #1907, added warning about switch from Ensemble-Stat to Gen-Ens-P…
jprestop Jan 31, 2022
5dfcf5b
2028 Check null for header data
Feb 1, 2022
c767e8f
Removed un-reachable code
Feb 1, 2022
310c236
#2028 Check if the pointer (d) is null
Feb 1, 2022
fa5badf
#2015 Changed warning to debug message
Feb 1, 2022
df00576
#2028 Passing two dimensionl cur and dim array
Feb 1, 2022
206f74a
#2028 Set obs_data
Feb 2, 2022
4da5850
Merge pull request #2035 from dtcenter/feature_2028_madis2nc_profiler_qc
hsoh-u Feb 2, 2022
917c300
Feature 2003 briercl (#2034)
JohnHalleyGotway Feb 2, 2022
abdc436
do not run testing workflow if changes are isolated to the met/docs d…
georgemccabe Feb 3, 2022
4a31d4f
Per #2013, changed source and README. ci-run-unit (#2039)
davidalbo Feb 3, 2022
872e2e4
Feature 1055 read rot latlon (#2041)
JohnHalleyGotway Feb 8, 2022
221e148
Merge branch 'develop-ref' into develop
JohnHalleyGotway Feb 8, 2022
6ec6e71
#2044 Renamed obs_prefbufr_map to obs_prepbufr_map (typo)
Feb 9, 2022
b4ec7b8
#1996 Initialize i_point
Feb 9, 2022
fa3896d
#2044 Corrected config key for obs_prefbufr_map and give a warning fo…
Feb 10, 2022
9c45689
CI: output summary of differences in GHA log to easily see results wi…
georgemccabe Feb 10, 2022
b2e7276
#2027 Added a debug message
Feb 10, 2022
c9ba6f1
#2027 ci-run-unit Changed wind thres
Feb 10, 2022
6cd0b12
Merge remote-tracking branch 'origin/develop' into feature_2027_grid_…
Feb 10, 2022
c1b2022
#2027 ci-run-unit Increased the precision to debug message
Feb 10, 2022
47bfef6
print end of script after error summary, ci-run-unit
georgemccabe Feb 10, 2022
348d05e
#2027 Increased the buffer and cheking the status of sprintf
Feb 10, 2022
e9e5a52
Merge branch 'feature_2027_grid_stat_wind_direction' of github.com:dt…
Feb 10, 2022
a79cd9b
Feature 1998 standard sections (#2038)
lisagoodrich Feb 11, 2022
f4e1f7f
#2044 parse_conf_obs_bufr_map is moved to pb2nc_conf_info.c
Feb 11, 2022
3b88ab1
#2044 parse_conf_obs_bufr_map is moved to pb2nc_conf_info.c
Feb 11, 2022
4020d35
#2044 Changed debiug level for PBL
Feb 11, 2022
42aad8a
#2044 ci-run-unit Give warning if bad connfig key is used
Feb 11, 2022
ceacf2a
Update met_stats.cc
hsoh-u Feb 11, 2022
5437e5f
Update met_stats.cc
JohnHalleyGotway Feb 11, 2022
67b484c
Feature 2040 parse timing (#2048)
JohnHalleyGotway Feb 11, 2022
0f25d3c
Merge pull request #2047 from dtcenter/feature_2027_grid_stat_wind_di…
hsoh-u Feb 11, 2022
ae13219
#2033 ci-run-test Initial release
Feb 11, 2022
1d56b26
CI: Add logic to auto update input data (#2046)
georgemccabe Feb 11, 2022
39a50c1
Bugfix 2045 develop hira (#2049)
JohnHalleyGotway Feb 11, 2022
ce3582d
#2044 ci-run-test merge again
Feb 11, 2022
fd95301
Feature 2040 patch (#2053)
JohnHalleyGotway Feb 15, 2022
1852dae
For #2044, fix a typo in PB2NCConfig_G212. A commented out obs_bufr_v…
JohnHalleyGotway Feb 17, 2022
6b2134d
Merge pull request #2050 from dtcenter/feature_2044_pb2nc_config
hsoh-u Feb 17, 2022
418ebe7
print docker build log to GHA log if build fails
georgemccabe Feb 18, 2022
0d04d0d
Feature 1824 pb2nc mlcape (#2057)
hsoh-u Feb 18, 2022
a2a7372
Feature 1583 es hira (#2056)
JohnHalleyGotway Feb 18, 2022
e1160cf
Merge branch 'develop-ref' into develop
JohnHalleyGotway Feb 19, 2022
10ca15c
#1824 ci-run-test Reset itype to 1 for regular CAPE
Feb 19, 2022
fd9e63c
Merge pull request #2060 from dtcenter/feature_1824_pb2nc_MLCAPE2
hsoh-u Feb 20, 2022
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
2 changes: 2 additions & 0 deletions .github/dummy_for_action
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#update me to add action comment

4 changes: 4 additions & 0 deletions .github/jobs/build_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ time_command docker build -t ${DOCKERHUB_TAG} \
--build-arg SOURCE_BRANCH \
--build-arg MET_BASE_IMAGE \
-f $DOCKERFILE_PATH ${GITHUB_WORKSPACE}
if [ $? != 0 ]; then
cat ${GITHUB_WORKSPACE}/docker_build.log
exit 1
fi
1 change: 1 addition & 0 deletions met/data/config/ConfigConstants
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ AW_MEAN = 20;
GAUSSIAN = 21;
MAXGAUSS = 22;
GEOG_MATCH = 23;
HIRA = 24;

// Interpolation types
NONE = 1;
Expand Down
5 changes: 3 additions & 2 deletions met/data/config/PB2NCConfig_default
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ obs_bufr_map = [];
// abbreviations in the output. This default map is appended to obs_bufr_map.
// This should not typically be overridden.
//
obs_prefbufr_map = [
obs_prepbufr_map = [
{ key = "POB"; val = "PRES"; },
{ key = "QOB"; val = "SPFH"; },
{ key = "TOB"; val = "TMP"; },
Expand All @@ -121,7 +121,8 @@ obs_prefbufr_map = [
{ key = "D_MIXR"; val = "MIXR"; },
{ key = "D_PRMSL"; val = "PRMSL"; },
{ key = "D_PBL"; val = "PBL"; },
{ key = "D_CAPE"; val = "CAPE"; }
{ key = "D_CAPE"; val = "CAPE"; },
{ key = "D_MLCAPE"; val = "MLCAPE"; }
];

////////////////////////////////////////////////////////////////////////////////
Expand Down
11 changes: 7 additions & 4 deletions met/docs/Users_Guide/config_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ using the following entries:
* MAXGAUSS to compute the maximum value in the neighborhood
and apply a Gaussian smoother to the result

The BEST and GEOG_MATCH interpolation options are not valid for regridding.
The BEST, GEOG_MATCH, and HIRA options are not valid for regridding.

* The "width" entry specifies a regridding width, when applicable.
- width = 4; To regrid using a 4x4 box or circle with diameter 4.
Expand Down Expand Up @@ -1689,7 +1689,10 @@ This dictionary may include the following entries:
* MAXGAUSS for the maximum value followed by a Gaussian smoother

* GEOG_MATCH for the nearest grid point where the land/sea mask
and geography criteria are satisfied.
and geography criteria are satisfied

* HIRA for all neighborhood points to define a spatial
ensemble (only in Ensemble-Stat)

The BUDGET, FORCE, GAUSSIAN, and MAXGAUSS methods are not valid for
interpolating to point locations. For grid-to-grid comparisons, the
Expand Down Expand Up @@ -3467,7 +3470,7 @@ of the forecast the observation is used to verify.

obs_bufr_map = [];

obs_prefbufr_map
obs_prepbufr_map
""""""""""""""""

Default mapping for PREPBUFR. Replace input BUFR variable names with GRIB
Expand All @@ -3478,7 +3481,7 @@ abbreviations to the output.

.. code-block:: none

obs_prefbufr_map = [
obs_prepbufr_map = [
{ key = "POB"; val = "PRES"; },
{ key = "QOB"; val = "SPFH"; },
{ key = "TOB"; val = "TMP"; },
Expand Down
4 changes: 4 additions & 0 deletions met/docs/Users_Guide/ensemble-stat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Ensemble forecasts derived from a set of deterministic ensemble members

Ensemble forecasts are often created as a set of deterministic forecasts. The ensemble members are rarely used separately. Instead, they can be combined in various ways to produce a forecast. MET can combine the ensemble members into some type of summary forecast according to user specifications. Ensemble means are the most common, and can be paired with the ensemble variance or spread. Maximum, minimum and other summary values are also available, with details in the practical information section.

Typically an ensemble is constructed by selecting a single forecast value from each member for each observation. When the High Resolution Assessment (HiRA) interpolation method is chosen, all of the nearby neighborhood points surrounding each observation from each member are used. Therefore, processing an N-member ensemble using a HiRA neighborhood of size M produces ensemble output with size N*M. This approach fully leverages information from all nearby grid points to evaluate the ensemble quality.

The ensemble relative frequency is the simplest method for turning a set of deterministic forecasts into something resembling a probability forecast. MET will create the ensemble relative frequency as the proportion of ensemble members forecasting some event. For example, if 5 out of 10 ensemble members predict measurable precipitation at a grid location, then the ensemble relative frequency of precipitation will be :math:`5/10=0.5`. If the ensemble relative frequency is calibrated (unlikely) then this could be thought of as a probability of precipitation.

The neighborhood ensemble probability (NEP) and neighborhood maximum ensemble probability (NMEP) methods are described in :ref:`Schwartz and Sobash (2017) <Schwartz-2017>`. They are an extension of the ensemble relative frequencies described above. The NEP value is computed by averaging the relative frequency of the event within the neighborhood over all ensemble members. The NMEP value is computed as the fraction of ensemble members for which the event is occurring somewhere within the surrounding neighborhood. The NMEP output is typically smoothed using a Gaussian kernel filter. The neighborhood sizes and smoothing options can be customized in the configuration file.
Expand Down Expand Up @@ -161,6 +163,8 @@ ____________________

The configuration options listed above are common to many MET tools and are described in :numref:`config_options`.

Note that the **HIRA** interpolation method is only supported in Ensemble-Stat.

_____________________

.. code-block:: none
Expand Down
3 changes: 2 additions & 1 deletion met/docs/Users_Guide/reformat_point.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ _____________________
obs_bufr_var = [ 'QOB', 'TOB', 'ZOB', 'UOB', 'VOB' ];


Each PrepBUFR message will likely contain multiple observation variables. The **obs_bufr_var** variable is used to specify which observation variables should be retained or derived. The variable name comes from BUFR file which includes BUFR table. The following BUFR names may be retained: QOB, TOB, ZOB, UOB, and VOB for specific humidity, temperature, height, and the u and v components of winds. The following BUFR names may be derived: D_DPT, D_WIND, D_RH, D_MIXR, D_PRMSL, D_PBL, and D_CAPE for dew point, wind speed, relative humidity, mixing ratio, pressure reduced to MSL, planetary boundary layer height, and convective available potential energy. This configuration replaces **obs_grib_code**. If the list is empty, all BUFR variables are retained.
Each PrepBUFR message will likely contain multiple observation variables. The **obs_bufr_var** variable is used to specify which observation variables should be retained or derived. The variable name comes from BUFR file which includes BUFR table. The following BUFR names may be retained: QOB, TOB, ZOB, UOB, and VOB for specific humidity, temperature, height, and the u and v components of winds. The following BUFR names may be derived: D_DPT, D_WIND, D_RH, D_MIXR, D_PRMSL, D_PBL, D_CAPE, and D_MLCAPE for dew point, wind speed, relative humidity, mixing ratio, pressure reduced to MSL, planetary boundary layer height, convective available potential energy, and mixed layer convective available potential energy. This configuration replaces **obs_grib_code**. If the list is empty, all BUFR variables are retained.

_____________________

Expand All @@ -248,6 +248,7 @@ _____________________
{ key = 'D_PRMSL'; val = 'PRMSL'; },
{ key = 'D_PBL'; val = 'PBL'; },
{ key = 'D_CAPE'; val = 'CAPE'; }
{ key = 'D_MLCAPE'; val = 'MLCAPE'; }
];


Expand Down
4 changes: 4 additions & 0 deletions met/scripts/config/EnsembleStatConfig
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ interp = {
{
method = NEAREST;
width = 1;
},
{
method = HIRA;
width = 2;
}
];
}
Expand Down
2 changes: 1 addition & 1 deletion met/scripts/config/PB2NCConfig_G212
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ obs_bufr_var = [ "QOB", "TOB", "ZOB", "UOB", "VOB",
// Mapping of BUFR variable name to GRIB name. The default map is defined at
// obs_prepbufr_map. This replaces/expends the default map.
//
//obs_bufr_var = [];
obs_bufr_map = [];

////////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion met/scripts/config/STATAnalysisConfig
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs = [
"-job aggregate -line_type GRAD -vx_mask DTC165 -vx_mask DTC166 -by FCST_VAR -dump_row ${TEST_OUT_DIR}/stat_analysis/job_aggregate_GRAD.stat",
"-job aggregate -line_type ISC -fcst_thresh >0.0 -vx_mask TILE_TOT -fcst_var APCP_12 -dump_row ${TEST_OUT_DIR}/stat_analysis/job_aggregate_ISC.stat",
"-job aggregate -line_type RHIST -obtype MC_PCP -vx_mask HUC4_1605 -vx_mask HUC4_1803 -vx_mask HUC4_1804 -vx_mask HUC4_1805 -vx_mask HUC4_1806 -dump_row ${TEST_OUT_DIR}/stat_analysis/job_aggregate_RHIST.stat",
"-job aggregate_stat -line_type ORANK -out_line_type RHIST -obtype ADPSFC -vx_mask HUC4_1605 -vx_mask HUC4_1803 -vx_mask HUC4_1804 -vx_mask HUC4_1805 -vx_mask HUC4_1806 -dump_row ${TEST_OUT_DIR}/stat_analysis/job_aggregate_stat_ORANK_RHIST.stat"
"-job aggregate_stat -line_type ORANK -out_line_type RHIST -obtype ADPSFC -vx_mask HUC4_1605,HUC4_1803,HUC4_1804,HUC4_1805,HUC4_1806 -by INTERP_MTHD,INTERP_PNTS -dump_row ${TEST_OUT_DIR}/stat_analysis/job_aggregate_stat_ORANK_RHIST.stat"
];

////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion met/src/basic/vx_config/config_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ static const char conf_key_message_type_group_map[] = "message_type_group_map";
static const char conf_key_obs_bufr_map[] = "obs_bufr_map";
static const char conf_key_obs_bufr_var[] = "obs_bufr_var";
static const char conf_key_obs_name_map[] = "obs_name_map";
static const char conf_key_obs_prefbufr_map[] = "obs_prefbufr_map";
static const char conf_key_obs_prepbufr_map[] = "obs_prepbufr_map";
static const char conf_key_key[] = "key";
static const char conf_key_val[] = "val";
static const char conf_key_boot_interval[] = "boot.interval";
Expand Down
15 changes: 5 additions & 10 deletions met/src/basic/vx_config/config_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ using namespace std;
///////////////////////////////////////////////////////////////////////////////

static const double default_vld_thresh = 1.0;
static const char conf_key_prepbufr_map_bad[] = "obs_prefbufr_map"; // for backward compatibility

///////////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -140,9 +141,10 @@ RegridInfo::RegridInfo() {
void RegridInfo::validate() {

// Check for unsupported regridding options
if(method == InterpMthd_Best ||
if(method == InterpMthd_Best ||
method == InterpMthd_Geog_Match ||
method == InterpMthd_Gaussian) {
method == InterpMthd_Gaussian ||
method == InterpMthd_HiRA) {
mlog << Error << "\nRegridInfo::validate() -> "
<< "\"" << interpmthd_to_string(method)
<< "\" not valid for regridding, only interpolating.\n\n";
Expand Down Expand Up @@ -1088,14 +1090,6 @@ map<ConcatString,StringArray> parse_conf_metadata_map(Dictionary *dict) {

///////////////////////////////////////////////////////////////////////////////

map<ConcatString,ConcatString> parse_conf_obs_bufr_map(Dictionary *dict) {
map<ConcatString,ConcatString> m = parse_conf_key_value_map(dict, conf_key_obs_prefbufr_map);
parse_add_conf_key_value_map(dict, conf_key_obs_bufr_map, &m);
return m;
}

///////////////////////////////////////////////////////////////////////////////

map<ConcatString,ConcatString> parse_conf_obs_name_map(Dictionary *dict) {
const char *method_name = "parse_conf_obs_name_map() -> ";
return parse_conf_key_value_map(dict, conf_key_obs_name_map);
Expand Down Expand Up @@ -2279,6 +2273,7 @@ InterpMthd int_to_interpmthd(int i) {
else if(i == conf_const.lookup_int(interpmthd_gaussian_str)) m = InterpMthd_Gaussian;
else if(i == conf_const.lookup_int(interpmthd_maxgauss_str)) m = InterpMthd_MaxGauss;
else if(i == conf_const.lookup_int(interpmthd_geog_match_str)) m = InterpMthd_Geog_Match;
else if(i == conf_const.lookup_int(interpmthd_hira_str)) m = InterpMthd_HiRA;
else {
mlog << Error << "\nconf_int_to_interpmthd() -> "
<< "Unexpected value of " << i
Expand Down
8 changes: 6 additions & 2 deletions met/src/basic/vx_config/config_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

////////////////////////////////////////////////////////////////////////

static const char conf_key_old_prepbufr_map[] = "obs_prefbufr_map"; // for backward compatibility

////////////////////////////////////////////////////////////////////////

extern ConcatString parse_conf_version(Dictionary *dict);
extern ConcatString parse_conf_string(Dictionary *dict, const char *, bool check_empty = true);
extern GrdFileType parse_conf_file_type(Dictionary *dict);
Expand All @@ -48,13 +52,13 @@ extern ClimoCDFInfo parse_conf_climo_cdf(Dictionary *dict);
extern TimeSummaryInfo parse_conf_time_summary(Dictionary *dict);
extern map<ConcatString,ConcatString> parse_conf_key_value_map(
Dictionary *dict, const char *conf_key_map_name, const char *caller=0);
extern void parse_add_conf_key_value_map(
Dictionary *dict, const char *conf_key_map_name, map<ConcatString,ConcatString> *m);
extern map<ConcatString,ConcatString>
parse_conf_message_type_map(Dictionary *dict);
extern map<ConcatString,StringArray>
parse_conf_message_type_group_map(Dictionary *dict);
extern map<ConcatString,StringArray> parse_conf_metadata_map(Dictionary *dict);
extern map<ConcatString,ConcatString>
parse_conf_obs_bufr_map(Dictionary *dict);
extern map<ConcatString,ConcatString>
parse_conf_obs_name_map(Dictionary *dict);
extern BootInfo parse_conf_boot(Dictionary *dict);
Expand Down
2 changes: 2 additions & 0 deletions met/src/basic/vx_util/interp_mthd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ConcatString interpmthd_to_string(const InterpMthd m) {
case(InterpMthd_Gaussian): out = interpmthd_gaussian_str; break;
case(InterpMthd_MaxGauss): out = interpmthd_maxgauss_str; break;
case(InterpMthd_Geog_Match): out = interpmthd_geog_match_str; break;
case(InterpMthd_HiRA): out = interpmthd_hira_str; break;

case(InterpMthd_None):
default: out = interpmthd_none_str; break;
Expand Down Expand Up @@ -77,6 +78,7 @@ InterpMthd string_to_interpmthd(const char *mthd_str) {
else if(strcmp(mthd_str, interpmthd_gaussian_str ) == 0) m = InterpMthd_Gaussian;
else if(strcmp(mthd_str, interpmthd_maxgauss_str ) == 0) m = InterpMthd_MaxGauss;
else if(strcmp(mthd_str, interpmthd_geog_match_str) == 0) m = InterpMthd_Geog_Match;
else if(strcmp(mthd_str, interpmthd_hira_str) == 0) m = InterpMthd_HiRA;
else m = InterpMthd_None;

return(m);
Expand Down
4 changes: 3 additions & 1 deletion met/src/basic/vx_util/interp_mthd.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ enum InterpMthd {
InterpMthd_Lower_Left,
InterpMthd_Gaussian,
InterpMthd_MaxGauss,
InterpMthd_Geog_Match
InterpMthd_Geog_Match,
InterpMthd_HiRA
};

//
Expand All @@ -69,6 +70,7 @@ static const char interpmthd_lower_left_str[] = "LOWER_LEFT";
static const char interpmthd_gaussian_str[] = "GAUSSIAN";
static const char interpmthd_maxgauss_str[] = "MAXGAUSS";
static const char interpmthd_geog_match_str[] = "GEOG_MATCH";
static const char interpmthd_hira_str[] = "HIRA";

///////////////////////////////////////////////////////////////////////////////

Expand Down
1 change: 1 addition & 0 deletions met/src/basic/vx_util/interp_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ double compute_sfc_interp(const DataPlane &dp,
mlog << Error << "\ncompute_sfc_interp() -> "
<< "unsupported interpolation method encountered: "
<< interpmthd_to_string(mthd) << "(" << mthd << ")\n\n";
exit(1);
}

delete gt;
Expand Down
50 changes: 27 additions & 23 deletions met/src/libcode/vx_data2d/var_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ inline int VarInfo::accum_attr() const { return(SetAttrAccum); }
//

struct InputInfo {
VarInfo * var_info; // Variable information to read
int file_index; // Index in file_list of file to read
StringArray * file_list; // Array of files (unallocated)
VarInfo * var_info; // Variable information to read
int file_index; // Index in file_list of file to read
StringArray * file_list; // Array of files (unallocated)
};

////////////////////////////////////////////////////////////////////////
Expand All @@ -270,33 +270,37 @@ struct InputInfo {
//
class EnsVarInfo {

private:
vector<InputInfo> inputs; // Vector of InputInfo
VarInfo * ctrl_info; // Field info for control member
public:
EnsVarInfo();
~EnsVarInfo();
EnsVarInfo(const EnsVarInfo &);
private:
vector<InputInfo> inputs; // Vector of InputInfo
VarInfo * ctrl_info; // Field info for control member

void clear();
void assign(const EnsVarInfo &);
public:
EnsVarInfo();
~EnsVarInfo();
EnsVarInfo(const EnsVarInfo &);

void clear();
void assign(const EnsVarInfo &);

void add_input(InputInfo);
int inputs_n();
void add_input(InputInfo);
int inputs_n();

void set_ctrl(VarInfo *);
VarInfo * get_ctrl(int);
void set_ctrl(VarInfo *);
VarInfo * get_ctrl(int);

// Get VarInfo from first InputInfo if requested VarInfo is NULL
VarInfo * get_var_info(int index=0);
ConcatString get_file(int index=0);
int get_file_index(int index=0);
// Get VarInfo from first InputInfo if requested VarInfo is NULL
VarInfo * get_var_info(int index=0);
ConcatString get_file(int index=0);
int get_file_index(int index=0);

ConcatString nc_var_str; // Ensemble variable name strings
ThreshArray cat_ta; // Ensemble categorical thresholds
ConcatString raw_magic_str; // Magic string w/o var substitution

ConcatString nc_var_str; // Ensemble variable name strings
ThreshArray cat_ta; // Ensemble categorical thresholds
ConcatString raw_magic_str; // Magic string w/o var substitution
};

////////////////////////////////////////////////////////////////////////

ConcatString raw_magic_str(Dictionary i_edict, GrdFileType file_type);

///////////////////////////////////////////////////////////////////////////////
Expand Down
8 changes: 0 additions & 8 deletions met/src/libcode/vx_data2d_nc_met/met_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ void MetNcFile::dump(ostream & out, int depth) const
{

int j, k;
int month, day, year, hour, minute, second;
char junk[256];
Indent prefix(depth);
Indent p2(depth + 1);
Indent p3(depth + 2);
Expand Down Expand Up @@ -362,12 +360,6 @@ out << prefix << "Ydim = " << (Ydim ? GET_NC_NAME_P(Ydim) : "(nul)") << "\n";

out << prefix << "\n";

snprintf(junk, sizeof(junk), "%s %d, %d %2d:%02d:%02d", short_month_name[month], day, year, hour, minute, second);

out << junk << "\n";

out << prefix << "\n";

out << prefix << "Nvars = " << Nvars << "\n";

for (j=0; j<Nvars; ++j) {
Expand Down
2 changes: 1 addition & 1 deletion met/src/libcode/vx_nc_obs/nc_obs_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct NetcdfObsVars {
NcDim obs_arr_dim ; // Observation array width (V1.0, not used from V1.2)
NcDim obs_dim ; // Observation array length (V1.0)
NcDim hdr_dim ; // Header array length (V1.0)
NcDim pb_hdr_dim ; // PrefBufr Header array length (V1.2)
NcDim pb_hdr_dim ; // PrepfBufr Header array length (V1.2)

NcVar hdr_typ_tbl_var ; // Message type (string) (V1.1)
NcVar hdr_sid_tbl_var ; // Station ID (string) (V1.1)
Expand Down
Loading