File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments