-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1719 from dtcenter/bugfix_1715_pb2nc_seg_fault_wi…
…th_pbl Bugfix 1715 pb2nc seg fault with pbl
- Loading branch information
Showing
3 changed files
with
242 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// PB2NC configuration file. | ||
// | ||
// For additional information, see the MET_BASE/config/README file. | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// PrepBufr message type | ||
// | ||
message_type = ["ONLYSF", "ADPUPA"]; | ||
|
||
// | ||
// Mapping of message type group name to comma-separated list of values | ||
// Derive PRMSL only for SURFACE message types | ||
// | ||
message_type_group_map = [ | ||
{ key = "SURFACE"; val = "ADPSFC,SFCSHP,MSONET"; }, | ||
{ key = "ANYAIR"; val = "AIRCAR,AIRCFT"; }, | ||
{ key = "ANYSFC"; val = "ADPSFC,SFCSHP,ADPUPA,PROFLR,MSONET"; }, | ||
{ key = "ONLYSF"; val = "ADPSFC,SFCSHP"; } | ||
]; | ||
|
||
// | ||
// Mapping of input PrepBufr message types to output message types | ||
// | ||
message_type_map = []; | ||
|
||
// | ||
// PrepBufr station ID | ||
// | ||
station_id = []; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// Observation time window | ||
// | ||
obs_window = { | ||
beg = -2700; | ||
end = 2700; | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// Observation retention regions | ||
// | ||
mask = { | ||
grid = ""; | ||
poly = ""; | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// Observing location elevation | ||
// | ||
elevation_range = { | ||
beg = -1000; | ||
end = 100000; | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// Observation types | ||
// | ||
pb_report_type = []; | ||
|
||
in_report_type = []; | ||
|
||
instrument_type = []; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// Vertical levels to retain | ||
// | ||
level_range = { | ||
beg = 1; | ||
end = 511; | ||
} | ||
|
||
level_category = [0, 1, 4, 5, 6]; | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// BUFR variable names to retain or derive. | ||
// Use obs_bufr_map to rename variables in the output. | ||
// If empty, process all available variables. | ||
// | ||
obs_bufr_var = ["D_CAPE", "D_PBL"]; | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// 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_prefbufr_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"; }, | ||
{ key = "D_PBL"; val = "HPBL"; }, | ||
{ key = "D_PRMSL"; val = "PRMSL"; }, | ||
{ key = "D_CAPE"; val = "CAPE"; }, | ||
{ key = "TDO"; val = "DPT"; }, | ||
{ key = "PMO"; val = "PRMSL"; }, | ||
{ key = "TOCC"; val = "TCDC"; }, | ||
{ key = "HOVI"; val = "VIS"; }, | ||
{ key = "CEILING"; val = "HGT"; }, | ||
{ key = "MXGS"; val = "GUST"; } | ||
]; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
quality_mark_thresh = 9; | ||
event_stack_flag = TOP; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// Time periods for the summarization | ||
// obs_var (string array) is added and works like grib_code (int array) | ||
// when use_var_id is enabled and variable names are saved. | ||
// | ||
time_summary = { | ||
flag = FALSE; | ||
raw_data = FALSE; | ||
beg = "000000"; | ||
end = "235959"; | ||
step = 300; | ||
width = 600; | ||
grib_code = []; | ||
obs_var = [ "TMP", "WDIR", "RH" ]; | ||
type = [ "min", "max", "range", "mean", "stdev", "median", "p80" ]; | ||
vld_freq = 0; | ||
vld_thresh = 0.0; | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
tmp_dir = "/tmp"; | ||
version = "V10.0"; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// |
Oops, something went wrong.