olivierhagolle / theia_download

To download products provided by Theia land data center : https://theia.cnes.fr
46 stars 23 forks source link

Non XS Venus data can't be downloaded separately from XS data #17

Open SebastienPeillet opened 4 years ago

SebastienPeillet commented 4 years ago

Hi @olivierhagolle !

It's not really an issue for theia_download but I guess you would know to who address the information.

I discover XS Venµs data few days ago. I don't know when it began but I noticed that XS and not XS has mixed in the late 2019 period and that theia_download script does not handle sensorMode parameter to request XS or not XS data inpendently.

I wanted to add it to the script but for non XS data, sensorMode parameter is a null value. And null value can't be requested. So it's not possible to download only non XS data until these data get an sensorMode value.


As exemple, result of some request :

https://theia.cnes.fr/atdistrib/resto2/api/collections/VENUS/search.json?box=1.3722281593765346%2C43.66741153617093%2C1.5393877358233006%2C43.50009432459971&startDate=2019-12-01&completionDate=2020-01-20&maxRecords=500&processingLevel=LEVEL2A&sensorMode=XS

with sensorMode=XS => 8 results, all XS


https://theia.cnes.fr/atdistrib/resto2/api/collections/VENUS/search.json?box=1.3722281593765346%2C43.66741153617093%2C1.5393877358233006%2C43.50009432459971&startDate=2019-12-01&completionDate=2020-01-20&maxRecords=500&processingLevel=LEVEL2A&sensorMode=

with sensorMode= => 17 results, mixed XS and not XS

like if there is no sensorMode parameters

I also tried with %00 value (empty string encoding in url) without more success.