Skip to content

Commit

Permalink
Add support for EO-SIP AVHRR LAC data
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Mar 18, 2024
1 parent aed88ce commit f592d9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions satpy/etc/readers/avhrr_l1b_gaclac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,4 @@ file_types:
file_patterns:
- '{creation_site:3s}.{transfer_mode:4s}.{platform_id:2s}.D{start_time:%y%j.S%H%M}.E{end_time:%H%M}.B{orbit_number:05d}{end_orbit_last_digits:02d}.{station:2s}'
- '{subscription_prefix:10d}.{creation_site:3s}.{transfer_mode:4s}.{platform_id:2s}.D{start_time:%y%j.S%H%M}.E{end_time:%H%M}.B{orbit_number:05d}{end_orbit_last_digits:02d}.{station:2s}'
- '{platform_id:3s}_RPRO_AVH_L1B_1P_{start_time:%Y%m%dT%H%M%S}_{end_time:%Y%m%dT%H%M%S}_{orbit_number:06d}/image.l1b'
8 changes: 5 additions & 3 deletions satpy/readers/avhrr_l1b_gaclac.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,17 @@ def __init__(self, filename, filename_info, filetype_info, # noqa: D417
if self._end_time < self._start_time:
self._end_time += timedelta(days=1)
self.platform_id = filename_info["platform_id"]
if self.platform_id in ["NK", "NL", "NM", "NN", "NP", "M1", "M2",
"M3"]:
if self.platform_id in ["NK", "NL", "NM", "NN", "NP",
"M1", "M2", "M3",
"N15", "N16", "N17", "N18", "N19"]:
if filename_info.get("transfer_mode") == "GHRR":
self.reader_class = GACKLMReader
else:
self.reader_class = LACKLMReader
self.chn_dict = AVHRR3_CHANNEL_NAMES
self.sensor = "avhrr-3"
elif self.platform_id in ["NC", "ND", "NF", "NH", "NJ"]:
elif self.platform_id in ["NC", "NE", "NF", "NG", "NH", "ND", "NJ",
"N07", "N08", "N09", "N10", "N11", "N12", "N14"]:
if filename_info.get("transfer_mode") == "GHRR":
self.reader_class = GACPODReader
else:
Expand Down

0 comments on commit f592d9d

Please sign in to comment.