Skip to content

Commit

Permalink
Remove MaskArray error catch from scene.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoro committed May 8, 2018
1 parent 3ff9cbc commit b455e2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions satpy/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from satpy.writers import load_writer
from pyresample.geometry import AreaDefinition
from xarray import DataArray
import numpy as np

try:
import configparser
Expand Down Expand Up @@ -709,7 +708,7 @@ def _resampled_scene(self, datasets, destination, **resample_kwargs):
dataset.data = dataset.data.rechunk(1024)
dataset = dataset.isel(x=slice_x, y=slice_y)
dataset.attrs['area'] = source_area
except (NotImplementedError, np.ma.MaskError):
except NotImplementedError:
LOG.info("Not reducing data before resampling.")
if source_area not in resamplers:
key, resampler = prepare_resampler(
Expand Down

0 comments on commit b455e2c

Please sign in to comment.