Skip to content

Fci l1c handle other coverage #3112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions satpy/readers/fci_l1c_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,20 +248,28 @@ def rc_period_min(self):
elif self.filename_info["coverage"] in ["FD", "AF"]:
return 10
else:
raise NotImplementedError(f"coverage for {self.filename_info['coverage']}"
" not supported by this reader")
logger.debug(f"Coverage \"{self.filename_info['coverage']}\" not recognised. "
f"Using observation times for nominal times.")
return None


@property
def nominal_start_time(self):
"""Get nominal start time."""
rc_date = self.observation_start_time.replace(hour=0, minute=0, second=0, microsecond=0)
return rc_date + dt.timedelta(
minutes=(self.filename_info["repeat_cycle_in_day"] - 1) * self.rc_period_min)
if self.rc_period_min is None:
return self.filename_info["start_time"]
else:
rc_date = self.observation_start_time.replace(hour=0, minute=0, second=0, microsecond=0)
return rc_date + dt.timedelta(
minutes=(self.filename_info["repeat_cycle_in_day"] - 1) * self.rc_period_min)

@property
def nominal_end_time(self):
"""Get nominal end time."""
return self.nominal_start_time + dt.timedelta(minutes=self.rc_period_min)
if self.rc_period_min is None:
return self.filename_info["end_time"]
else:
return self.nominal_start_time + dt.timedelta(minutes=self.rc_period_min)

@property
def observation_start_time(self):
Expand Down
Loading
Loading