monkey_wrench.input_output.hrit._models module

class monkey_wrench.input_output.hrit._models.HritFilesCollector(*, hrit_files: list[~typing.Annotated[~pathlib.Path, ~pydantic.types.PathType(path_type=file), ~pydantic.functional_validators.AfterValidator(func=~monkey_wrench.input_output._types.<lambda>), ~pydantic.functional_validators.AfterValidator(func=~monkey_wrench.input_output._types.ensure_path_does_not_end_with_slash)]] | ~monkey_wrench.input_output._models.DirectoryVisitor)[source]

Bases: Model

Pydantic model to collect and sort HRIT files.

hrit_files: list[~typing.Annotated[~pathlib.Path, ~pydantic.types.PathType(path_type=file), ~pydantic.functional_validators.AfterValidator(func=~monkey_wrench.input_output._types.<lambda>), ~pydantic.functional_validators.AfterValidator(func=~monkey_wrench.input_output._types.ensure_path_does_not_end_with_slash)]] | ~monkey_wrench.input_output._models.DirectoryVisitor

A list of filepaths or a directory visitor for the directory containing SEVIRI observation in HRIT format.

property sorted_files: dict[~datetime.datetime, list[~typing.Annotated[~pathlib.Path, ~pydantic.types.PathType(path_type=file), ~pydantic.functional_validators.AfterValidator(func=~monkey_wrench.input_output._types.<lambda>), ~pydantic.functional_validators.AfterValidator(func=~monkey_wrench.input_output._types.ensure_path_does_not_end_with_slash)]]]

Get the HRIT files sorted by time.

It will be returned as a dictionary mapping datetime objects to the corresponding observation files.