-
Notifications
You must be signed in to change notification settings - Fork 300
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
Passing multiple readers fails if generic_image
is among them
#723
Comments
Oh, maybe it's because I passed a list rather than a dict for |
I mentioned this on slack, but I'll say it again here for the record: What you've done should technically work, but the You could pass things as a dictionary to filenames I'm not sure what the best way around this is for |
Right, I confirm that I get the same failure when I pass a dictionary for the filenames (and leave out the |
(I just ran into this again) It's always possible to come up with some date/time in the
But how important are the actual values? How are these times used by Satpy? Is Satpy going to behave any differently if times are found to not overlap? |
Good question. I think start/end times are used in a couple cases (some that don't apply for generic_image):
There are fancier use cases that may use it like the MultiScene's |
Would having |
Maybe...I don't have a lot of experience with NaT so I'm a little worried it will break things, but maybe that is OK for now since this is just the generic image reader. |
We should check if #1560 accidentally fixes this or at least allows an easy workaround. |
No, #1560 shouldn't be fixing this in the default case since it shouldn't be touching the start/end time metadata. |
Whatever has changed, this works with current Satpy. |
Describe the bug
If passing multiple readers to the
Scene
class constructor, and one of the readers is thegeneric_image
readers, Satpy fails withTypeError: '<' not supported between instances of 'NoneType' and 'datetime.datetime'
, because theScene
class attempts to find the time extrema among all readers, but thegeneric_image
reader does not define anystart_time
attribute (which is reasonable, because the geotiff I'm reading is timeless).To Reproduce
Expected behavior
I'm not sure what I expect yet because I'm not sure what passing multiple readers is supposed to do! But what I would like to happen (this may be a feature request rather than a bug) is to get a
Scene
in whichsc.available_dataset_names()
is a union of the ones corresponding to all the readers I have passed. Ultimately, I would like to create a compositor that uses fields from bothseviri_l1b_hrit
,nwcsaf-geo
, as well as a static DEM from a geotiff read withgeneric_image
.Actual results
Environment Info:
from satpy.config import check_satpy; check_satpy()
]The text was updated successfully, but these errors were encountered: