@@ -64,7 +64,7 @@ class RegionStats(TypedDict):
6464 },
6565 "twpc2" : {"cwv_max" : 70 , "cwv_min" : 28 , "bin_width" : 2.0 , "sitename" : "Nauru" },
6666 "twpc3" : {"cwv_max" : 85 , "cwv_min" : 28 , "bin_width" : 2.0 , "sitename" : "Darwin" },
67- "sgp " : {"cwv_max" : 75 , "cwv_min" : 20 , "bin_width" : 2.0 , "sitename" : "SGP" },
67+ "sgpc1 " : {"cwv_max" : 75 , "cwv_min" : 20 , "bin_width" : 2.0 , "sitename" : "SGP" },
6868}
6969
7070# Precipitation threshold for convection onset, default 0.5 (in mm/hr).
@@ -79,7 +79,8 @@ def _plot_diurnal_cycle(parameter: ARMDiagsParameter, vars_to_data: RefsTestMetr
7979 parameter : ARMDiagsParameter
8080 The ARMDiagsParameter object containing the parameters for plotting.
8181 vars_to_data : RefsTestMetrics
82- The ordered dictionary containing the variables to be plotted.
82+ The ordered dictionary containing the variables and their corresponding
83+ data.
8384 """
8485 test = vars_to_data .test [0 ]
8586 ref = vars_to_data .refs [0 ][0 ]
@@ -258,7 +259,6 @@ def _plot_convection_onset_statistics(
258259
259260 For related publications and research information see the Neelin group
260261 webpage http://www.atmos.ucla.edu/~csi/.
261-
262262 """
263263 region_info : Stats | None = REGION_INFO .get (region ) # type: ignore
264264 if region_info is None :
@@ -287,7 +287,6 @@ def _plot_convection_onset_statistics(
287287 line_color = ["blue" , "steelblue" ]
288288 time_interval = 1
289289
290- # FIXME: UnboundLocalError: local variable 'cwv_max' referenced before assignment
291290 number_of_bins = int (np .ceil ((cwv_max - cwv_min ) / bin_width ))
292291 bin_center = np .arange (
293292 (cwv_min + (bin_width / 2 )),
0 commit comments