假设您想知道 Sentinel-2 和 Landsat 8 SWIR1 反射率之间的线性关系。在此示例中,使用格式化为点的特征集合的随机像素样本来计算关系。生成像素对的散点图以及最佳拟合的最小二乘线。
函数:
reduceColumns(reducer, selectors, weightSelectors)
将 reducer 应用于集合的每个元素,使用给定的选择器来确定输入。 返回结果字典,以输出名称为键。
Apply a reducer to each element of a collection, using the given selectors to determine the inputs.
Returns a dictionary of results, keyed with the output names.
Arguments:
this:collection (FeatureCollection):
The collection to aggregate over.
reducer (Reducer):
The reducer to apply.
selectors (List):
A selector for each input of the reducer.
weightSelectors (List, default: null):
A selector for each weighted input of the reducer.
Returns: Dictionary
ui.Chart.array.values(array, axis, xL