-
Notifications
You must be signed in to change notification settings - Fork 3
temporal_extent in load_collection includes the second element #4
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
Comments
Good point, @m-mohr could you please tell me if subtracting 1 second would still be API compliant? |
I think you may need to subtract depending on the granularity of the input. If you receive 2020-01-01T00:00:00Z you'd need to subtract a second so that you get 2019-12-31T23:59:59Z. |
Should it not be 2019-12-13 (23:59) ? |
That's a good question. Having a closer look, the process description doesn't define this. Actually, you could probably also just remove 1 s always and be compliant as it's undocumented right now. I think actually my first comment is likely not the common understanding, but the more common understand when people read this is what @danielFlemstrom says. So maybe indeed just remove a second always. |
Just a clarification of our problem. This is an excerpt of the actual time sequence of a product we have: |
If you modify this line
return np.datetime_as_string(np.datetime64(date) - np.timedelta64(1, 's'), timezone='UTC') # Substracts one second
and you provide in the openEO process graph a temporal extent of |
Any chance of getting that fix into the repo ? |
@danielFlemstrom the project is open source, you are free of creating a fork, modifying the code and open a pull request. Currently this repository is being used in the production back-end of EODC, so I guess they should firstly check that changing this behavior doesn't create problems with unit tests. We are currently quite busy with the preparation of the LPS in Bonn. If you or someone from RISE will take part to the event, you could consider to attend our demos/classrooms or just have a talk with us! |
The openEO API https://processes.openeo.org/#load_collection specifies that the second element should be excluded.
The text was updated successfully, but these errors were encountered: