Skip to content

Commit 924a306

Browse files
authored
CoDICE: L2 spin angle data in wrong bin (#2947)
1 parent ea5ee40 commit 924a306

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

imap_processing/codice/codice_l2.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,16 @@ def process_hi_sectored(dependencies: ProcessingInputCollection) -> xr.Dataset:
11661166
base_angles = np.asarray(L2_HI_SECTORED_ANGLE, dtype=float).reshape(n_spin, 1)
11671167

11681168
spin_angle = (base_angles + elevation_offsets) % 360.0
1169+
# We need to transpose spin_angle to put spin_angle data into correct
1170+
# dimensions. Eg.
1171+
# spin_angle[0,0] - 285
1172+
# spin_angle[1,0] - 315
1173+
# ....
1174+
# This is expected behavior per CoDICE because the spin angle should increments
1175+
# at 30 degree spin angle per elevation angle. Due to that, in the example, the
1176+
# column remained same but spin angle incremented by 30 degrees for each
1177+
# elevation angle.
1178+
spin_angle = spin_angle.T
11691179
# Add spin angle variable using the new elevation_angle dimension
11701180
l2_dataset["spin_angle"] = (("spin_sector", "elevation_angle"), spin_angle)
11711181
l2_dataset["spin_angle"].attrs = cdf_attrs.get_variable_attributes(

0 commit comments

Comments
 (0)