Skip to content

Commit

Permalink
FIX: Fixed angle incorrect in xradar PyART radar object wrapper (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcjackson authored Sep 3, 2024
1 parent 361b546 commit d0b6e24
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pyart/xradar/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,10 @@ def __init__(self, xradar, default_sweep="sweep_0", scan_type=None):
self.azimuth = dict(data=self.combined_sweeps.azimuth.values)
self.elevation = dict(data=self.combined_sweeps.elevation.values)
# Check to see if the time is multidimensional - if it is, collapse it
if len(self.combined_sweeps.sweep_fixed_angle.dims) > 1:
self.combined_sweeps["sweep_fixed_angle"] = (
"sweep_number",
np.unique(self.combined_sweeps.sweep_fixed_angle),
)
self.combined_sweeps["sweep_fixed_angle"] = (
"sweep_number",
np.unique(self.combined_sweeps.sweep_fixed_angle),
)
self.fixed_angle = dict(data=self.combined_sweeps.sweep_fixed_angle.values)
self.antenna_transition = None
self.latitude = dict(
Expand Down

0 comments on commit d0b6e24

Please sign in to comment.