giswqs commited on
Commit
db73ee9
1 Parent(s): 417d2e8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -9
README.md CHANGED
@@ -8,13 +8,10 @@ pinned: false
8
  license: mit
9
  ---
10
 
11
- This is a templated Space for [Shiny for Python](https://shiny.rstudio.com/py/).
12
 
13
-
14
- To get started with a new app do the following:
15
-
16
- 1) Install Shiny with `pip install shiny`
17
- 2) Create a new app with `shiny create .`
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.