Skip to content

Commit

Permalink
Fix data type when getting a line offset for a segmented hrit_jma
Browse files Browse the repository at this point in the history
  • Loading branch information
k3a committed Oct 15, 2024
1 parent b02fd62 commit 6487bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions satpy/readers/hrit_jma.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ def _get_line_offset(self):
if self.is_segmented:
# loff in the file specifies the offset of the full disk image
# centre (1375/2750 for VIS/IR)
segment_number = self.mda["segment_sequence_number"] - 1
loff -= (self.mda["total_no_image_segm"] - segment_number - 1) * nlines
segment_number = int(self.mda["segment_sequence_number"]) - 1
loff -= (int(self.mda["total_no_image_segm"]) - segment_number - 1) * nlines
elif self.area_id in (NORTH_HEMIS, SOUTH_HEMIS):
# loff in the file specifies the start line of the half disk image
# in the full disk image
Expand Down

0 comments on commit 6487bd4

Please sign in to comment.