Skip to main content

Hi,


I’m trying to download specific Sentinel-5P and Sentinel-3 SLSTR products using sentinelhub.


I configured SHConfig to include sh_client_id, sh_client_secret, aws_access_key_id and aws_secret_access_key.


Using the relevant catalog, I’m able to retrieve the link from the Sentinel-3 file I want to download:


creodias_config = SHConfig()
creodias_config.sh_base_url = DataCollection.SENTINEL3_SLSTR.service_url
creodias_catalog = SentinelHubCatalog(config=creodias_config)

search_iterator = creodias_catalog.search(DataCollection.SENTINEL3_SLSTR,
time=time_interval,
bbox=BBox(bbox, crs=CRS.WGS84))

link = list(search_iterator)t0])"assets"]t"data"]t"href"]

_, _, bucket_name, url_key = link.split("/", 3)

s3_client = AwsDownloadClient.get_s3_client(creodias_config)
s3_client.download_file(bucket_name, url_key, "tmp")

However I’m getting the following error running the last line above:



ClientError: An error occurred (404) when calling the HeadObject operation: Not Found



Any tip on how to proceed from here would be greatly appreciated!

Hi,

Thanks for the question. Unfortunately, the function that you are using: aws.client.AwsDownloadClient() is only compatible to use with AWS S3 object storage, and not Creodias.

Of course you can download the products using Sentinel Hub via Process API. There are plenty of examples that should get you started. More specifically, you can read into the Sentinel-5P and Sentinel-3 SLSTR data collections.

If you have any other questions, don’t hesitate to ask 🙂

Hope that this helps you out.


Reply