pyrad.util.compute_histogram#
- pyrad.util.compute_histogram(field, field_name, bin_edges=None, step=None, vmin=None, vmax=None)[source]#
computes histogram of the data
- Parameters:
field (ndarray 2D) – the radar field
field_name (str or none) – name of the field
bins_edges (ndarray 1D) – the bin edges
step (float) – size of bin
vmin, vmax (float) – The minimum and maximum value of the histogram
- Returns:
bin_edges (float array) – interval of each bin
values (float array) – values at each bin