Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
2b84c16
Per #3304, add Grid-Diag output_flag.power_spectrum config file option.
JohnHalleyGotway Feb 10, 2026
24340fb
Per #3304, add Grid-Diag output_flag.power_spectrum config file option.
JohnHalleyGotway Feb 10, 2026
bd088f7
Per #3304 add hooks to compute and write power spectrum output.
JohnHalleyGotway Feb 19, 2026
57afc55
Merge remote-tracking branch 'origin/develop' into feature_3304_power…
JohnHalleyGotway Feb 19, 2026
68a8644
Per #3304, tweak logic for when to compute/write error energy. Still …
JohnHalleyGotway Feb 20, 2026
af75dab
Per #3304, add level NetCDF variable attribute.
JohnHalleyGotway Feb 23, 2026
f5db691
Per #3304, add energy output. Still a work in progress.
JohnHalleyGotway Mar 3, 2026
586727d
Merge remote-tracking branch 'origin/develop' into feature_3304_power…
JohnHalleyGotway Mar 3, 2026
e20401e
Merge remote-tracking branch 'origin/develop' into feature_3304_power…
JohnHalleyGotway Mar 25, 2026
417d898
Merge remote-tracking branch 'origin/develop' into feature_3304_power…
JohnHalleyGotway May 4, 2026
029d17d
Per #3304, tweak energy dimension name
JohnHalleyGotway May 4, 2026
8304286
Merge remote-tracking branch 'origin/develop' into feature_3304_power…
JohnHalleyGotway May 20, 2026
7f7862c
Per #3304, write power spectra only for the FULL domain.
JohnHalleyGotway May 21, 2026
2bb2020
Per #3304, add config options to specify how missing data values shou…
JohnHalleyGotway May 22, 2026
223e8f0
Per #3304, define and use DataPlane::mean() utilty function and updat…
JohnHalleyGotway May 22, 2026
0ef68a6
Per #3304, switch to a power_spectrum dictionary.
JohnHalleyGotway May 23, 2026
59a3225
Per #3304, fix compilation error.
JohnHalleyGotway May 25, 2026
aab4a1b
Per #3304, write power spectrum units as (units)^2, but need to confi…
JohnHalleyGotway May 26, 2026
6bb0686
Per #1518, add WindVectorInfo struct along with code to parse it.
JohnHalleyGotway Jun 3, 2026
373f3e8
Per #1518, switch to WindMetadata struct name and parse it for the Va…
JohnHalleyGotway Jun 4, 2026
87337dc
Per #1518, refine logic for checking wind metadata.
JohnHalleyGotway Jun 5, 2026
3364eda
Per #1518, don't need kinetic_energy_field_name config option. Instea…
JohnHalleyGotway Jun 5, 2026
1c4fd71
Per #1518, update the VarInfo is_... functions throughout.
JohnHalleyGotway Jun 5, 2026
36f1774
Per #1518, lots of changes for handling wind deriviation in the base …
JohnHalleyGotway Jun 11, 2026
e597d98
Per #1518, update function names, add a hook for rotate_winds(), and …
JohnHalleyGotway Jun 11, 2026
197dde9
Per #1518, improve level string handling for NetCDF files. When deriv…
JohnHalleyGotway Jun 11, 2026
96e9e72
Per #1518, handle wind rotation in the Met2dDataFile base class rathe…
JohnHalleyGotway Jun 12, 2026
78c8808
Per #1518, add hooks to derive kinetic energy, vorticity, and diverge…
JohnHalleyGotway Jun 13, 2026
f6e22bc
Per #1518, back out hooks for deriving divergence and vorticity since…
JohnHalleyGotway Jun 15, 2026
662ee41
Per #1518, refine logic slightly.
JohnHalleyGotway Jun 15, 2026
6affc2c
Per #1518, update library code to assume NetCDF files (MET, WRF, and …
JohnHalleyGotway Jun 15, 2026
f365616
Per #1518, patch logic in GRIB2 find_record_matches() to enable the p…
JohnHalleyGotway Jun 15, 2026
2fc474c
Per #1518, update call to read_data_plane() ci-run-unit
JohnHalleyGotway Jun 15, 2026
a16afd2
Per #1518, siwitchtch from index_a/index_b/index_c to the more descri…
JohnHalleyGotway Jun 16, 2026
b883eea
Per #1518, update the grib table lookup to return a vector of matches.
JohnHalleyGotway Jun 16, 2026
a0e1978
Correct TCDC to be TCC for GALWEM.
JohnHalleyGotway Jun 16, 2026
b55cfea
Per #1518, add logic to check whether DataPlaneArray level values match.
JohnHalleyGotway Jun 17, 2026
e332d1d
Per #1518, move call to rotate_winds() outside of process_data_plane(…
JohnHalleyGotway Jun 17, 2026
a9b3b0c
Per #1518, rotate_winds() should return true for non-wind vars.
JohnHalleyGotway Jun 17, 2026
6bb618d
Per #1518, patch rotate_winds() logic for DataPlaneArray. ci-run-unit
JohnHalleyGotway Jun 17, 2026
154cb80
Per #1518, add back in calls to set the GRIB code after doing a table…
JohnHalleyGotway Jun 17, 2026
9b603fd
Per #1518, need to store the units parsed from the GRIB tables.
JohnHalleyGotway Jun 17, 2026
76f27ca
Per #1518, delete accidentally committed swap file. ci-run-unit
JohnHalleyGotway Jun 17, 2026
4487321
Per #1518, reverting logic in find_record_matches() back to what it w…
JohnHalleyGotway Jun 17, 2026
9112064
Trying to eliminate testing workflow failures ci-run-unit
JohnHalleyGotway Jun 18, 2026
b088d62
Per #1518, always read ConfigConstants before reading a config string.
JohnHalleyGotway Jun 18, 2026
b7f25d6
Per #1518, more tweaks to try get the unit tests to pass ci-run-unit
JohnHalleyGotway Jun 18, 2026
452b288
Minor tweak
JohnHalleyGotway Jun 22, 2026
d5316c5
Per #1518, add VarInfo::reset_dict_with_name() function and update re…
JohnHalleyGotway Jun 22, 2026
e27537d
Per #1518, improve the read_wind_data() warning messages. ci-run-unit
JohnHalleyGotway Jun 22, 2026
37a6d24
Per #1518, refined wind rotation log messages #ci-run-unit
JohnHalleyGotway Jun 22, 2026
4d675b0
Per #1518, handle wind rotation before calling process_data_plane(). …
JohnHalleyGotway Jun 22, 2026
a200bdc
Per #1518, update gen_ens_prod and ensemble_stat to clone the VarInfo…
JohnHalleyGotway Jun 22, 2026
a49227f
Per #1518, abandon VarInfo::set_earth_relative() since that logic wre…
JohnHalleyGotway Jun 23, 2026
746b667
Per #1518, refine log message formatting and update existing plots of…
JohnHalleyGotway Jun 23, 2026
ed3c623
Merge remote-tracking branch 'origin/develop' into feature_1518_winds
JohnHalleyGotway Jun 23, 2026
f0d224f
Per #1518, patch pcp_combine.cc read_field to read the -field config …
JohnHalleyGotway Jun 23, 2026
5b070cb
Per #1518, log each wind rotation operation.
JohnHalleyGotway Jun 23, 2026
7cb27c0
Per #1518, move clone() operation up in the logic from read_wind_data…
JohnHalleyGotway Jun 23, 2026
f605d90
More tweaks
JohnHalleyGotway Jun 23, 2026
c7b147a
Per #1518, add unit_winds.xml to demonstrate the new functionality. c…
JohnHalleyGotway Jun 23, 2026
99a7f69
Start doc updates
JohnHalleyGotway Jun 23, 2026
e0c2d45
Per #1518, add logic to read_wind_data() when converting U to V or vi…
JohnHalleyGotway Jun 24, 2026
35b2482
Per #1518, update docs about wind rotation.
JohnHalleyGotway Jun 24, 2026
590df6b
Per #1518, note config changes in the upgrade instructions.
JohnHalleyGotway Jun 24, 2026
bc12786
Merge remote-tracking branch 'origin/develop' into feature_1518_winds
JohnHalleyGotway Jun 24, 2026
4cf02d2
Try reverting from METbaseimage 3.5-latest back to 3.4-latest. The TC…
JohnHalleyGotway Jun 24, 2026
f46f15c
Per #1518, don't need to specify u_wind_field and v_wind_field_name a…
JohnHalleyGotway Jun 25, 2026
fdc9f40
Merge branch 'develop' into feature_1518_winds
JohnHalleyGotway Jun 25, 2026
4303156
Per #1518, solve 3 SonarQube findings.
JohnHalleyGotway Jun 25, 2026
a114fa9
Per #1518, solve SonarQube findings in data_class.h/.cc.
JohnHalleyGotway Jun 25, 2026
61bd643
Per #1518, make GRIB table lookup functions const to satisfy SonarQube.
JohnHalleyGotway Jun 25, 2026
a4d3f03
Per #1518, solve more SonarQube findings.
JohnHalleyGotway Jun 25, 2026
eb9d144
Per #1518, drive down more SonarQube findings to reduce the overall n…
JohnHalleyGotway Jun 25, 2026
937840b
Merge branch 'feature_1518_winds' of https://github.com/dtcenter/MET …
JohnHalleyGotway Jun 25, 2026
0d8b901
Per #1518, reduce 4 more SonarQube findings.
JohnHalleyGotway Jun 25, 2026
ff87c25
Per #3304, work in progress
JohnHalleyGotway Jun 26, 2026
7ed4021
Merge remote-tracking branch 'origin/feature_1518_winds' into feature…
JohnHalleyGotway Jun 26, 2026
c36294a
Reduce SonarQube findings.
JohnHalleyGotway Jun 26, 2026
6c06e94
Per #3304, add logic for LatLonGrid::scale_km() and update grid_diag'…
JohnHalleyGotway Jun 26, 2026
b0ebfd7
Per #1518, add missing references to Error or Debug for handful of ca…
JohnHalleyGotway Jun 30, 2026
f2c4bfa
Per #1518, refine the swap UV name logic so that it's only employed w…
JohnHalleyGotway Jun 30, 2026
e19ca14
MetConfig doesn't need to be static
JohnHalleyGotway Jun 30, 2026
4119f5a
Per #1518, switch VarInfo::clone() to return an std::unique_ptr() to …
JohnHalleyGotway Jun 30, 2026
c030a4c
Per #1518, solve another SonarQube finding.
JohnHalleyGotway Jun 30, 2026
21cff9f
Switch double to bool
JohnHalleyGotway Jun 30, 2026
933b89d
More SonarQube cleanup
JohnHalleyGotway Jun 30, 2026
6be40fa
Merge remote-tracking branch 'origin/feature_1518_winds' into feature…
JohnHalleyGotway Jun 30, 2026
dae64dc
One more SonarQube issue
JohnHalleyGotway Jul 1, 2026
d5f0f13
Merge remote-tracking branch 'origin/feature_1518_winds' into feature…
JohnHalleyGotway Jul 1, 2026
b1fbda5
Per #3304, update Grid-Diag to read U and V winds for kinetic energy.
JohnHalleyGotway Jul 1, 2026
0636957
Per #3304, swap args to dct_typeII_2d() to be ncol followed by nrow t…
JohnHalleyGotway Jul 1, 2026
960fe48
Per #3304, scale radial energy by the number of grid points to match …
JohnHalleyGotway Jul 1, 2026
fdbc6ba
Per #3304, enable special handling of U/V components for kinetic energy.
JohnHalleyGotway Jul 1, 2026
fd24f06
Per #3304, add Grid-Diag unit test for kinetic energy. ci-run-unit
JohnHalleyGotway Jul 1, 2026
dcd7b0a
Merge remote-tracking branch 'origin/develop' into feature_3304_power…
JohnHalleyGotway Jul 2, 2026
f937a5d
Per #3304, add logic for kinetic_energy as well. ci-run-unit
JohnHalleyGotway Jul 6, 2026
e5090eb
Removing whitespace
JohnHalleyGotway Jul 7, 2026
d9f75b3
Per #3304, update Grid-Diag based on testing to use the set_attr_grid…
JohnHalleyGotway Jul 7, 2026
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
1 change: 1 addition & 0 deletions .github/jobs/set_job_controls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
run_diff=false
run_update_truth=false
met_base_repo=met-base
# TODO: Change 3.4 back to 3.5 after solving TC-Diag failure

