@@ -42,7 +42,8 @@ def generate_intercomp_products(dataset, prdcfg):
4242 Generates radar intercomparison products. Accepted product types:
4343 'PLOT_AND_WRITE_INTERCOMP_TS': Writes statistics of radar
4444 intercomparison in a file and plots the time series of the
45- statistics.
45+ statistics. Note that in order to use this product you need
46+ to also define the product WRITE_INTERCOMP_TIME_AVG for the dataset in question.
4647 User defined parameters:
4748 voltype: str
4849 name of the pyrad variable to use, it must be available in the dataset
@@ -71,14 +72,21 @@ def generate_intercomp_products(dataset, prdcfg):
7172 The minimum correlation to consider the statistics
7273 valid and therefore use the data point in the plotting.
7374 Default 0.
74- 'PLOT_SCATTER_INTERCOMP': Plots a density plot with the points of
75- radar 1 versus the points of radar 2
75+ 'PLOT_SCATTER_INTERCOMP': Plots a density plot (2D histogram) with the points of
76+ radar 1 versus the points of radar 2. Note that in order to use this product you need
77+ to also define the product WRITE_INTERCOMP_TIME_AVG for the dataset in question.
7678 User defined parameters:
7779 voltype: str
7880 name of the pyrad variable to use, it must be available in the dataset
7981 step: float
8082 The quantization step of the data. If none it will be
8183 computed using the Py-ART config file. Default None
84+ vmin: float
85+ Minimum value of the density plot. If vmin or vmax are not define the range limits
86+ of the field as defined in the Py-ART config file are going to be used.
87+ vmax: float
88+ Maximum value of the density plot. If vmin or vmax are not define the range limits
89+ of the field as defined in the Py-ART config file are going to be used.
8290 scatter_type: str
8391 Type of scatter plot. Can be a plot for each radar volume
8492 (instant) or at the end of the processing period
@@ -200,6 +208,8 @@ def generate_intercomp_products(dataset, prdcfg):
200208 transform = parse_math_expression (transform_str )
201209 range_bins = prdcfg .get ("range_bins" , [0 , np .inf ])
202210 step = prdcfg .get ("step" , None )
211+ vmin = prdcfg .get ("vmin" , None )
212+ vmax = prdcfg .get ("vmax" , None )
203213
204214 fname_list = []
205215 for i in range (len (range_bins ) - 1 ): # loop on range bins
@@ -244,6 +254,8 @@ def generate_intercomp_products(dataset, prdcfg):
244254 step1 = step ,
245255 step2 = step ,
246256 transform = transform ,
257+ vmin = vmin ,
258+ vmax = vmax ,
247259 )
248260 if hist_2d is None :
249261 return None
@@ -274,7 +286,6 @@ def generate_intercomp_products(dataset, prdcfg):
274286 + "{:.2f}" .format (float (stats ["intercep" ]))
275287 + "\n "
276288 )
277-
278289 if transform_str != "x" :
279290 field_name = f"{ transform_str } of { field_name } "
280291 plot_scatter (
@@ -479,7 +490,10 @@ def generate_colocated_gates_products(dataset, prdcfg):
479490 gridMapImageConfig structure of the loc file.
480491 User defined parameters:
481492 grid_size: float
482- Size of the grid in degrees (lat/lon). Default is 0.02 degrees.
493+ Size of the grid in degrees (lat/lon). If not provided,
494+ the grid size defined in gridMapImageConfig with
495+ lat_min, lon_min, lat_max, lon_max and lonstep, latstep
496+ will be used.
483497 All the products of the 'VOL' dataset group
484498
485499
0 commit comments