Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -8,13 +8,10 @@ pinned: false
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
11 |
-
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
3) Then run the app with `shiny run --reload`
|
19 |
-
|
20 |
-
To learn more about this framework please see the [Documentation](https://shiny.rstudio.com/py/docs/overview.html).
|
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
11 |
+
## How to authenticate Earth Engine
|
12 |
|
13 |
+
1. Follow the instructions [here](https://developers.google.com/earth-engine/guides/service_account#use-a-service-account-with-a-private-key) to create an Earth Engine service account.
|
14 |
+
2. Create a private key for the service account
|
15 |
+
3. Download the JSON key file
|
16 |
+
4. Open the JSON key file and copy the entire content of the file and set it as the value for the environment vaiable `EARTHENGINE_TOKEN`
|
17 |
+
5. Use `geemap.ee_initialize(service_account=True)` in your code to authenticate EE. Do NOT use `ee.Authenticate()` or `ee.Initialize()` in your code.
|
|
|
|
|
|