pyart.util.determine_sweeps(radar, max_offset=0.1, running_win_dt=5.0, deg_rng=(-5.0, 360.0))[source]#

Determine the number of sweeps using elevation data (PPI scans) or azimuth data (RHI scans) and update the input radar object

  • radar (Radar object) – The radar object containing the data.

  • max_offset (float) – Maximum elevation offset (if is_ppi is True) or azimuth offset (if is_ppi is False) allowed to determine sweeps.

  • running_win_dt (float) – running window period (in seconds) used to determine elevation or azimuth shifts. Note: set wisely: the method assumes that a single sweep is longer than this parameter.

  • deg_rng (float) – angle range (azimuth or elevation) to consider for calculations. Assuming azimuths between 0 to 360, this should be equal to (0., 360.), but given that there could be ppi scan strategies at negative elevations, one might consider a negative values (current default), or , for example, -180 to 180 if the azimuth range goes from -180 to 180.