Skip to content

Commit

Permalink
fix: close all h5files in viirs_sdr, not only the last one.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin.Raspaud <a001673@c20035.ad.smhi.se>
  • Loading branch information
Martin.Raspaud committed Feb 9, 2015
1 parent b54eb32 commit 1ee4325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpop/satin/viirs_sdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,12 @@ def _read_data(self):
# Is it necessary to mask negatives?
#self.mask[y0_:y1_, :] |= self.raw_data[y0_:y1_, :] < 0

h5f.close()

self.data = np.ma.array(self.raw_data, mask=self.mask, copy=False)

self.band_uid = self.band_desc + hashlib.sha1(self.mask).hexdigest()

h5f.close()

def read_lonlat(self, geofilepaths=None, geodir=None):

Expand Down

0 comments on commit 1ee4325

Please sign in to comment.