本案例是一个综合案例:
在NDVI时间序列上应用脚本使用OEEL库,在图像集上应用Savitzky-Golay滤波器。
需要一个有规律的时间序列,没有任何遮挡的像素。所以这个脚本将线性插值来创建有规则间隔的图像,形成有规则间隔的图像,并从原始时间序列中提取。
- 第1步:准备一个NDVI时间序列
- 第2步:创建一个空的时间序列,其中包含n天的图像。
- 第3步:使用连接来寻找前后的图像。
- 第4步:应用线性插值来填充每个图像
- 第5步:应用Savitzky-Golay滤波器。
值得注意的是本次调用了一个库中的函数:
oeel.ImageCollection.SavatskyGolayFilter(...)
oeel.ImageCollection.SavatskyGolayFilter(collection, filter, distanceFunction, degree, bandOfInterest, EstimationCollection)
Arguments:
collection*
ee.ImageCollectionThe image collection on which to perform the filteringfilter*
ee.FilterThe moving windows filterdistanceFunction*
functionA lambda function that specifies how to compu