pyrad.util.compute_2d_hist#

pyrad.util.compute_2d_hist(field1, field2, field_name1, field_name2, step1=None, step2=None)[source]#

computes a 2D histogram of the data

Parameters:
  • field1, field2 (ndarray 2D) – the radar fields

  • field_name1, field_name2 (str) – field names

  • step1, step2 (float) – size of the bins

Returns:

  • H (float array 2D) – The bi-dimensional histogram of samples x and y

  • xedges, yedges (float array) – the bin edges along each dimension