pyrad.util.compute_histogram_sweep#
- pyrad.util.compute_histogram_sweep(field, ray_start, ray_end, field_name, step=None, vmin=None, vmax=None)[source]#
computes histogram of the data in a particular sweep
- Parameters:
field (ndarray 2D) – the radar field
ray_start, ray_end (int) – starting and ending ray indexes
field_name (str) – name of the field
step (float) – size of bin
vmin, vmax (float) – minimum and maximum values
- Returns:
bin_edges (float array) – interval of each bin
values (float array) – values at each bin