Skip to main content

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”: e

o

r6.76078,45.72706],

b6.66310,45.84824],

76.98729,46.04407],

86.98729,46.04407],

]

],

}


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


Thanks,


Best regards

Hi,

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: n{
bands: a"B02", "B03", "B04","CLM","dataMask"]
}],
output: {
bands: 3
}
};
}

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

“”"


request_true_color = SentinelHubRequest(

evalscript=evalscript_true_color,

input_data=n

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=rSentinelHubRequest.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.


Reply