From d0b6e24c079206c0140a0a5148e51e64ad6aad19 Mon Sep 17 00:00:00 2001 From: Bobby Jackson Date: Tue, 3 Sep 2024 15:16:21 -0500 Subject: [PATCH] FIX: Fixed angle incorrect in xradar PyART radar object wrapper (#1642) --- 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(