Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Fix for when radar azimuths wrap for get_gate_area. #1375

Merged
merged 1 commit into from Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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