Skip to content

Commit

Permalink
Fix call to netcdf4's set_auto_maskandscale in viirs l1b reader
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Mar 4, 2016
1 parent 8c67ca6 commit ea2773e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/readers/viirs_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def __getitem__(self, key):
if isinstance(val, netCDF4.Variable):
# these datasets are closed and inaccessible when the file is closed, need to reopen
v = netCDF4.Dataset(self.filename, 'r')
v.set_auto_maskandscale(self.auto_maskandscale)
val = v[key]
val.set_auto_maskandscale(self.auto_maskandscale)
return val


Expand Down

0 comments on commit ea2773e

Please sign in to comment.