dtcenter / MET

Model Evaluation Tools
https://dtcenter.org/community-code/model-evaluation-tools-met
Apache License 2.0
77 stars 24 forks source link

Enhance the point pre-processing tools to support data censoring and conversion #2377

Open JohnHalleyGotway opened 1 year ago

JohnHalleyGotway commented 1 year ago

Describe the Enhancement

During the NOAA METplus User Telecon on 12/12/2022, the idea of supporting data censoring in the MET point pre-processing tools arose.

It would be useful when processing AirNow datasets in ascii2nc where observed concentration values can be reported as being slightly negative due to the observation uncertainty logic applied. The negative values should be reassigned a value of 0. While this data censoring can already be performed in the Point-Stat and Ensemble-Stat tools downstream, providing the option to handle this during the pre-processing step would be convenient. Similarly, if adding support for censor_thresh and censor_val, we should also support convert(x) to handle unit conversions.

This task is to add new configuration options for this functionality to the point pre-processing tools. Recommend modeling it after the existing time_summary dictionary which is supported across all these tools. Pick a good name and define an array of dictionaries, each defining data censoring and/or conversion logic for one or more obs_var names.

data_processing = [
  {
    obs_var       = [];
    censor_thresh = [];
    censor_val    = [];
    convert(x)    = x;
    units = ""; // Define a units string that should be written to the output NetCDF file, if applicable.
  }
];

An empty array means that no data_processing steps should be performed. Otherwise, apply them in the order they are listed in the config file.

Time Estimate

2 days.

Sub-Issues

Consider breaking the enhancement down into sub-issues. None needed.

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

Define the source of funding and account keys here or state NONE.

Define the Metadata

Assignee

Labels

Projects and Milestone

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

JohnHalleyGotway commented 3 months ago

Per Ho-Chun, this should be addressed for both AQM and GEFS verification in EVSv2.0. The data-preprocessing ability will be useful for both AirNOW and ABI/VIIRS AOD dataset. It will improve the OPS EVSv1.0 AQM o3/pm25 verification on using the AirNOW and EVSv2.0 for models using the ABI/VIIRS AOD.