Open ameraner opened 2 months ago
I think this was likely introduced recently when changes were made to the StaticImageCompositor and/or the generic_image reader where start_time
was made optional (can be set to None
). Looks like we missed a couple cases where start times are used.
PRs welcome!
Describe the bug After https://github.com/pytroll/satpy/pull/2737, the
start_time
of aStaticImageCompositor
dataset are set toNone
if not available in the filename. This is ok per-se, but this causes theScene.start_time
computation to fail for composites with static images, since the Scene tries to compute themin
of all datasets here: https://github.com/pytroll/satpy/blob/89f09d3b3eedf2a27a14a5536d1cb9ad72c707a5/satpy/scene.py#L222 The same applies toend_time
To Reproduce
Expected behavior
We would propose to handle
None
when trying to compute theScene.start_time
, e.g. withand for the
end_time
to get a sensible time.
Actual results