Hello, I am trying to write a Python request in order to get values from the Global Land Cover public collection.
I tried to adapt an example found in the documentation of the Sentinel Hub Python package which uses digital elevation model data (Example 5: Other Data Collections)
Example 5: Other Data Collections
evalscript_dem = ‘’’
//VERSION=3
function setup() {
return {
input: [“DEM”],
output:{
id: “default”,
bands: 1,
sampleType: SampleType.FLOAT32
}
}
}
function evaluatePixel(sample) {
return [sample.DEM]
}
dem_request = SentinelHubRequest(
evalscript=evalscript_dem,
input_data=[
SentinelHubRequest.input_data(
data_collection=DataCollection.DEM,
time_interval=(‘2020-06-12’, ‘2020-06-13’),
)
],
responses=[
SentinelHubRequest.output_response(‘default’, MimeType.TIFF)
],
bbox=betsiboka_bbox,
size=betsiboka_size,
config=config
)
To adapt the evalscript for, I used an example of custom script which uses Global Land Cover data (Global Land Cover discrete classification map visualisation script).
To adapt the request I have an issue. Global Land Cover is a Sentinel Hub public collection (Sentinel Hub Public Collections) but it is not an existing DataCollection in the Sentinel Hub python package (Data collections — Sentinel Hub 3.3.2 documentation) unlike DataCollection.DEM.
I had a look at creating a BYOC collection (Bring Your Own COG) but I do not understand how to define the Global Land Cover public collection (Global Land Cover - Sentinel Hub Public Collections) to be able to use it in a Python request. I also guess that a Public Collection is different from a personal BYOC collection.
Is there a tutorial for the use of Public Collections which are not existing Datacollections in Python request ? Do you have similar examples of requests on Public Collections ?
Many thanks…