Closed forman closed 5 months ago
FYI (not super important): When selecting the range of the histogram, when the upper bound is close to the maximal value, the value disappears at the right edge.
When selecting the range of the histogram, when the upper bound is close to the maximal value, the value disappears at the right edge.
Yes, I know. I will fix that, if at all, another time. It requires extra padding to the right if will take away space for the chart.
Further, the new functionalities could be added to the docs/source/viewer.rst so the new functionalities regarding statistics are added to the documentation. Maybe we could do that in another PR.
@konstntokas Yes. But we wont do that in the RST. Instead, we'll set up an entirely new and dedicated doc site for the viewer.
I will fix that, if at all, another time.
Done!
Added new statistics API to xcube server. The service computes basic statistical values and a histogram for given data variable, time stamp, and a GeoJSON geometry. Its endpoint is:
/statistics/{datasetId}/{varName}?time={time}
. Geometry is passed as request body in form of a GeoJSON geometry object.To verify:
xcube --loglevel=INFO --traceback serve --traceperf -vvv -c examples/serve/demo/config.yml
http://127.0.0.1:8080/openapi.html
to verify the API is therehttp://127.0.0.1:8080/viewer
and try the newStatistics
tab in the right sidebar.The current state of https://github.com/xcube-dev/xcube-viewer/pull/357 has been bundled in this PR.
Checklist:
docs/source/*
CHANGES.md