Forum

Message Boards Message Boards

Back

Problem with get url of S-2 image

Toggle
Problem with get url of S-2 image
finder api sentinel-2
Answer
5 January 2022 10:08
I've got a code to download Sentinel-2 data, based on https://creodias.eu/forum/-/message_boards/message/154531#_19_message_151414
It works fine, but I found an exception.
Normally I'm looking for url like that:
1
download_url = feature['properties']['services']['download']['url']
But for image S2B_MSIL2A_20190113T095349_N0211_R079_T34UEC_20190113T123335.SAFE
1
feature['properties']['services']
is empty
Request for this image: https://finder.creodias.eu/resto/api/collections/Sentinel2/search.json?maxRecords=10&productIdentifier=%25S2B_MSIL2A_20190113T095349_N0211_R079_T34UEC_20190113T123335%25&sortParam=startDate&sortOrder=descending&status=all&dataset=ESA-DATASET

Downloading manually from web portal finder.creodias.eu works.


My question is: 
Is it any other (stable) way to get url?

BTW This image is probably useless for me becaues of cloud coverage, but I expect that this problem occurs in other cases.
0 (0 Votes)

RE: Problem with get url of S-2 image
Answer
11 January 2022 5:02 as a reply to Marcin Rybicki.
Hi,

I confirm that feature['properties']['services'] should not be empty.
We have passed the problem to our data specialists and we will come back to you as soon as we get the explanation of this.

Regards,
Marcin
0 (0 Votes)

RE: Problem with get url of S-2 image
Answer
14 January 2022 10:53 as a reply to Marcin Rybicki.
Hi,

You could not get the feature['properties']['services'] of the product S2B_MSIL2A_20190113T095349_N0211_R079_T34UEC_20190113T123335 bacause the product is not available in the EOCLOUD repository. It has the status "ORDERABLE".

Regards,
Marcin
0 (0 Votes)