UjjwalKGupta commited on
Commit
0400d63
·
1 Parent(s): dbffabb

update EE authentication

Browse files
Files changed (1) hide show
  1. app.py +8 -6
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
- # Error in EE Authentication
19
- ee_credentials = os.environ.get("EE")
20
- os.makedirs(os.path.expanduser("~/.config/earthengine/"), exist_ok=True)
21
- with open(os.path.expanduser("~/.config/earthengine/credentials"), "w") as f:
22
- f.write(ee_credentials)
 
 
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