xcube-dev / xcube

xcube is a Python package for generating and exploiting data cubes powered by xarray, dask, and zarr.
https://xcube.readthedocs.io/
MIT License
195 stars 18 forks source link

xcube server to deliver data #97

Open forman opened 5 years ago

forman commented 5 years ago

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

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:

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.

forman commented 5 years ago

@dzelge and @AliceBalfanz, could you please review proposed API and provide feedback and / or new use cases.

forman commented 5 years ago

Added web API for data access, slightly different than proposed initially:

See https://github.com/dcs4cop/xcube/pull/117

AliceBalfanz commented 5 years ago

xcube server to deliver data