When we save a request through the ‘save_data = True’ parameter, is the order of the bands preserved?
For example, if we open the saved tiff file through Rasterio (or any other GIS package), the layers (0 to 12) should correspond to the return’s order ([B01,B02,B03,B04,B05,B06,B07,B08,B8A,B09,B11,B12] for a ‘Bands S2 L2A’ request).
To request a SCL, CLP or CLM layer through a OGC request, is right to simply add the layer’s name in the Custom Script Editor within Sentinel Hub’s Dashboard? I have attached images below to better explain my question.
If this can be done to request additional layers, why doesn’t it work when we add “dataMask”? After all, this does seem to be an available in your API endpoint. I understand that I should probably be using your processing API to request for the layers aforementioned, but I find an OGC request much more intuitive.
In your case SCL and CLP will cause problems as they have value ranges going beyond [0,1].
We understand that this is simpler as there is a lot of auto-magic things happening but this automatism makes it unpredictable as soon as you go beyond the default use-cases.
See this blog post with more explanations:
So yes, try to use process API instead, will be much better and once you get used to it, it is as simple as OGC.
The fact that dataMask is not available in the OGC when using simple scripts is our oversight. However, it is a low priority one so we cannot tell you when this will be added.
If you change the evalscript to V3 it should work through OGC API as well.