Skip to content

Commit

Permalink
Bugfix viirs geolocation
Browse files Browse the repository at this point in the history
When geolocation granule files are not ordered in time,
geolocation got wrong when calling the loader with a list of files

Signed-off-by: Adam.Dybbroe <a000680@c20671.ad.smhi.se>
  • Loading branch information
Adam.Dybbroe committed Sep 22, 2016
1 parent 2f44415 commit a69056d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mpop/satin/viirs_sdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ def read_lonlat(self, geofilepaths=None, geodir=None):
geofilepaths = [os.path.join(geodir, geofilepath)
for geofilepath in self.geo_filenames]

geofilepaths = sorted(geofilepaths)
logger.debug("Geo-files = " + str(geofilepaths))
self.geolocation = ViirsGeolocationData(self.data.shape,
geofilepaths).read()
Expand Down

0 comments on commit a69056d

Please sign in to comment.