find_granules

HIRS2I.find_granules(dt_start=None, dt_end=None, include_last_before=False, **extra)

Yield all granules/measurementfiles in period

Accepts extra keyword arguments. Meaning depends on actual dataset. Could be something like a satellite name in the case of sensors occurring on multiple platforms, like HIRS. To see what keyword arguments are accepted or possibly needed for a particular dataset, call self.get_path_format_variables()

If keyword argument return_time is present and True, yield tuples of (start_time, path) rather than just path.

The results are usually sorted by start time, but this is not guaranteed and depends on the filesystem. If you need sorted granules, please use find_granules_sorted.

Parameters:
  • d_start (datetime.date) – Starting date.

  • d_end (datetime.date) – Ending date

  • include_last_before (bool) – Include last granule starting before.

  • **extra – Any extra keyword arguments. This will be passed on to format self.basedir / self.subdir, in case the standard fields like year, month, etc. do not provide enough information.

Yields:

pathlib.Path objects for each datafile in the dataset between dt_start and dt_end.