zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Google Earth Engine(python)——NICFI 数据在GEE上进行展示

PythonGoogle数据 进行 Engine Earth 展示 GEE
2023-09-11 14:15:11 时间

使用 api 密钥,您可以获得 NICFI 行星数据并将其推送到地球引擎

请注意,当前脚本将数据复制到 Google Cloud Bucket,然后将其摄取到 Earth Engine。你可能会收取执行此操作。

import json
import requests
from pprint import pprint   
import os
import ee
 
 
ee.Initialize()
 
# insert your api key here
API = ''
url = 'https://api.planet.com/basemaps/v1/mosaics?api_key=' + API
mosaics = requests.get(url).json()['mosaics']
 
print(list(map(lambda m: m['first_acquired'],mosaics)))
 
# select the relevant