You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to run a script for downloading data. I have stored my credentials in environment variable and they are used, but MODIS always asks if I want to change them:
> MODIS::EarthdataLogin(usr = Sys.getenv("EARTHDATA_USER"), pwd = Sys.getenv("EARTHDATA_PASS"))
Earthdata credentials seem to be present, do you want to change them? (y/n)
Would you welcome a PR adding an option ask with default TRUE to the function EarthdataLogin(..) login to disable the question?
In addition:
An option with current default credentialsPath = path.expand(~/.nrc) would give users more control, in cases where the user home is not a suitable storage location.
In the same style als MODISoptions(..), a save = TRUE parameter could even be added to disable creating the .netrc file.
Happy to prepare a PR if you're available for review (and maybe even a minor version release?)
The text was updated successfully, but these errors were encountered:
I'd be happy to receive and review a PR from you, the suggested changes seem perfectly reasonable. EarthdataLogin() emerged as kind of a hotfix when login-restricted data download was first introduced, which I guess leaves quite a lot of space for improvement.
I would like to run a script for downloading data. I have stored my credentials in environment variable and they are used, but MODIS always asks if I want to change them:
Would you welcome a PR adding an option
ask
with defaultTRUE
to the functionEarthdataLogin(..)
login to disable the question?In addition:
credentialsPath = path.expand(~/.nrc)
would give users more control, in cases where the user home is not a suitable storage location.MODISoptions(..)
, asave = TRUE
parameter could even be added to disable creating the.netrc
file.Happy to prepare a PR if you're available for review (and maybe even a minor version release?)
The text was updated successfully, but these errors were encountered: