Login to services supported by getSpatialData once for the running session.

login_CopHub(username, password = NULL)

login_USGS(username, password = NULL)

Arguments

username

character, username to the corresponding service. For details on registration, see details.

password

character, password to the corresponding service.

Value

None.

Details

login_CopHub defines login credentials for the Copernicus Open Access Hub (register on https://scihub.copernicus.eu/)

login_USGS defines login credentials to the USGS EROS Registration System (ERS). Register on https://ers.cr.usgs.gov/register/.

Note

Login credentials will be saved and made available for all getSpatialData functions during the whole session. They will be erased when quitting the session. Alternatively, login credentials can be set individually with each get* function call.

See also

getSentinel_query getLandsat_query

Examples

## Define user credentials for the Copernicus Open Access Hub login_CopHub(username = "my_user_name", password = "my_password") ## Define USGS user credentials login_USGS(username = "my_user_name", password = "my_password")