Get cloud cover for all images

Make a chart with cloud cover in each image.

Step 1: Add a marker to the map

Step 2: Import the USGS Landsat 8 TOA Reflectance (Orthorectified) with Fmask

Step 3: copy the code below and run the script.

var getCloudScores = function(img){
//Get the cloud cover
var value = ee.Image(img).get('CLOUD_COVER');
return ee.Feature(null, {'score': value});
};
var l8toa = landsat.filterBounds(geometry);

var results = l8toa.map(getCloudScores);
print(Chart.feature.byFeature(results));

Have a look here.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s