Skip to content

Commit

Permalink
Feature 2070 obs_prepbufr_map (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway authored Feb 24, 2022
1 parent 005da64 commit 30ad6b6
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 74 deletions.
32 changes: 17 additions & 15 deletions met/data/config/PB2NCConfig_default
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,23 @@ obs_bufr_map = [];
// This should not typically be overridden.
//
obs_prepbufr_map = [
{ key = "POB"; val = "PRES"; },
{ key = "QOB"; val = "SPFH"; },
{ key = "TOB"; val = "TMP"; },
{ key = "ZOB"; val = "HGT"; },
{ key = "UOB"; val = "UGRD"; },
{ key = "VOB"; val = "VGRD"; },
{ key = "D_DPT"; val = "DPT"; },
{ key = "D_WDIR"; val = "WDIR"; },
{ key = "D_WIND"; val = "WIND"; },
{ key = "D_RH"; val = "RH"; },
{ key = "D_MIXR"; val = "MIXR"; },
{ key = "D_PRMSL"; val = "PRMSL"; },
{ key = "D_PBL"; val = "PBL"; },
{ key = "D_CAPE"; val = "CAPE"; },
{ key = "D_MLCAPE"; val = "MLCAPE"; }
{ key = "POB"; val = "PRES"; },
{ key = "QOB"; val = "SPFH"; },
{ key = "TOB"; val = "TMP"; },
{ key = "ZOB"; val = "HGT"; },
{ key = "UOB"; val = "UGRD"; },
{ key = "VOB"; val = "VGRD"; },
{ key = "HOVI"; val = "VIS"; },
{ key = "TOCC"; val = "TCDC"; },
{ key = "D_DPT"; val = "DPT"; },
{ key = "D_WDIR"; val = "WDIR"; },
{ key = "D_WIND"; val = "WIND"; },
{ key = "D_RH"; val = "RH"; },
{ key = "D_MIXR"; val = "MIXR"; },
{ key = "D_PRMSL"; val = "PRMSL"; },
{ key = "D_PBL"; val = "PBL"; },
{ key = "D_CAPE"; val = "CAPE"; },
{ key = "D_MLCAPE"; val = "MLCAPE"; }
];

////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions met/scripts/config/PB2NCConfig_G212
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ 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.
// Mapping of input BUFR variable names to output variables names.
// The default PREPBUFR map, obs_prepbufr_map, is appended to this map.
//
obs_bufr_map = [];

Expand Down
6 changes: 3 additions & 3 deletions test/config/PB2NCConfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ 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. It will be replaced/expended by obs_bufr_map.
// Mapping of input BUFR variable names to output variables names.
// The default PREPBUFR map, obs_prepbufr_map, is appended to this map.
//
//obs_bufr_map = [];
obs_bufr_map = [];

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

Expand Down
23 changes: 2 additions & 21 deletions test/config/PB2NCConfig_airnow
Original file line number Diff line number Diff line change
Expand Up @@ -85,30 +85,11 @@ obs_bufr_var = [ "COPO" ];
////////////////////////////////////////////////////////////////////////////////

//
// Mapping of BUFR variable name to GRIB name. The default map is defined at
// obs_prepbufr_map. This replaces/expends the default map.
// Mapping of input BUFR variable names to output variables names.
// The default PREPBUFR map, obs_prepbufr_map, is appended to this map.
//
obs_bufr_map = [];

//
// This map is for PREPBUFR. It will be added into obs_bufr_map.
// Please do not override this map.
//
obs_prepbufr_map = [
{ key = "POB"; val = "PRES"; },
{ key = "QOB"; val = "SPFH"; },
{ key = "TOB"; val = "TMP"; },
{ key = "ZOB"; val = "HGT"; },
{ key = "UOB"; val = "UGRD"; },
{ key = "VOB"; val = "VGRD"; },
{ key = "D_DPT"; val = "DPT"; },
{ key = "D_WDIR"; val = "WDIR"; },
{ key = "D_WIND"; val = "WIND"; },
{ key = "D_RH"; val = "RH"; },
{ key = "D_MIXR"; val = "MIXR"; },
{ key = "D_PRMSL"; val = "PRMSL"; }
];

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

quality_mark_thresh = 2;
Expand Down
6 changes: 3 additions & 3 deletions test/config/PB2NCConfig_all
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ obs_bufr_var = [];
////////////////////////////////////////////////////////////////////////////////

//
// Mapping of BUFR variable name to GRIB name. The default map is defined at
// obs_prepbufr_map. This replaces/expends the default map.
// Mapping of input BUFR variable names to output variables names.
// The default PREPBUFR map, obs_prepbufr_map, is appended to this map.
//
//obs_bufr_map = [];
obs_bufr_map = [];

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

Expand Down
25 changes: 2 additions & 23 deletions test/config/PB2NCConfig_pbl
Original file line number Diff line number Diff line change
Expand Up @@ -93,38 +93,17 @@ level_category = [0, 1, 4, 5, 6];
// If empty, process all available variables.
//
obs_bufr_var = ["D_CAPE", "D_PBL", "D_MLCAPE"];

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

//
// Mapping of input BUFR variable names to output variables names.
// The default PREPBUFR map, obs_prepbufr_map, is appended to this map.
//
obs_bufr_map = [];

//
// Default mapping for PREPBUFR. Replace input BUFR variable names with GRIB
// abbreviations in the output. This default map is appended to obs_bufr_map.
// This should not typically be overridden.
//
obs_prepbufr_map = [
{ key = "POB"; val = "PRES"; },
{ key = "QOB"; val = "SPFH"; },
{ key = "TOB"; val = "TMP"; },
{ key = "UOB"; val = "UGRD"; },
{ key = "VOB"; val = "VGRD"; },
{ key = "D_DPT"; val = "DPT"; },
{ key = "D_WDIR"; val = "WDIR"; },
{ key = "D_WIND"; val = "WIND"; },
{ key = "D_RH"; val = "RH"; },
{ key = "D_MIXR"; val = "MIXR"; },
obs_bufr_map = [
{ key = "D_PBL"; val = "HPBL"; },
{ key = "D_PRMSL"; val = "PRMSL"; },
{ key = "D_CAPE"; val = "CAPE"; },
{ key = "D_MLCAPE"; val = "MLCAPE"; },
{ key = "TDO"; val = "DPT"; },
{ key = "PMO"; val = "PRMSL"; },
{ key = "TOCC"; val = "TCDC"; },
{ key = "HOVI"; val = "VIS"; },
{ key = "CEILING"; val = "HGT"; },
{ key = "MXGS"; val = "GUST"; }
];
Expand Down
6 changes: 3 additions & 3 deletions test/config/PB2NCConfig_summary
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ 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. It will be replaced/expended by obs_bufr_map.
// Mapping of input BUFR variable names to output variables names.
// The default PREPBUFR map, obs_prepbufr_map, is appended to this map.
//
//obs_bufr_map = [];
obs_bufr_map = [];

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

Expand Down
7 changes: 3 additions & 4 deletions test/config/PB2NCConfig_vlevel
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ obs_bufr_var = [ "RSTD", "RWAZ","RWND" ];
////////////////////////////////////////////////////////////////////////////////

//
// Mapping of BUFR variable name to GRIB name. The default map is defined at
// obs_prepbufr_map. This replaces/expends the default map.
// Mapping of input BUFR variable names to output variables names.
// The default PREPBUFR map, obs_prepbufr_map, is appended to this map.
//
//obs_bufr_map = [];

obs_bufr_map = [];

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

Expand Down

0 comments on commit 30ad6b6

Please sign in to comment.