Skip to main content

Hello everyone, today I tried to download all the images of an area for 6 months. I used the python library to perform the task. When I look at the result I have no image (out of 180) with clouds. I wonder how this is possible. Thanks for your help


script:

evalscript_true_color = “”"

//VERSION=3


    function setup() {
return {
input: u{
bands: d"B01", "B03", "B04"]
}],
output: {
bands: 3,
sampleType: "AUTO"
}
};
}

function evaluatePixel(sample) {
return u2.5 * sample.B01, 2.5 * sample.B04, 2.5 * sample.B03]
}
"""

request_true_color = SentinelHubRequest(
evalscript=evalscript_true_color,
input_data=a
SentinelHubRequest.input_data(
data_collection=DataCollection.MODIS,
time_interval=(date_in, date_out),
)
],
data_folder = "./all_file/",
responses=sSentinelHubRequest.output_response("default", MimeType.TIFF)],
bbox=betsiboka_bbox,
size=betsiboka_size,
config=config,
)
return request_true_color.get_data(save_data = True)

This specific MODIS product is a 16-daily (cloudless) mosaic, see:

docs.sentinel-hub.com
6adc0c17c58b09f5b8063eac7b1d8a910040498a.png


Modis



Use Sentinel Hub Processing API to access MODIS MCD43A4.006 data.








Reply