pysepal.scripts.gee.init_ee#
- pysepal.scripts.gee.init_ee()[source]#
Initialize earth engine according using a token.
THe environment used to run the tests need to have a EARTHENGINE_TOKEN variable. The content of this variable must be the copy of a personal credential file that you can find on your local computer if you already run the earth engine command line tool. See the usage question for a github action example.
Windows:
C:\Users\USERNAME\\.config\\earthengine\\credentialsLinux:
/home/USERNAME/.config/earthengine/credentialsMacOS:
/Users/USERNAME/.config/earthengine/credentials
Note
As all init method of pytest-gee, this method will fallback to a regular
ee.Initialize()if the environment variable is not found e.g. on your local computer.- Return type:
None