-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
DCFSenhancementNew feature or requestNew feature or requestimportantThis is very important for the projectThis is very important for the projecturgentHigh external pressure to address this ASAPHigh external pressure to address this ASAPxcube serveThis is related to server component, CLI "xcube serve"This is related to server component, CLI "xcube serve"
Description
Is your feature request related to a problem? Please describe.
xcube serve
does not yet allow for data access.
Describe the solution you'd like
The xcube web API should provide data access functions, e.g. the forms
- POST
/datasets/{dataset}/data
- GET
/datasets/{dataset}/data?<query-params>
- GET
/datasets/{dataset}/data.zarr
In the first two forms a cube subset is reformatted and then made available for download. Hence, the response returns a binary stream. The <query-params>
and the POST body provides the following parameters:
bbox=<xmin>,<ymin>,<xmax>,<ymax>
- optional bounding box for the outputtimeRange=<start>,<end>
- optional time range for the outputvariables=<name1>,<name2>,...,<nameN>
- optional output variablesformat=<format>
- optional output format, where<format>
is one ofnetcdf4
,geotiff
,zarr.zip
,zarr
. The latter creates an object storage view on the output using ZARR format.name=<name>
- optional output name
The last form creates an object storage view on a dataset using ZARR format, so users can directly open entire data cubes, e.g.
from xcube.api import read_cube
cube = read_cube('https://myhost/api/datasets/s2a_10m/data.zarr')
...
Describe alternatives you've considered
We may also implement an OGC CSW interface.
Metadata
Metadata
Assignees
Labels
DCFSenhancementNew feature or requestNew feature or requestimportantThis is very important for the projectThis is very important for the projecturgentHigh external pressure to address this ASAPHigh external pressure to address this ASAPxcube serveThis is related to server component, CLI "xcube serve"This is related to server component, CLI "xcube serve"