假設您想知道 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