Google Earth Engine(GEE)——sentinel-2 NDVI多时相影像展示

本次对于初学者来说需要了解几个函数:

filterBounds(geometry)
通过与几何体相交来过滤一个集合的快捷方式。集合中的项目如果没有与给定的几何体相交,就会被排除。

这等同于this.filter(ee.Filter.bounds(..))。

注意:提供一个大的或复杂的集合作为几何参数会导致性能不佳。整理集合的几何体并不能很好地扩展;使用最小的集合(或几何体)来实现所需的结果。

返回过滤后的集合。

参数。
this:collection(集合)。
集合实例。

geometry (ComputedObject|FeatureCollection|Geometry)。
要与之相交的几何体、特征或集合。

返回。集合

filterMetadata(name, operator, value)
已删除。使用 filter() 与 ee.Filter.eq(), ee.Filter.gte() 等。

通过元数据来过滤一个集合的快捷方式。这相当于this.filter(ee.Filter.metadata(..))。

返回过滤后的集合。

参数。
this:collection(集合)。
集合实例。

name(字符串)。
要过滤的属性名称。

operator (String):
比较运算符的名称。可能的值是。"equals", "less_than", "greater_than",

"not_equals", "not_less_than", "not_greater_than&

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/126555838