Closed neteler closed 7 years ago
Implemented in 3a66bea, @neteler could you test? (for me is working)
Maybe I messed up my installation but I get
` modis_download.py -e 2016-01-01 -f 2016-01-31 --product=MOD13C1.006 ndvi_MOD13C1.006/
Traceback (most recent call last):
File "/usr/bin/modis_download.py", line 30, in
Luca, thanks for the updates in current master. Now netrc is working fine. Closing.
In order to standardize the possibilities to authenticate against the NASA server (for those who do not want to use the password on command line), here the suggestion to use the "$HOME/.netrc" file which is also supported by wget and other FTP related download tools:
https://docs.python.org/2/library/netrc.html
Workflow: if username/password are not specified on command line/GUI, check for the netrc file and use it if present.