Closed zcernigoj closed 2 years ago
This suggests that for a certain date (timestamp / label) from
target
DataCube, the nearest valid values fromdata
DataCube can be from different dates (timestamps / labels), not from only one "alternative" nearest date (timestamp / label). This also feels the more correct behaviour than any different behaviour.
You refer to a case like: input data at time steps: 2020-01-09 12:00:00, 2020-01-21 12:00:00 target time steps: 2020-01-15 12:00:00 valid within: 7 days
and the issue here would be which input time step to choose right? In the process description this scenario is already mentioned!
The rare case of ties is resolved by choosing the earlier timestamps.
Yes, that was my concern. Thanks.
Process ID: resample_cube_temporal
Describe the issue: Checking if I understand the description for
valid_within
correctly.This suggests that for a certain date (timestamp / label) from
target
DataCube, the nearest valid values fromdata
DataCube can be from different dates (timestamps / labels), not from only one "alternative" nearest date (timestamp / label). This also feels the more correct behaviour than any different behaviour.Is this correct?
Proposed solution: Not sure how this should be solved. Mostly just checking if the described behaviour is the correct planned one.
Additional context:
Related issue: https://github.com/Open-EO/openeo-processes/issues/194 Related PR: https://github.com/Open-EO/openeo-processes/pull/244
Related issue / comment in
openeo-processes-python
: https://github.com/Open-EO/openeo-processes-python/issues/96#issuecomment-1138491467Related PR in
openeo-pg-evalscript-converter
: https://github.com/openEOPlatform/openeo-pg-evalscript-converter/pull/77