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

checkEarthdataLogin called with wrong parameters from MODISoptions #136

Open
barryrowlingson opened this issue Jul 3, 2023 · 1 comment

Comments

@barryrowlingson
Copy link

barryrowlingson commented Jul 3, 2023

When MODISoptions calla checkEarthdataLogin to test login/connectivity, it seems to pass the dlmethod and the MODISserverOrder:

    if ((is.null(opt$EarthdataLogin) || isFALSE(opt$EarthdataLogin)) && 
        check_earthdata_login) {
        opt$EarthdataLogin = checkEarthdataLogin(opt$dlmethod, 
            opt$MODISserverOrder)
    }

But the second argument to checkEarthdataLogin looks like it should be the .netrc file with the credentials in:

> MODIS:::checkEarthdataLogin
function (method = "auto", path = "~/.netrc") 
{[etc]

Found this while chasing up a StackOverflow Q: https://gis.stackexchange.com/questions/462743/earthdata-log-in-error-for-downloading-modis-data-r-language - I'm not sure it answers their question though...

@fdetsch
Copy link
Owner

fdetsch commented Aug 9, 2023

Thanks – also for the efforts on SO! I believe I fixed that in #135 that was supposed to close #134 a while ago (see the changes in MODISoptions.R), but never got to actually merging it into main 🤦‍♂️ I'll try to bring this PR to a close (hopefully) soon.

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