Skip to content

Commit

Permalink
FIX: Fix for when radar azimuths wrap for get_gate_area. (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Jan 13, 2023
1 parent 80bb072 commit b15eafa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyart/core/radar.py
Expand Up @@ -535,7 +535,10 @@ def get_gate_area(self, sweep):
circular_area = np.pi * ranges**2
annular_area = np.diff(circular_area)

d_azimuths = np.diff(azimuths) / 360.0 # Fraction of a full circle
az_diffs = np.diff(azimuths)
az_diffs[az_diffs < 0.0] += 360

d_azimuths = az_diffs / 360.0 # Fraction of a full circle

dca, daz = np.meshgrid(annular_area, d_azimuths)

Expand Down

0 comments on commit b15eafa

Please sign in to comment.