accounts
- setup(account)
Asks, saves and tests a username/password combination for account.
- Parameters
account ({"NASA" | "TERRA" | "ECMWF" | "COPERNICUS_DATA_SPACE" | "EARTHEXPLORER" | "VIIRSL1"}) – Which un/pw combination to store.
- get(account)
Loads a required username/password.
- Parameters
account ({"NASA" | "TERRA" | "ECMWF" | "COPERNICUS_DATA_SPACE" | "EARTHEXPLORER" | "VIIRSL1}) – Which un/pw combination to load.
- create_key()
Generates a key file.
- terra_account(user_pw)
Check if the given or stored TERA username/password combination is correct. Accounts can be created on https://viewer.terrascope.be.
- Parameters
user_pw (tuple, optional) – (“username”, “password”) to check, if None will try to load the password from the keychain, by default None.
- Returns
True if the password works, otherwise False.
- Return type
bool
- nasa_account(user_pw)
Check if the given or stored NASA username/password combination is correct. Accounts can be created on https://urs.earthdata.nasa.gov/users/new.
- Parameters
user_pw (tuple, optional) – (“username”, “password”) to check, if None will try to load the password from the keychain, by default None.
- Returns
True if the password works, otherwise False.
- Return type
bool
- viirs_account(user_pw)
Check if the given or stored VIIRSL1 token is correct. Accounts can be created on https://ladsweb.modaps.eosdis.nasa.gov/. Then in the top right, press “Login” and “generate token”.
- Parameters
user_pw (tuple, optional) – (“”, “token”) to check, if None will try to load the password from the keychain, by default None.
- Returns
True if the password works, otherwise False.
- Return type
bool
- earthexplorer_account(user_pw)
Check if the given or stored WAPOR token is correct. Accounts can be created on https://wapor.apps.fao.org/home/WAPOR_2/1.
- Parameters
user_pw (tuple, optional) – (“”, “token”) to check, if None will try to load the password from the keychain, by default None.
- Returns
True if the password works, otherwise False.
- Return type
bool
- copernicus_data_space_account(user_pw)
Check if the given or stored COPERNICUS_DATA_SPACE account is correct. Accounts can be created on https://dataspace.copernicus.eu
- Parameters
user_pw (tuple) – (“username”, “password”) to check.
- Returns
First item is True if the password works, otherwise False, seconds item is a error message.
- Return type
tuple
- ecmwf_account(user_pw)
Check if the given or stored ECMWF key is correct. Accounts can be created on https://cds.climate.copernicus.eu/#!/home.
- Parameters
user_pw (tuple) – (“username”, “password”) to check.
- Returns
First item is True if the password works, otherwise False, seconds item is a error message.
- Return type
tuple