geetools.AuthenticateAccessor.new_user#
- static geetools.AuthenticateAccessor.new_user(name='', credential_pathname='')#
Authenticate the user and save the credentials in a specific folder.
Equivalent to ee.Authenticate but where the registered user will not be the default one (the one you get when running ee.initialize())
- Parameters:
name (str) – The name of the user. If not set, it will reauthenticate default.
credential_pathname (str) – The path to the folder where the credentials are stored. If not set, it uses the default path
- Return type:
None
Example
import ee import geetools # cannot be displayed in the documentation as the creation # of a new user requires user interaction # geetools.User.create("secondary") # geetools.User.set("secondary") # ee.Number(1).getInfo()