peps_download
peps_download copied to clipboard
Error running example code
Hello, I try to run the example code on a Windows 10 and I get the following error:
(py27) C:\Users\jhammar\Anaconda3\envs\py27>python ./peps_download.py -c S2ST -l 'Toulouse' -a peps.txt -d 2017-01-01 -f 2017-02-01
curl -k -o search.json https://peps.cnes.fr/resto/api/collections/S2ST/search.json?q='Toulouse'&startDate=2017-01-01&completionDate=2017-02-01&maxRecords=500
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 93589 0 93589 0 0 93402 0 --:--:-- 0:00:01 --:--:-- 93402
'startDate' is not recognized as an internal or external command,
operable program or batch file.
'completionDate' is not recognized as an internal or external command,
operable program or batch file.
'maxRecords' is not recognized as an internal or external command,
operable program or batch file.
(u'S2A_MSIL1C_20201017T105041_N0209_R051_T31TCJ_20201017T130423', u'disk')
(u'S2B_MSIL1C_20201101T105209_N0209_R051_T31TCJ_20201101T120122', u'disk')
(u'S2B_MSIL1C_20201211T105349_N0209_R051_T31TCJ_20201211T130154', u'disk')
...
##########################
20 products to download
##########################
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 93590 0 93590 0 0 124k 0 --:--:-- --:--:-- --:--:-- 124k
'startDate' is not recognized as an internal or external command,
operable program or batch file.
'completionDate' is not recognized as an internal or external command,
operable program or batch file.
'maxRecords' is not recognized as an internal or external command,
operable program or batch file.
(u'S2A_MSIL1C_20201017T105041_N0209_R051_T31TCJ_20201017T130423', u'disk')
(u'S2B_MSIL1C_20201101T105209_N0209_R051_T31TCJ_20201101T120122', u'disk')
(u'S2B_MSIL1C_20201211T105349_N0209_R051_T31TCJ_20201211T130154', u'disk')
...
Traceback (most recent call last):
File "./peps_download.py", line 393, in
does anyone have an idea what the problem might be? Very thankful for any tips :) Best,