Skip to content

Commit

Permalink
Merge pull request #378 from pytroll/bugfix-dnc-masking
Browse files Browse the repository at this point in the history
Fix DayNightCompositor masking imagery incorrectly
  • Loading branch information
djhoese authored Aug 14, 2018
2 parents 4eeb646 + 70218d9 commit 0c80f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions satpy/composites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,8 @@ def enhance2dataset(dset):
array of the image."""
attrs = dset.attrs
img = get_enhanced_image(dset)
# Clip image data to interval [0.0, 1.0] and replace nan values
data = img.data.clip(0.0, 1.0).fillna(0.0)
# Clip image data to interval [0.0, 1.0]
data = img.data.clip(0.0, 1.0)
data.attrs = attrs

return data
Expand Down

0 comments on commit 0c80f47

Please sign in to comment.