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

Cannot use the peps_download.py on Windows #15

Open
NaroaIriarte opened this issue May 28, 2018 · 7 comments
Open

Cannot use the peps_download.py on Windows #15

NaroaIriarte opened this issue May 28, 2018 · 7 comments

Comments

@NaroaIriarte
Copy link

Hi Olivier,
Mi colleagues and I are willing to use the code peps_download.py on windows but we get errors with the parameters. On linux it works fine, but we need to use it on windows as well.
The parameters in which we get errors are "lat" "lon" and dates.

@olivierhagolle
Copy link
Owner

olivierhagolle commented May 28, 2018

Hi,
I am sorry, it is very difficult to help you, as I have no windows computer, and the information you provide with the issue is not detailed
Best regards,
Olivier

@NaroaIriarte
Copy link
Author

Thank you Olivier.
Will you be able to help us if we provide you better information about the errors we get?

@olivierhagolle
Copy link
Owner

Maybe ;)
Olivier

@NaroaIriarte
Copy link
Author

:D Ok, so... here you have the command we execute and below the error we get.

D:\SENTINEL>python C:\CODIGOS\peps_download\peps_download.py -c S1 --lon
-1.6 --
lat 42.5 -a C:\CODIGOS\peps_download\peps.txt -d 2015-11-01 -f 2015-12-01
curl -k -o search.json
https://peps.cnes.fr/resto/api/collections/S1/search.json
?lat=42.500000&lon=-1.600000&startDate=2015-11-01&completionDate=2015-12-01&
maxRecords=500

% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed
100 68 100 68 0 0 106 0 --:--:-- --:--:-- --:--:--
106

"lon" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"startDate" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"completionDate" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"maxRecords" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
Value for "lat" must be numeric

The errors are in spanish but the traduction to english would be something like "it is not recognized as an internal or external command, program or executable batch file"
Thank you very much for your help and time.
Regards,
Naroa.

@olivierhagolle
Copy link
Owner

Hola Naroa,
puedo entender castellano,
pienso que es una cuestión de añadir "'" alrededor de la recuesta para que funcione;

Quizás así, Pero no puedo probarlo

curl -k -o search.json
"https://peps.cnes.fr/resto/api/collections/S1/search.json
?lat=42.500000&lon=-1.600000&startDate=2015-11-01&completionDate=2015-12-01&
maxRecords=500"

@li5811100
Copy link

Hi Olivier, it is very nice of you for sharing the code here
I got a problem in using the code. The download does not begin each time I run the code as follows

python peps_download.py -c S2 -l 'Toulouse' -a peps.txt -d 2015-11-01 -f 2015-12-01
curl -k -o search.json https://peps.cnes.fr/resto/api/collections/S2/search.json?q='Toulouse'\&startDate=2015-11-01\&completionDate=2015-12-01\&maxRecords=500
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 34616 0 34616 0 0 12123 0 --:--:-- 0:00:02 --:--:-- 12120
(u'S2A_OPER_PRD_MSIL1C_PDMC_20151202T224525_R008_V20151130T105641_20151130T105641', u'unknown')
(u'S2A_OPER_PRD_MSIL1C_PDMC_20160715T112823_R051_V20151113T105818_20151113T105818', u'unknown')
##########################
2 products to download
##########################
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 34616 0 34616 0 0 12243 0 --:--:-- 0:00:02 --:--:-- 12240
(u'S2A_OPER_PRD_MSIL1C_PDMC_20151202T224525_R008_V20151130T105641_20151130T105641', u'unknown')
(u'S2A_OPER_PRD_MSIL1C_PDMC_20160715T112823_R051_V20151113T105818_20151113T105818', u'unknown')

Process finished with exit code 0

thank you for help in advance

@olivierhagolle
Copy link
Owner

Hi,
Peps is having some issues these days, the status "unknown" should not exist.
I hope they will solve it soon.
Olivier

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

3 participants