Skip to content

Commit

Permalink
Merge pull request #1744 from joleenf/virr_l1b
Browse files Browse the repository at this point in the history
Fix VIRR reader handling valid_range when it is a numpy array
  • Loading branch information
djhoese committed Jun 29, 2021
2 parents b2af59a + 32c4e02 commit f736315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions satpy/readers/virr_l1b.py
Expand Up @@ -93,6 +93,8 @@ def get_dataset(self, dataset_id, ds_info):
data = self[file_key]
band_index = ds_info.get('band_index')
valid_range = data.attrs.pop('valid_range', None)
if isinstance(valid_range, np.ndarray):
valid_range = valid_range.tolist()
if band_index is not None:
data = data[band_index]
if valid_range:
Expand Down

0 comments on commit f736315

Please sign in to comment.