From 2c8b4830132b440f0c4eacb9e71350cc237e5d10 Mon Sep 17 00:00:00 2001 From: Bobby Jackson Date: Tue, 3 Sep 2024 13:27:44 -0500 Subject: [PATCH] FIX: Fixed angle incorrect in xradar PyART radar object wrapper --- pyart/xradar/accessor.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pyart/xradar/accessor.py b/pyart/xradar/accessor.py index f074968713..50c17edce2 100644 --- a/pyart/xradar/accessor.py +++ b/pyart/xradar/accessor.py @@ -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(