pyrad.util.compute_2d_stats#
- pyrad.util.compute_2d_stats(field1, field2, field_name1, field_name2, step1=None, step2=None)[source]#
computes a 2D histogram and statistics of the data
- Parameters:
field1, field2 (ndarray 2D) – the two fields
field_name1, field_nam2 (str) – the name of the fields
step1, step2 (float) – size of bin
- Returns:
hist_2d (array) – the histogram
bin_edges1, bin_edges2 (float array) – The bin edges
stats (dict) – a dictionary with statistics