Login before querying data servers

odr_login(credentials, source, verbose = TRUE)

Arguments

credentials

vector string of length 2 with username and password. optional.

source

source. See details

verbose

boolean. optional. Verbose (default TRUE)

Value

None.

Details

Current options for parameter "source" are :

  • "earthdata" : to query and download MODIS, VNP, SMAP, GPM collections

Create an account to Earthdata here : https://urs.earthdata.nasa.gov/.

Examples

# odr_login to Earthdata
username <- Sys.getenv("earthdata_un") password <- Sys.getenv("earthdata_pw") odr_login(credentials = c(username,password),source = "earthdata")
#> Checking credentials... #> Successfull login to earthdata