From 1c8419d7d9d39430c8ac5098839956f50f81b8b0 Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Wed, 7 Mar 2018 14:07:48 +0100 Subject: [PATCH] Bugfix check if lons and lats should be masked before resampling --- satpy/resample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/satpy/resample.py b/satpy/resample.py index 6674d056fb..3e1d7eb22f 100644 --- a/satpy/resample.py +++ b/satpy/resample.py @@ -673,7 +673,7 @@ def mask_source_lonlats(source_def, mask): # the data may have additional masked pixels # let's compare them to see if we can use the same area # assume lons and lats mask are the same - if mask and isinstance(source_geo_def, SwathDefinition): + if mask is not None and mask is not False and isinstance(source_geo_def, SwathDefinition): if np.issubsctype(mask.dtype, np.bool): # copy the source area and use it for the rest of the calculations LOG.debug("Copying source area to mask invalid dataset points")