Google Earth Engine(GEE)——利用python进行时序LandTrendr分析
2023-09-11 14:15:11 时间
本次教程主要是利用python进行LandTrendr时序分析,产看影像的变化,颜色的变化显示变化的程度,为变化的影像为灰色的影像。
代码:
from google.colab import auth
auth.authenticate_user()
import google
SCOPES = ['https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/earthengine']
CREDENTIALS, project_id = google.auth.default(default_scopes=SCOPES)
import ee
ee.Initialize(CREDENTIALS, project='my-project (edit this string)')
import folium
import pprint
# 按年份和月份过滤的MODIS集合,选择非QA波段。
col = (ee.ImageCollection('MODIS/061/MOD13Q1')
.filterDate('2000', '2021')
.filter(ee.Filter.calendarRange(7, 8, 'month'))
.select('NDVI|EVI|sur_refl.*'))
# 为集合中的所有图像添加年份属性。
col = col.map(lambda img: img.set('year', img.date().get('year')))
# 将同一年的所有图像加入到列表中。
distinctCol = col.distinct(['year'])
joinFilter = ee.Filter.equals(**{&
相关文章
- python应用-n颗骰子的和出现的次数
- 简介Python中用于处理字符串的center()方法
- python 判断一个对象是可迭代对象
- python: 安装DeOldify库:黑白图片上色(Python 3.7.15)
- 【Python五篇慢慢弹(3)】函数修行知python
- python修改镜像源
- 【python cookbook】【数据结构与算法】17.从字典中提取子集
- Atitit.http代理的实现 代码java php c# python
- Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Menu的Command)
- 已解决2. Set PROTOCOL_BUPFERS_PYTHON_iMPLEMENTATION=python (but this will use pure-Python parsing and w
- 〖Python WEB 自动化测试实战篇③〗- python-selenium环境配置搭建
- python 写入格式化的json
- 提升 Python 程序性能的7个习惯
- Python: yield, python 实现tail -f
- python中的NotImplementedError
- python基础===Python 代码优化常见技巧
- python apply()函数
- 【Python】Visual Studio Code 安装&&使用 hello python~~~~
- 第23讲:Python使用美元符作为占位符对字符串进行格式化
- 《Fluent Python》读书笔记-1.1 Python数据模型