Skip to content

Commit e65966c

Browse files
Merge branch 'main' into 56-use-l1b-for-lo-pivot-angle-in-glows-l3e
2 parents c2a515f + 2f07a88 commit e65966c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

imap_l3_processing/glows/l3e/glows_l3e_ultra_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def convert_dat_to_glows_l3e_ul_product(cls, input_metadata: InputMetadata, file
9797
spacecraft_velocity_y=np.array([args.spacecraft_velocity_y]),
9898
spacecraft_velocity_z=np.array([args.spacecraft_velocity_z]),
9999
elongation_excluded=np.array([args.elongation]),
100-
pixel_latitude=pixel_latitude_to_return,
101-
pixel_longitude=pixel_longitude_to_return,
100+
pixel_latitude=np.array([pixel_latitude_to_return]),
101+
pixel_longitude=np.array([pixel_longitude_to_return]),
102102
)
103103

104104
def to_data_product_variables(self) -> list[DataProductVariable]:

tests/glows/l3e/test_glows_l3e_ultra_model.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,11 @@ def test_convert_dat_to_glows_l3e_ul_product(self):
149149

150150
np.testing.assert_equal(np.array([30.0]), l3e_ul_product.elongation_excluded, strict=True)
151151

152-
np.testing.assert_equal(87.07582, l3e_ul_product.pixel_latitude[0])
153-
np.testing.assert_equal(45.00000, l3e_ul_product.pixel_longitude[0])
152+
np.testing.assert_equal((1, 3072), l3e_ul_product.pixel_latitude.shape, strict=True)
153+
np.testing.assert_equal((1, 3072), l3e_ul_product.pixel_longitude.shape, strict=True)
154+
np.testing.assert_equal(87.07582, l3e_ul_product.pixel_latitude[0, 0])
155+
np.testing.assert_equal(45.00000, l3e_ul_product.pixel_longitude[0, 0])
154156

155-
np.testing.assert_equal(np.nan, l3e_ul_product.pixel_latitude[804])
156-
np.testing.assert_equal(np.nan, l3e_ul_product.pixel_longitude[804])
157+
np.testing.assert_equal(np.nan, l3e_ul_product.pixel_latitude[0, 804])
158+
np.testing.assert_equal(np.nan, l3e_ul_product.pixel_longitude[0, 804])
157159

0 commit comments

Comments
 (0)