Spaces:
Sleeping
Sleeping
Commit
·
0400d63
1
Parent(s):
dbffabb
update EE authentication
Browse files
app.py
CHANGED
@@ -14,12 +14,14 @@ import fiona
|
|
14 |
# Enable fiona driver
|
15 |
fiona.drvsupport.supported_drivers['LIBKML'] = 'rw'
|
16 |
|
17 |
-
#Intialize EE library
|
18 |
-
#
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
23 |
ee.Initialize()
|
24 |
|
25 |
# Functions
|
|
|
14 |
# Enable fiona driver
|
15 |
fiona.drvsupport.supported_drivers['LIBKML'] = 'rw'
|
16 |
|
17 |
+
#Intialize EE library
|
18 |
+
# ee_credentials = os.environ.get("EE")
|
19 |
+
# os.makedirs(os.path.expanduser("~/.config/earthengine/"), exist_ok=True)
|
20 |
+
# with open(os.path.expanduser("~/.config/earthengine/credentials"), "w") as f:
|
21 |
+
# f.write(ee_credentials)
|
22 |
+
# ee.Initialize()
|
23 |
+
|
24 |
+
ee.Authenticate()
|
25 |
ee.Initialize()
|
26 |
|
27 |
# Functions
|