Check warning on line 9 in .github/jobs/set_job_controls.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Complete the task associated to this 'TODO' comment.

See more on https://sonarcloud.io/project/issues?id=dtcenter_MET&issues=AZ8-2ridu724IOtYEylC&open=AZ8-2ridu724IOtYEylC&pullRequest=3411
met_base_tag=3.4-latest
input_data_version=develop
truth_data_version=develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
- jobid: 'job1'
tests: 'ascii2nc'
- jobid: 'job2'
tests: 'pb2nc madis2nc pcp_combine gen_ens_prod regrid'
tests: 'pb2nc madis2nc pcp_combine gen_ens_prod regrid winds'
fail-fast: false
steps:
- uses: actions/checkout@v6
Expand Down
16 changes: 16 additions & 0 deletions data/config/ConfigConstants
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ output_precision = 5;
// MET_TMP_DIR.
tmp_dir = "/tmp";

////////////////////////////////////////////////////////////////////////////////
//
// Settings to define wind vector metadata.
//
////////////////////////////////////////////////////////////////////////////////

// Comma-separated lists of wind variable names for rotating and deriving
u_wind_field_name = "UGRD,U";
v_wind_field_name = "VGRD,V";
wind_speed_field_name = "WIND,SP";
wind_direction_field_name = "WDIR,DD";

