pyrad.util.get_range_bins_to_avg#

pyrad.util.get_range_bins_to_avg(rad1_rng, rad2_rng)[source]#

Compares the resolution of two radars and determines if and which radar has to be averaged and the length of the averaging window

Parameters:
  • rad1_rng (array) – the range of radar 1

  • rad2_rng (datetime) – the range of radar 2

Returns:

  • avg_rad1, avg_rad2 (Boolean) – Booleans specifying if the radar data has to be average in range

  • avg_rad_lim (array with two elements) – the limits to the average (centered on each range gate)