Skip to content

Commit

Permalink
Fix CTTH composite not to mark invalid data as cloud-free
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Mar 15, 2019
1 parent 8eea7cf commit 8b2ff1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/composites/cloud_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __call__(self, projectables, **info):
dims=data.dims, coords=data.coords,
attrs=data.attrs).where(mask_nan)
# Set cloud-free pixels as black
chans.append(chan.where(mask_cloud_free, 0))
chans.append(chan.where(mask_cloud_free, 0).where(status != status.attrs['_FillValue']))

res = super(CloudTopHeightCompositor, self).__call__(chans, **data.attrs)
res.attrs['_FillValue'] = np.nan
Expand Down

0 comments on commit 8b2ff1c

Please sign in to comment.