pyrad.graph.plot_scatter#

pyrad.graph.plot_scatter(bin_edges1, bin_edges2, hist_2d, field_name1, field_name2, fname_list, prdcfg, metadata=None, lin_regr=None, lin_regr_slope1=None, rad1_name='RADAR001', rad2_name='RADAR002', titl='colocated radar gates', cmap=None)[source]#

2D histogram

Parameters:
  • bin_edges1, bin_edges2 (float array2) – the bins of each field

  • hist_2d (ndarray 2D) – the 2D histogram

  • field_name1, field_name2 (str) – the names of each field

  • fname_list (list of str) – list of names of the files where to store the plot

  • prdcfg (dict) – product configuration dictionary

  • metadata (str) – a string with metadata to write in the plot

  • lin_regr (tupple with 2 values) – the coefficients for a linear regression

  • lin_regr_slope1 (float) – the intercep point of a linear regression of slope 1

  • rad1_name, rad2_name (str) – name of the radars which data is used

  • titl (str) – plot title

  • cmap (str or None) – name of the colormap. If None it will be choosen the default for the field_name

Returns:

fname_list (list of str) – list of names of the created plots