Help to download tree cover density maps with the Python API

Hi All,

I’d like to download tree cover density information with the sentinelhub Python API. So far, I have been able to download cloudless and other images, but I do not know how I should set up the request for derived data.

This does not work:

request2 = SentinelHubRequest(
    data_folder="data",
    evalscript=evalscript,
    input_data=[
        SentinelHubRequest.input_data(
            data_collection=DataCollection.SENTINEL2_L2A.define('486f77da-d605-423e-93a9-680760ab6791'),
            time_interval=("2023-01-01T00:00:00Z", "2023-01-02T23:59:59Z"),
            mosaicking_order=constants.MosaickingOrder.LEAST_CC,
        )
    ],
    responses=[SentinelHubRequest.output_response("default", MimeType.TIFF)],
    bbox=bbox_list[1],
    size=aoi_size,
    config=config,
)

Many thanks!

Assuming that you already have this data in a BYOC Collection. You should change SENTINEL2_L2A in your data collection parameter to define_byoc