Open AsuquoOkon2022 opened 2 years ago
Hello Dr, please the orble is where you defined the geometry. find below a sample script . https://code.earthengine.google.com/9a87059ff1393fe6c080c77ee6bc2ff7
Hello Mr. Ernest, Please I want to download but there is error in my scrip.
I tried using a script. I received the following error message
ID: BQAGFTVSCRZWC2IGXFGEPAL4
Phase: Failed
Runtime: 16s (started 2022-09-23 17:05:59 +0100)
Attempted 1 time
Error: Image.setDefaultProjection, argument 'image': Invalid type. Expected type: Image
Hello Mr Ernest,
I scaled through it,
I copied the script for the training and changed some things and it works for me
great to hear that it worked 😃
Hello Everyone,
I was trying to run the following script for unsupervised classification and I got an error below. ### Line 8: filter is not defined
THE SCRIPT :
// Load a pre-computed Landsat composite for input. var L9Collection = ee.ImageCollection("LANDSAT/LC09/C02/T1_TOA");
var aoi = ee.FeatureCollection("users/asuquo4sure/Akamkpa");
// Define a region in which to generate a sample of the input. var geometry = ee.geometry; filter(ee.Filter.aoi(geometry));
// Display the sample region. Map.CenterObject(aoi, 9); Map.addLayer(ee.Image("LANDSAT/LC09/C02/T1_TOA").paint(region, 0, 2), {}, 'region');
// Make the training dataset. var training = input.sample({ region: region, scale: 30, numPixels: 5000 });
// Instantiate the clusterer and train it. var clusterer = ee.Clusterer.wekaKMeans(20).train(training);
// Cluster the input using the trained clusterer. var result = input.cluster(clusterer);
// Display the clusters with random colors. Map.addLayer(result.randomVisualizer(), {}, 'clusters');