centreborelli / tsd

Time Series Downloader for satellite images
GNU Affero General Public License v3.0
40 stars 19 forks source link

Download images process without failure but no images in output folder #3

Closed mazzma12 closed 7 years ago

mazzma12 commented 7 years ago

I ran in bash

python get_planet.py --lon 49.492821524600004 --lat 25.796464470700002

or even

python get_planet.py --lon 49.492821524600004 --lat 25.796464470700002 -s 2017-01-01 -o .

the output gave

search_planet: removed 143 results not covering the aoi
Found 107 images
Downloading 107 crops... 107 / 107

But nothing in the current folder . I checked my PL_API_KEY is loaded, and @glostis tried same command he had nothing. Perhaps a Planet server issue, but it already occurred yesterday night I have no clue :/

carlodef commented 7 years ago

It probably means that the Planet account associated to your PL_API_KEY doesn't have the permissions to download these images. I'll update the code to print a message when this happens. Currently when you don't have permissions to get an image, the download function just returns silently.

glostis commented 7 years ago

Indeed, it seems to come from a Planet permission issue. The point requested by @mazzma12 actually falls into the polygon that we gave them, but it seems that we don't have access to these images anymore (it says "Upgrade plan" on their web viewer).

We will check with Planet why they changed our permissions.

screen shot 2017-09-06 at 12 00 16

screen shot 2017-09-06 at 12 01 37

carlodef commented 7 years ago

Thanks @glostis. With the updated code of commit 82f949, TSD now prints a warning to inform you about missing permissions.