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 geos proj parameters for Insat 3d satellites #2969

Merged
merged 4 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 4 additions & 1 deletion satpy/readers/insat3d_img_l1b_h5.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ def get_area_def(self, ds_id):
#fov = self.datatree.attrs["Field_of_View(degrees)"]
fov = 18
cfac = 2 ** 16 / (fov / cols)
lfac = 2 ** 16 / (fov / lines)

# From reverse engineering metadata from a netcdf file, we discovered
# the lfac is actually the same as cfac, ie dependent on cols, not lines!
lfac = 2 ** 16 / (fov / cols)
djhoese marked this conversation as resolved.
Show resolved Hide resolved

h = self.datatree.attrs["Observed_Altitude(km)"] * 1000
# WGS 84
Expand Down
2 changes: 2 additions & 0 deletions satpy/tests/reader_tests/test_insat3d_img_l1b_h5.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ def test_filehandler_returns_area(insat_filehandler):
area_def = fh.get_area_def(ds_id)
_ = area_def.get_lonlats(chunks=1000)
assert subsatellite_longitude == area_def.crs.to_cf()["longitude_of_projection_origin"]
np.testing.assert_allclose(area_def.area_extent, [-5618068.510660236, -5640108.009097205,
5622075.692194229, 5644115.1906312])


def test_filehandler_has_start_and_end_time(insat_filehandler):
Expand Down
Loading