////////////////////////////////////////////////////////////////////////////////
//
// Standard unit conversion functions.
Expand Down Expand Up @@ -202,3 +214,7 @@ CLIMO_STD_ANOM = 3;
FCST_ANOM = 4;
FCST_STD_ANOM = 5;

// Power spectrum missing flag types
NONE = 1;
MEAN = 2;
VALUE = 3;
16 changes: 13 additions & 3 deletions data/config/GridDiagConfig_default
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ regrid = {
censor_thresh = [];
censor_val = [];

//
// Specify the handling of missing data for power spectra
//
power_spectrum = {
missing_flag = NONE;
missing_value = 0.0;
vld_thresh = 0.5;
}

//
// Data fields
//
Expand Down Expand Up @@ -68,9 +77,10 @@ mask = {
// Diagnostic output types
//
output_flag = {
histogram_1d = TRUE;
histogram_2d = TRUE;
info_theory = FALSE;
histogram_1d = TRUE;
histogram_2d = TRUE;
info_theory = FALSE;
power_spectrum = FALSE;
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
36 changes: 36 additions & 0 deletions docs/Users_Guide/config_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,41 @@ Some tools override the temporary directory by the command line argument
A description of the use of temporary files in MET can be found in
:numref:`Contributor's Guide Section %s <tmp_file_use>`.

.. _config_wind_field_names:

wind_field_names
----------------

As described in :numref:`PS_wind_rotation_derivation`, MET can automatically
derive wind variables and also rotate them from being grid-relative to earth-relative.
Logic is provided for each supported input file type to identify input wind components
and determine whether they are defined as being grid-relative or earth-relative.

The following configuration options can be set to refine the metadata, when needed:

.. code-block:: none

is_u_wind = boolean;
is_v_wind = boolean;
is_grid_relative = boolean;
is_wind_speed = boolean;
is_wind_direction = boolean;
is_kinetic_energy = boolean;

When deriving and rotating winds, MET searches the input file for matching wind
components. That search is driven by the following configuration options:

.. code-block:: none

u_wind_field_name = "UGRD,U";
v_wind_field_name = "VGRD,V";
wind_speed_field_name = "WIND,SP";
wind_direction_field_name = "WDIR,DD";

Each is a comma-separated list of wind variable names to be searched. Users can
explicity set these options to configure what data should be used in the wind
derivation and rotation logic.

message_type_group_map
----------------------

Expand Down Expand Up @@ -1163,6 +1198,7 @@ below:
is_grid_relative = boolean;
is_wind_speed = boolean;
is_wind_direction = boolean;
is_kinetic_energy = boolean;
is_prob = boolean;


Expand Down
31 changes: 26 additions & 5 deletions docs/Users_Guide/grid-diag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ Grid-Diag Tool
Introduction
============

The Grid-Diag tool creates histograms (probability distributions when normalized) for an arbitrary collection of data fields and levels. Joint histograms are created for all possible pairs of variables. If no masking region is specified to subset the data fields spatially, then all points in the input domain are used. However, an arbitrary number of masking regions can be specified and output is created for each one. The histograms are accumulated over all of the input data files. Typically this tool is run with a time series of input data files, similar to Series-Analysis.
Unlike the Grid-Stat and Point-Stat tools, which compute verification statistics for matched pairs of forecast and observation values, the Grid-Diag tool provides diagnostic information based on the distribution of values found in gridded input files.

The Grid-Diag tool also uses the histograms to derive information theory statistics. Entropy is derived from each 1-dimensional histogram, and joint entropy and mutual information are derived from each 2-dimensional joint histogram. These statistics are defined using log base 2, rather than the natural logarithm which is also commonly used.
Grid-Diag creates histograms (probability distributions when normalized) for an arbitrary collection of data fields and levels. Joint histograms are created for all possible pairs of variables. If no masking region is specified to subset the data fields spatially, then all points in the input domain are used. However, an arbitrary number of masking regions can be specified and output is created for each one. The histograms are accumulated over all of the input data files. Typically this tool is run with a time series of input data files, similar to Series-Analysis.

Grid-Diag also uses the histograms to derive information theory statistics. Entropy is derived from each 1-dimensional histogram, and joint entropy and mutual information are derived from each 2-dimensional joint histogram. These statistics are defined using log base 2, rather than the natural logarithm which is also commonly used.

Finally, Grid-Diag also derives power spectra for each input field. However, power spectra are computed over the full model domain rather than being subset by spatial masking regions. Note that special logic is applied when processing kinetic energy. Grid-Diag reads the corresponding U and V-wind vector components and applies a discrete cosine transform to them separately prior to copmuting the power spectrum.

Practical Information
=====================
Expand Down Expand Up @@ -77,6 +81,20 @@ The configuration options listed above are common to many MET tools and are desc

_____________________

.. code-block:: none

power_spectrum = {
missing_flag = NONE;
missing_value = 0.0;
vld_thresh = 0.5;
}

The **power_spectrum** dictionary defines options for computing power spectra and can be specified separately for each **data.field** entry below.

The **missing_flag** and **missing_value** entries define how bad data values should be handled. For all other output types, bad data values are ignored but they are problematic for power spectra. Set **missing_flag** to **NONE** (default) to skip power spectrum when bad data is present, to **MEAN** to replace bad data with the mean of each input field, or to **VALUE** to replace bad data with the constant numeric value specified by **missing_value**. Set **vld_thresh** to a number beween 0 and 1 to define the required ratio of valid data to be present to compute power spectra output for that field.

_____________________

.. code-block:: none

data = {
Expand Down Expand Up @@ -105,9 +123,10 @@ _____________________
.. code-block:: none

output_flag = {
histogram_1d = TRUE;
histogram_2d = TRUE;
info_theory = FALSE;
histogram_1d = TRUE;
histogram_2d = TRUE;
info_theory = FALSE;
power_spectrum = FALSE;
}

The **output_flag** dictionary controls the type of output that the Grid-Diag tool generates. Each flag should be set to **TRUE** or **FALSE** to enable the computation and writing of one or more variables to the output NetCDF file, as described below:
Expand All @@ -118,6 +137,8 @@ The **output_flag** dictionary controls the type of output that the Grid-Diag to

3. **info_theory** for information theory metrics, including entropy for each **data.field** entry and mutual information and joint entropy for each pair of entries.

4. **power_spectrum** for power spectrum output.

grid_diag Output File
---------------------

Expand Down
27 changes: 27 additions & 0 deletions docs/Users_Guide/point-stat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,33 @@ _______________________

The forecast value at P is chosen as the grid point inside the interpolation area whose value most closely matches the observation value.

.. _PS_wind_rotation_derivation:

Wind Rotation and Derivation
----------------------------

Numerical weather prediction model output often defines winds relative to the orientation of the model grid rather than true north-south and east-west directions on the earth.
However point observations typically define winds relative to true earth directions. Prior to comparing them, the model wind data must be rotated from grid-relative to
to earth-relative. While the degree of grid-to-earth rotation varies based on the projection type and location, failing to rotate the winds has a significant impact on
the verification results.

For simplicity, the MET library code attempts to rotate all wind components from being grid-relative to earth-relative regardless of whether they are being compared to point
observations or gridded analyses. Running the MET tools at verbosity level 3 (-v 3) prints log messages to describing the wind rotation process.

Wind fields which must be rotated include wind direction and both the U and V components of the wind vector. While wind direction can be rotated by itself, both U and V are
required to rotate either component. When processing U-wind data, MET attempts to read corresponding V-wind data and vice-versa.

The configuration options for wind rotation and derivation in MET are described in section :numref:`config_wind_field_names`.

When reading V-wind data to rotate U-wind or U-wind data to rotate V-wind, MET first searches using the same field name, but with both upper and lowercase U's and V's
swapped (e.g. for "U_PL" search for "V_PL"). If the result is unsuccesful, it searches other common field names specified by the **u_wind_field_name** and **v_wind_field_name**
configuration options. If needed, users should set these configuration options to indicate how the U-wind and V-wind data should be paired.

In addition to rotating winds, MET can also derive them. If U-wind and V-wind are present in the input file, request field names of **WDIR**, **WIND**, or **KENG**
to derive wind direction, wind speed, and kinetic engery from the U and V components, respectively. If wind speed and direction are present in the input file, request field
names of **UGRD** or **VGRD** for MET to derive the U and V components from them. Depending on the wind field naming conventions, the configuration options described in
:numref:`config_wind_field_names` may be required to configure this derivation logic.

.. _PS_HiRA_framework:

HiRA Framework
Expand Down
8 changes: 8 additions & 0 deletions docs/Users_Guide/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,14 @@ MET Version 13.0.0 Upgrade Instructions
* The "ensemble_flag.eas" and "ensemble_flag.eas_width" entries are added to enable the
writing of EAS output fields.

* ConfigConstanst configuration file

* The "u_wind_field_name", "v_wind_field_name", "wind_speed_field_name", and "wind_direction_field_name"
entries are comma-separated lists of field names to search when read wind data needed to derive winds
or rotate them from being grid-relative to earth-relative. See :numref:`PS_wind_rotation_derivation`
for a description of wind rotation and derivation and :numref:`config_wind_field_names` for the
corresponding configuration options.

.. dropdown:: Output format changes - NONE

.. dropdown:: Output format changes - NONE
Expand Down
1 change: 1 addition & 0 deletions internal/test_unit/bin/unit_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ UNIT_XML="unit_ascii2nc.xml \
unit_gen_ens_prod.xml \
unit_pcp_combine.xml \
unit_regrid.xml \
unit_winds.xml \
unit_wwmca_regrid.xml \
unit_point_stat.xml \
unit_stat_analysis_ps.xml \
Expand Down
9 changes: 9 additions & 0 deletions internal/test_unit/config/GridDiagConfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ regrid = {
censor_thresh = [];
censor_val = [];

//
// Specify the handling of missing data for power spectra
//
power_spectrum = {
missing_flag = NONE;
missing_value = 0.0;
vld_thresh = 0.5;
}

//
// Data fields
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,19 @@ regrid = {
censor_thresh = [];
censor_val = [];

//
// Specify the handling of missing data for power spectra
//
power_spectrum = {
missing_flag = VALUE;
missing_value = 0.0;
vld_thresh = 0.5;
}

//
// Data fields
//
data = {
name = "APCP";
level = ["A06"];
n_bins = 50;
range = [0,25];

field = [
{ ${FIELD1} },
{ ${FIELD2} }
Expand All @@ -62,10 +66,6 @@ mask = {
//
// Diagnostic output types
//
output_flag = {
histogram_1d = TRUE;
histogram_2d = TRUE;
info_theory = FALSE;
}
output_flag = TRUE;

////////////////////////////////////////////////////////////////////////////////
16 changes: 13 additions & 3 deletions internal/test_unit/config/GridDiagConfig_TMP
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ regrid = {
censor_thresh = [];
censor_val = [];

//
// Specify the handling of missing data for power spectra
//
power_spectrum = {
missing_flag = NONE;
missing_value = 0.0;
vld_thresh = 0.5;
}

//
// Data fields
//
Expand Down Expand Up @@ -74,9 +83,10 @@ mask = {
// Diagnostic output types
//
output_flag = {
histogram_1d = TRUE;
histogram_2d = TRUE;
info_theory = FALSE;
histogram_1d = TRUE;
histogram_2d = TRUE;
info_theory = FALSE;
power_spectrum = FALSE;
}

////////////////////////////////////////////////////////////////////////////////
4 changes: 2 additions & 2 deletions internal/test_unit/xml/unit_grib_tables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<param> \
&DATA_DIR_MODEL;/grib2/um_raw/PS.557WW_SC.U_DI.F_GP.GALWEM-GD_GR.C17KM_AR.GLOBAL_DD.20160424_CY.00_FH.000_DF.GR2 \
&OUTPUT_DIR;/grib_tables/um_raw/PS.557WW_SC.U_DI.F_GP.GALWEM-GD_GR.C17KM_AR.GLOBAL_DD.20160424_CY.00_FH.000_DF.ps \
'name = "TCDC"; level = "L0";' \
-title "GRIB2 um_raw L0 TCDC" \
'name = "TCC"; level = "L0";' \
-title "GRIB2 um_raw L0 TCC" \
-v 1
</param>
<output>
Expand Down
Loading
Loading