pyart.util.determine_sweeps#

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

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

Parameters:
  • 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.

  • consider_2pi_jump (bool) – if True and radar scan type is ‘rhi’, overwriting deg_rng to (0., 360.), and merging the first and last azimuth bins (to have shots just below 360 and just above 0 to be considered part of the same sweep).