From 00c5eb1187e3642cf730051dfb30f319cca9a633 Mon Sep 17 00:00:00 2001 From: Luisa Date: Thu, 26 Feb 2026 10:09:08 -0700 Subject: [PATCH 1/2] update the spin_angle array --- imap_processing/codice/codice_l2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap_processing/codice/codice_l2.py b/imap_processing/codice/codice_l2.py index 0ca429b5b..c3a92b388 100644 --- a/imap_processing/codice/codice_l2.py +++ b/imap_processing/codice/codice_l2.py @@ -1078,7 +1078,7 @@ def process_hi_sectored(dependencies: ProcessingInputCollection) -> xr.Dataset: spin_angle = (L2_HI_SECTORED_ANGLE[:, np.newaxis] + elevation_angles) % 360.0 # Add spin angle variable using the new elevation_angle dimension - l2_dataset["spin_angle"] = (("spin_sector", "elevation_angle"), spin_angle) + l2_dataset["spin_angle"] = (("spin_sector", "elevation_angle"), spin_angle.T) l2_dataset["spin_angle"].attrs = cdf_attrs.get_variable_attributes( "spin_angle", check_schema=False ) From 36bc8e2317e378476b2dc7bc140cc81b205f8e04 Mon Sep 17 00:00:00 2001 From: Luisa Date: Thu, 26 Feb 2026 10:10:09 -0700 Subject: [PATCH 2/2] add comment --- imap_processing/codice/codice_l2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imap_processing/codice/codice_l2.py b/imap_processing/codice/codice_l2.py index c3a92b388..6b2dc7bd9 100644 --- a/imap_processing/codice/codice_l2.py +++ b/imap_processing/codice/codice_l2.py @@ -1078,6 +1078,8 @@ def process_hi_sectored(dependencies: ProcessingInputCollection) -> xr.Dataset: spin_angle = (L2_HI_SECTORED_ANGLE[:, np.newaxis] + elevation_angles) % 360.0 # Add spin angle variable using the new elevation_angle dimension + # Spin angle needs to be transposed to have dimensions + # (spin_sector, elevation_angle) to match the L2 dataset dimensions l2_dataset["spin_angle"] = (("spin_sector", "elevation_angle"), spin_angle.T) l2_dataset["spin_angle"].attrs = cdf_attrs.get_variable_attributes( "spin_angle", check_schema=False