Skip to content

Commit

Permalink
Update AVHRR EPS reader to read cloud flags information
Browse files Browse the repository at this point in the history
  • Loading branch information
dimarash-hub committed Jan 11, 2022
1 parent 1ec6e06 commit 32e278b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions satpy/etc/readers/avhrr_l1b_eps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ datasets:
- latitude
file_type: avhrr_eps


latitude:
name: latitude
resolution: 1050
Expand Down Expand Up @@ -127,6 +128,13 @@ datasets:
coordinates: [longitude, latitude]
file_type: avhrr_eps

cloud_flags:
name: cloud_flags
sensor: avhrr-3
resolution: 1050
coordinates: [longitude, latitude]
file_type: avhrr_eps

file_types:
avhrr_eps:
file_reader: !!python/name:satpy.readers.eps_l1b.EPSAVHRRFile
Expand Down
3 changes: 3 additions & 0 deletions satpy/readers/eps_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ def get_dataset(self, key, info):
dataset = self._get_angle_dataarray(key)
elif key['name'] in ["1", "2", "3a", "3A", "3b", "3B", "4", "5"]:
dataset = self._get_calibrated_dataarray(key)
elif key['name'] == "cloud_flags":
array = self["CLOUD_INFORMATION"]
dataset = create_xarray(array)
else:
logger.info("Can't load channel in eps_l1b: " + str(key['name']))
return
Expand Down

0 comments on commit 32e278b

Please sign in to comment.