Skip to content

Commit

Permalink
Merge pull request #843 from wroberts4/master
Browse files Browse the repository at this point in the history
Remove Invalid Metadata From ACSPO Reader
  • Loading branch information
djhoese authored Jul 3, 2019
2 parents 7360647 + f5be913 commit da0cf50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions satpy/readers/acspo.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,8 @@ def get_dataset(self, dataset_id, ds_info, xslice=slice(None), yslice=slice(None
data = data.where(~clear_sky_mask)

data.attrs.update(metadata)
# Remove these attributes since they are no longer valid and can cause invalid value filling.
data.attrs.pop('_FillValue', None)
data.attrs.pop('valid_max', None)
data.attrs.pop('valid_min', None)
return data

0 comments on commit da0cf50

Please sign in to comment.