No CLM or CLP band in L2A

Hi,

I am trying to create a script to have statistical information on the cloud cover of a specific area. I have different issues. The biggest one. I am not able to reach CLM and CLP band.

Server response: “{“status”: 400, “reason”: “Bad Request”, “message”: “Collection ‘S2L2A’ has no band ‘CLM’.”, “code”: “RENDERER_EXCEPTION”}”

My second question is how to manage the resolution of the image in statistical API.

my geometry is a polygon :
field1 = {
“type”: “Polygon”,
“coordinates”: [
[
[6.76078,45.72706],
[6.66310,45.84824],
[6.98729,46.04407],
[6.98729,46.04407],
]
],
}

geometry1 = Geometry(geometry=features1, crs=CRS.WGS84)

Thanks,

Best regards

Hi Benoit,

Can you please share the full request you are making in regards to your question. The CLM and CLP bands should be available for all Sentinel-2 L2A data at the https://services.sentinel-hub.com/ endpoint. However, if you are using the Copernicus Data Space Ecosystem endpoint then they would not be available.

that’s my request to get an image but after I will apply it to statistical API:

geometry1 = Geometry(geometry=features1, crs=CRS.WGS84)

evalscript_true_color = “”"
//VERSION=3

function setup() {
    return {
        input: [{
            bands: ["B02", "B03", "B04","CLM","dataMask"]
        }],
        output: {
            bands: 3
        }
    };
}

function evaluatePixel(sample) {
    return [sample.B04, sample.B03, sample.B02];
}

“”"

request_true_color = SentinelHubRequest(
evalscript=evalscript_true_color,
input_data=[
SentinelHubRequest.input_data(
data_collection=DataCollection.SENTINEL2_L2A.define_from(
name=“s2l2a”, service_url=“https://sh.dataspace.copernicus.eu
),
time_interval=time_int,
other_args={“dataFilter”: {“mosaickingOrder”: “leastCC”}},
)
],
responses=[SentinelHubRequest.output_response(“default”, MimeType.PNG)],
geometry=geometry1,
config=config,

)

Thanks for sending the request. As I said previously, The CLM and CLP bands are not available on the Copernicus Data Space Ecosystem as documented here. If you would like to make a request to the Copernicus Data Space Ecosystem, I encourage you to do this on their website here.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.