Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negatives latitudes #32

Open
lorelos opened this issue Dec 2, 2019 · 2 comments
Open

Negatives latitudes #32

lorelos opened this issue Dec 2, 2019 · 2 comments

Comments

@lorelos
Copy link

lorelos commented Dec 2, 2019

Hello,
I don't know how to download negative latitudes.
Is there a spécial syntax?

Here is my log:
oo@VM-XUBUNTU:/mnt/g_verbatim/peps_download-master$ python peps_download.py -a peps.txt -lon 167.2 --lat -22.2 -d 2019-06-17 -f 2019-09-07 -c S2ST
curl -k -o search.json https://peps.cnes.fr/resto/api/collections/S2ST/search.json?q=on\&startDate=2019-06-17\&completionDate=2019-09-07\&maxRecords=500
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 942 100 942 0 0 596 0 0:00:01 0:00:01 --:--:-- 596

no product corresponds to selection criteria

Best regard,
Aurélien

@olivierhagolle
Copy link
Owner

use --lon, instead of -lon ;)
For me, it works:

 >python peps_download.py -a peps.txt --lon 167.2 --lat -22.2 -d 2019-06-17 -f 2019-09-07 -c S2ST

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  191k    0  191k    0     0   610k      0 --:--:-- --:--:-- --:--:--  612k
(u'S2A_MSIL1C_20190625T230031_N0207_R058_T58KGA_20190626T000406', u'tape')
(u'S2A_MSIL1C_20190715T230031_N0208_R058_T58KGA_20190716T001416', u'tape')
(u'S2A_MSIL1C_20190708T230911_N0208_R101_T58KGA_20190709T001336', u'tape')
(u'S2A_MSIL1C_20190618T230911_N0207_R101_T58KGA_20190619T003214', u'tape')
(u'S2A_MSIL1C_20190804T230031_N0208_R058_T58KGA_20190805T000821', u'tape')
(u'S2A_MSIL1C_20190718T230911_N0208_R101_T58KGA_20190719T002000', u'tape')
(u'S2B_MSIL2A_20190630T230029_N0212_R058_T58KGA_20190701T003926', u'tape')
...

@lorelos
Copy link
Author

lorelos commented Dec 3, 2019

Hi,
Now it works! I'm confused, sorry for that.
Regards,
Aurélien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants