Skip to content

Commit

Permalink
hdfeos: orbit number is now an int.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Oct 14, 2015
1 parent c5f9350 commit 54decab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpop/satin/hdfeos_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def load(self, satscene, filename=None, *args, **kwargs):
entire_scene = assemble_segments(sorted(scenes, key=lambda x: x.time_slot))
satscene.channels = entire_scene.channels
satscene.area = entire_scene.area
satscene.orbit = int(entire_scene.orbit)
else:
self.load_dataset(satscene, *args, **kwargs)

Expand Down Expand Up @@ -234,7 +235,7 @@ def load_dataset(self, satscene, filename=None, *args, **kwargs):
if not satscene.orbit:
mda = self.data.attributes()["CoreMetadata.0"]
orbit_idx = mda.index("ORBITNUMBER")
satscene.orbit = mda[orbit_idx + 111:orbit_idx + 116]
satscene.orbit = int(mda[orbit_idx + 111:orbit_idx + 116])

# Get the geolocation
# if resolution != 1000:
Expand Down

0 comments on commit 54decab

Please sign in to comment.