Is your feature request related to a problem? Please describe.
Datasets and individual dataset variables published by xcube server are not forced to have a "time" dimension. If the /statistics/{datasetId}/{varName} endpoint is invoked without the "time" parameter, a request error is raised (HTTP status 400):
But if the endpoint is invoked with given "time" parameter but the dataset variable is lacking it, an internal error is raised (HTTP status 500):
Describe the solution you'd like
Make the query parameter "time" optional for both GET /statistics and POST /statistics endpoints.
Ignore a given "time" query parameter if the variable does not have a time dimension.
Return empty result if "time" query parameter is not given but the variable has a time dimension.
Additional context
After the change xcube Viewer should be adapted to not pass the "time" query parameter".
Is your feature request related to a problem? Please describe.
Datasets and individual dataset variables published by xcube server are not forced to have a "time" dimension. If the
/statistics/{datasetId}/{varName}
endpoint is invoked without the "time" parameter, a request error is raised (HTTP status 400):But if the endpoint is invoked with given "time" parameter but the dataset variable is lacking it, an internal error is raised (HTTP status 500):
Describe the solution you'd like
GET /statistics
andPOST /statistics
endpoints.Additional context
After the change xcube Viewer should be adapted to not pass the "time" query parameter".
See also https://github.com/xcube-dev/xcube-viewer/issues/408. See also this for the frontend issue