Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Per #1528, adding default config file for PlotPointObs tool. * Per #1528, added line_width to config file. * Per #1528, adding PlotPointObs config file and it actually compiles. Now I need to do all the work. * Per #1528, making some progress adding Observation objects and storing the unique locations in a set. Next, I need to parse the options from the config file. * Per #1528, add config constants for plot_point_obs options and update PlotInfo to include an on/off flag and colorbar flag. * Per #1528, update plot_point_obs config file options and plot_point_obs_conf_info.h/.cc to process them. * Per #1528, add a couple more config keys for Plot-Point-Obs. * Per #1528, add an obs_gc array to the default Plot-Point-Obs config file. * Per #1528, make a few local plotting functions global so that Plot-Point-Obs can call them. * Per #1528, lots of changes to Plot-Point-Obs. Getting closer. Still need to finish up coding, add tests, and update the documentation. * Per #1528, I found that PlotInfo.colorbar_spacing was never actually used in the code. So I removed it from the MODE and PlotPointObs config files and removed it from the PlotInfo object. * Per #1528, add timestring_to_time_t() utility function to vx_cal library. * Per #1528, cleanup... just removed commented out code. * Per #1528, update plot_point_obs.cc to parse/process the observation valid time correctly. * For #1528, change the library order to make the linker happy. * Per #1528, I had changed message_type to msg_typ but failed to updated the default config file. * Per #1527, making the usage statement slightly more concise. * Per #1528, changing the default line_color and fill_color entries to be empty arrays. * Per #1528, add in support for the convert and data censoring logic. * Per #1528, update the documentation for plot_point_obs to reflect the new usage. * 1528 Consider making the plotting options of plot_point_obs more configurable (#1559) * #1528 Added get_dim_size * #1528 Added qty_list * #1528 Get the quality flag string. Get the character dimensions from the variable * Per #1528, slight refomatting of source code for consistent line lengths. * Per #1528, setting the default dotsize to 1.0, as it was previously (not 10!). * Per #1528, fix logic so that if a fill color table is specified fill_point is set to true. Also adjust margins. * Per #1528, add a new call to plot_point_obs in unit_plot_point_obs.xml to exercise the new config file options. * Per #1528, only make the margins bigger if we're actually plotting a colorbar. Otherwise, retain the previous margin sizes. * Update met/data/config/PlotPointObsConfig_default Co-authored-by: jprestop <jpresto@ucar.edu> * Update PlotPointObsConfig_default * Update test/config/PlotPointObsConfig Co-authored-by: jprestop <jpresto@ucar.edu> * Consistent formatting * Per #1528, based on Michelle's feedback, add the -title string option to the plot_point_obs usage statement. Co-authored-by: John Halley Gotway <johnhg@kiowa.rap.ucar.edu> Co-authored-by: hsoh-u <hsoh@ucar.edu> Co-authored-by: jprestop <jpresto@ucar.edu>
- Loading branch information
1 parent
617058e
commit 35ac950
Showing
31 changed files
with
1,843 additions
and
512 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
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,71 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Plot-Point-Obs configuration file. | ||
// | ||
// For additional information, see the README file in the MET User's Guide. | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// Gridded data plotting options | ||
|
||
grid_data = { | ||
|
||
field = []; | ||
|
||
grid_plot_info = { | ||
color_table = "MET_BASE/colortables/met_default.ctable"; | ||
plot_min = 0.0; | ||
plot_max = 0.0; | ||
colorbar_flag = TRUE; | ||
} | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// Point data filtering options | ||
// May be set separately in each "point_data" entry | ||
|
||
msg_typ = []; | ||
sid_inc = []; | ||
sid_exc = []; | ||
obs_var = []; | ||
obs_gc = []; // integer list of GRIB codes | ||
obs_quality = []; | ||
valid_beg = ""; | ||
valid_end = ""; | ||
lat_thresh = NA; | ||
lon_thresh = NA; | ||
elv_thresh = NA; | ||
hgt_thresh = NA; | ||
prs_thresh = NA; | ||
obs_thresh = NA; | ||
|
||
// Point data pre-processing options | ||
// May be set separately in each "point_data" entry | ||
|
||
convert(x) = x; | ||
censor_thresh = []; | ||
censor_val = []; | ||
|
||
// Point data plotting options | ||
// May be set separately in each "point_data" entry | ||
|
||
dotsize(x) = 1.0; // Function of the obs value | ||
line_color = []; | ||
line_width = 1; | ||
fill_color = []; | ||
|
||
fill_plot_info = { // Overrides fill_color | ||
flag = FALSE; | ||
color_table = "MET_BASE/colortables/met_default.ctable"; | ||
plot_min = 0.0; | ||
plot_max = 0.0; | ||
colorbar_flag = TRUE; | ||
} | ||
|
||
// Array of point data filtering, pre-processing, and plotting options | ||
point_data = [ | ||
{ fill_color = [ 255, 0, 0 ]; } | ||
]; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// |
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
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
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
Oops, something went wrong.