Zeel commited on
Commit
4616c18
1 Parent(s): c976d1f

add EE credentials

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -8,6 +8,11 @@ import pandas as pd
8
  from fastkml import kml
9
  import geojson
10
 
 
 
 
 
 
11
  ee.Initialize()
12
 
13
  def convert_3d_to_2d(geometry):
 
8
  from fastkml import kml
9
  import geojson
10
 
11
+ ee_credentials = os.environ.get("EE")
12
+ os.makedirs(os.path.expanduser("~/.config/earthengine/"), exist_ok=True)
13
+ with open(os.path.expanduser("~/.config/earthengine/credentials"), "w") as f:
14
+ f.write(ee_credentials)
15
+
16
  ee.Initialize()
17
 
18
  def convert_3d_to_2d(geometry):