Learn R Programming

MODIS (version 1.2.11)

EarthdataLogin: Create File with Earthdata Login Credentials

Description

Create a hidden .netrc file with Earthdata Login credentials in your home directory. The information included therein is used to login to https://urs.earthdata.nasa.gov/ which is a mandatory requirement in order to download MODIS data from LP DAAC, LAADS and NSIDC (see also MODISoptions()). If the .netrc file already exist, the function can be used to re-enter credentials.

Usage

EarthdataLogin(usr = NULL, pwd = NULL, path = "~/.netrc")

Value

The Earthdata Login credentials as invisible list.

Arguments

usr, pwd

Login credentials as character. If NULL, username and password are read from the terminal.

path

Path to hidden .netrc file as character. The default should not be changed unless for a good reason.

Author

Matteo Mattiuzzi and Florian Detsch

See Also

Examples

Run this code
if (FALSE) {
EarthdataLogin()
}

Run the code above in your browser using DataLab