地球引擎中级教程——python导出 ImageCollection导出图像集合
2023-09-11 14:15:11 时间
Earth Engine 用户最常问的问题之一是 -如何下载集合中的所有图像?Earth Engine API 允许您导出单个图像,但不能导出图像集合。像这样进行批量导出的推荐方法是使用 Python API 的ee.batch.Export
函数并使用 Python for 循环来迭代和导出每个图像。该ee.batch
模块还使您能够控制任务- 允许您自动导出。
首先初始化:
import ee
ee.Authenticate()
ee.Initialize()
geometry = ee.Geometry.Point([107.61303468448624, 12.130969369851766])
s2 = ee.ImageCollection("COPERNICUS/S2")
rgbVis = {
'min': 0.0,
'max': 3000,
'bands': ['B4', 'B3', 'B2'],
}
# 写一个去云函数并且选择需要计算的波段
def maskS2clouds(image):
qa = image.select('QA60')
cloudBitMask = 1 << 10
cirrusBitMask = 1 << 11
mask = qa.bitwiseAnd(cloudBitMask).eq(0).And(
qa.bitwiseAnd(cirrusBitMask).eq(0))
return image.updateMask(mask) \
.select("B.*") \
.copyProperties(ima
相关文章
- Python内置的数据类型--list,tuple
- How to run python interactive in current file's directory in Visual Studio Code? Python路径问题
- 【Python】ValueError: unsupported pickle protocol: 5解决方案/同一个项目 python环境尽量保持一致
- python是否存在某个字符串 效率最高_Python中判断子串存在的性能比较及分析总结...
- Python随机数生成方法
- Word处理控件Aspose.Words功能演示:使用 Python 创建 MS Word 文档
- 如何快速学习python,学好python?能通过Python赚到的第一笔钱,有哪些经验可以分享吗?
- 【Python】自动化抢勾,python软件安装教程
- python中__module__模块用法详解
- 每天一个python小知识——如何在Python 3中转换数据类型
- 【python实战】拒绝黄牛!我要用python原价冲周董演唱会~Python自动秒杀抢票脚本
- 70 python - 列表推导式
- 机器人系统设计与制作:Python语言实现2.2 机器人的传动装置
- 【python】+704个常用工具Python库
- Python编程-基础知识-python项目包和文件的管理以及如何引用相对路径的包和模块
- python 正则过滤中文、英文、数字、特殊字符demo
- 《Python和Pygame游戏开发指南》——2.3 建立一个Pygame程序
- 《趣学Python——教孩子学编程》——1.5 你学到了什么
- python 初始化init方法
- 《Python数据科学实践指南》——1.3 第一段Python程序
- 用Python编写博客导出工具
- 【Python】python扩展
- 使用Cython对python代码编译
- 【爬虫系列】【Python】python with as的用法
- Python 小案例实战 —— 简易银行存取款查询系统