Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bogus dtype refactoring #133

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pygac/gac_klm.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
("spacecraft_altitude_above_reference_ellipsoid", ">u2"),
("angular_relationships", ">i2", (153, )),
("zero_fill3", ">i2", (3, )),
("earth_location", [("lats", ">i2"),
("lons", ">i2")], (51,)),
("earth_location", [("lats", ">i4"),
("lons", ">i4")], (51,)),
("zero_fill4", ">i4", (2, )),
# HRPT MINOR FRAME TELEMETRY
("frame_sync", ">u2", (6, )),
Expand Down
4 changes: 2 additions & 2 deletions pygac/lac_klm.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@
("spacecraft_altitude_above_reference_ellipsoid", ">u2"),
("angular_relationships", ">i2", (153, )),
("zero_fill2", ">i2", (3, )),
("earth_location", [("lats", ">i2"),
("lons", ">i2")], (51,)),
("earth_location", [("lats", ">i4"),
("lons", ">i4")], (51,)),
("zero_fill3", ">i4", (2, )),
# HRPT MINOR FRAME TELEMETRY
("frame_sync", ">u2", (6, )),
Expand Down
11 changes: 11 additions & 0 deletions pygac/tests/test_klm.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,14 @@ def test_calibrate_inactive_3b(self):
"""Test calibration of an inactive 3b."""
channels = self.reader.get_calibrated_channels()
assert np.all(np.isnan(channels[:, :, 3]))


def test_gac_scanline_dtype():
"""Test the gac scanline size."""
from pygac.gac_klm import scanline
assert scanline.itemsize == 4608

def test_lac_scanline_dtype():
"""Test the lac scanline size."""
from pygac.lac_klm import scanline
assert scanline.itemsize == 15872
Loading