Currently, our web visualisation development team have been using the/datasetsendpoint from the xcube server API which provides tileLevelMin, tileLevelMax, colorBarName, colorBarMax and colorBarMin per data variable as part of the JSON output. We are however changing to ows.stac via the /ogc endpoint because it's faster, but the STAC JSON output does not provide the above-listed attributes.
I propose the implementation of the derive_tiling_scheme() and the get_color_mapping() in xcube/webapi/ows/stac/controllers.py so the xcube:data_vars will return the additional variables like tileLevelMin, tileLevelMax, colorBarName, colorBarMax and colorBarMin.
I have just implemented it in my local repository and worked out as we wanted.
Currently, our web visualisation development team have been using the
/datasets
endpoint from thexcube
server API which providestileLevelMin
,tileLevelMax
,colorBarName
,colorBarMax
andcolorBarMin
per data variable as part of the JSON output. We are however changing toows.stac
via the/ogc
endpoint because it's faster, but the STAC JSON output does not provide the above-listed attributes.I propose the implementation of the
derive_tiling_scheme()
and theget_color_mapping()
inxcube/webapi/ows/stac/controllers.py
so thexcube:data_vars
will return the additional variables liketileLevelMin
,tileLevelMax
,colorBarName
,colorBarMax
andcolorBarMin
.I have just implemented it in my local repository and worked out as we wanted.