MODIS icon indicating copy to clipboard operation
MODIS copied to clipboard

`checkEarthdataLogin` called with wrong parameters from `MODISoptions`

Open barryrowlingson opened this issue 2 years ago • 1 comments

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...

barryrowlingson avatar Jul 03 '23 15:07 barryrowlingson

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.

fdetsch avatar Aug 09 '23 18:08 fdetsch