You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the last value is rounded to 2022-05-06T06:56:04Z in xcube viewer. The last time stamp is displayed fine on the map, however due to rounding it is omitted in the time-series request.
POST https://bc-api.brockmann-consult.de/api/timeseries/bc-demo~cglops_lake_tanganjika_300m.zarr/turbidity_mean?aggMethods=median&startDate=2021-10-26T19:37:41Z&endDate=2022-05-06T06:56:04Z
AliceBalfanz
changed the title
time series request round the request endDate resulting in omitting last values
time series request round the request endDate resulting in omitting last value
May 11, 2023
AliceBalfanz
changed the title
time series request round the request endDate resulting in omitting last value
time series request rounds the request endDate resulting in omitting last value
May 11, 2023
When we have a dataset, which last two values are e.g.
the last value is rounded to 2022-05-06T06:56:04Z in xcube viewer. The last time stamp is displayed fine on the map, however due to rounding it is omitted in the time-series request.
https://bc-api.brockmann-consult.de/api/timeseries/bc-demo~cglops_lake_tanganjika_300m.zarr/turbidity_mean?aggMethods=median&startDate=2021-10-26T19:37:41Z&endDate=2022-05-06T06:56:04Z
POST https://bc-api.brockmann-consult.de/api/timeseries/bc-demo~cglops_lake_tanganjika_300m.zarr/turbidity_mean?aggMethods=median&startDate=2021-10-26T19:37:41Z&endDate=2022-05-06T06:56:04Z
e.g. for
the response therefore omits the last time stamp with the value 2022-05-06T06:56:04.065999872 as it is just later than 2022-05-06T06:56:04.
This happens for all datasets, where the milliseconds are rounded down, and therefore the timeseries display in the viewer is incomplete.
To reproduce:
Use https://bc-viewer.brockmann-consult.de/?dataset=bc-demo~cglops_lake_tanganjika_300m.zarr
which is located in our bc-demo-cubes s3 bucket.
The text was updated successfully, but these errors were encountered: