运行 Google EarthEngine API 在 Google Colaboratory notebook 上
Running Google EarthEngine API on Google Colaboratory notebook
我想在 Google Colaboratory 笔记本中安装和使用 Google EarthEngine 的 Python API。我还没有深入了解这一点。在我将以下代码键入单元格后,
!pip install earthengine-api
!earthengine authenticate
earthengine-api 及其依赖项已安装,但身份验证要求我登录我的帐户并输入授权码(然后,大概会在本地存储 OAuth 凭据)并启用此功能API 随后通过 ee.Initialize()。
我有两个问题:
- 在没有命令行交互的 Colaboratory 界面中,我无法输入 EarthEngine 需要验证的授权码。有什么解决方法吗?
- 如果我完全解决了上述问题,OAuth 凭据将存储在哪里?这是按会话还是按用户?在后续会话中或在不同的笔记本中,此笔记本或其他笔记本是否可以访问它?
我想在 Google Colaboratory 笔记本中安装和使用 Google EarthEngine 的 Python API。我还没有深入了解这一点。在我将以下代码键入单元格后,
!pip install earthengine-api
!earthengine authenticate
earthengine-api 及其依赖项已安装,但身份验证要求我登录我的帐户并输入授权码(然后,大概会在本地存储 OAuth 凭据)并启用此功能API 随后通过 ee.Initialize()。
我有两个问题:
- 在没有命令行交互的 Colaboratory 界面中,我无法输入 EarthEngine 需要验证的授权码。有什么解决方法吗?
- 如果我完全解决了上述问题,OAuth 凭据将存储在哪里?这是按会话还是按用户?在后续会话中或在不同的笔记本中,此笔记本或其他笔记本是否可以访问它?