Google Earth Engine(GEE)——制作一个美观的散点图

这里我们使用散点图,通过建立函数来构建一个散点图。

 

 函数:

ui.Chart.feature.groups(features, xProperty, yProperty, seriesProperty)

Generates a Chart from a set of features. Plots the value of a given property across groups of features. Features with the same value of groupProperty will be grouped and plotted as a single series.

  • X-axis = xProperty values.

  • Y-axis = yProperty values.

  • Series = Feature groups, by seriesProperty.

Returns a chart.

Arguments:

features (Feature|FeatureCollection|List<Feature>):

The features to include in the chart.

xProperty (String):

Property to be used as the label for each feature on the x-axis.

yProperty (String):

Property to be plotted on the y-axis.

seriesProperty (String):

Property used to determine feature groups. Features with the same value of groupProperty will be plotted as a single series on the chart.

Returns: ui.Chart

cluster(clusterer, outputName)

Applies a clusterer to an image. Returns a new image with a single band containing values from 0 to N, indicating the cluster each pixel is assigned to.

Arguments:

this:image (Image):

The image to cluster. Must contain all the bands in the clusterer's schema.

clusterer (Clusterer):

The clusterer to use.

outputName (String, default: "cluster"):

The name of the output band.

Returns: Image

CLOSE

 

ee.Clusterer.wekaKMeans(nClusters, initcanopiesmaxCandidatesperiodicPruningminDensityt1t2distanceFunctionmaxIterationspreserveOrderfastseed)

Cluster data using the k means algorithm. Can use either the Euclidean distance (default) or the Manhattan distance. If the Manhattan distance is used, then centroids are computed as the component-wise median rather than mean. For more information see:

D. Arthur, S. Vassilvitskii: k-means++: the advantages of careful seeding. In: Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms, 1027-1035, 2007.

Arguments:

nClusters (Integer):

Number of clusters.

init (Integer, default: 0):

Initialization method to use.0 = random, 1 = k-means++, 2 = canopy, 3 = farthest first.

canopies (Boolean, default: false):

Use canopies to reduce the number of distance calculations.

maxCandidates (Integer, default: 100):

Maximum number of candidate canopies to retain in memory at any one time when using canopy clustering. T2 distance plus, data characteristics, will determine how many candidate canopies are formed before periodic and final pruning are performed, which might result in exceess memory consumption. This setting avoids large numbers of candidate canopies consuming memory.

periodicPruning (Integer, default: 10000):

How often to prune low density canopies when using canopy clustering.

minDensity (Integer, defaul

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

此星光明

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值