GEE(Google Earth Engine)——Filtered Composite
Google Engine Earth GEE Composite
2023-09-11 14:15:12 时间
这个例子主要是讲解一下用美国犹他州和科罗拉多州进行区域筛选并且求当地影像的最大、最小、中位数以及平均数等等的运算,一起来看代码:
// Filter to only include images intersecting Colorado or Utah.
var polygon = ee.Geometry.Polygon({
coords: [[[-109.05, 37.0], [-102.05, 37.0], [-102.05, 41.0], // Colorado
[-109.05, 41.0], [-111.05, 41.0], [-111.05, 42.0], // Utah
[-114.05, 42.0], [-114.05, 37.0], [-109.05, 37.0]]],
geodesic: false
});
// Create a Landsat 7 composite for Spring of 2000, and filter by
// the bounds of the FeatureCollection.
var collection = ee.ImageCollection('LANDSAT/LE07/C01/T1')
.filterDate('2000-04-01', '2000-07-01')
.filterBounds(polygon);
// Compute the median in each band, in each pixel.自己可以去逐个均值、最大最小尝试!
var median = collection.max();
//.mean();
//.max();
//.median();
// Select the red, green and blue bands.
var result = median.select('B3', 'B2', 'B1');
Map.addLayer(result, {gain: [1.4, 1.4, 1.1]});
Map.setCenter(-110, 40, 5);
这张是.max()最大值效果,云层比较多
这张是.max()最大值效果,几乎无云
这张是.mean()效果
这张是.median()效果
根据自己的需要进行相应分析。
相关文章
- Google Megastore系统事务机制
- 博客园去google广告加载方法
- Android网络之数据解析----使用Google Gson解析Json数据
- Google Hack的一些整理
- Android依赖注入:Google Guice on Android的使用及相关资源
- Google Dremel 原理 - 如何能3秒分析1PB
- Google 和 Facebook 如何大规模处理 IT 事件管理 —— 2016 SRE 大会之我见
- 【错误记录】Android Studio 编译时 lint 检查报错 ( Error: Google Play requires that apps target API level 29 or )
- ReplaceGoogleCDN:将 Google CDN 更换国家
- Emacs进阶之使用Google翻译单词及句子(九)
- Google声明机器学习在自己定制的芯片比如普通的GPU和CPU快15到30倍
- Google Guava常用的代码示例
- 相似的RGB颜色——算法面试刷题3(for google),考察二分
- Google Gson API 介绍与使用