How can I extract the Values for the Cluster-Means in Google Earth Engine?

// Define each water-body as a own region
var region = water
// training region is the full image
var training = ms1_new.sample({
  region: region,
  scale: 10,
  numPixels: 5000
// train cluster on image
var clusterer = ee.Clusterer.wekaKMeans(3).train(training);
// cluster the complete image
var result = ms1_new.cluster(clusterer);

I tried to use print(result) but it did not work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.