2. Time-series analysis
Objective
Cloud masking
Landsat
Simple cloud score
///////////////////////////////////////////////////
// 1. LOAD AND FILTER LANDSAT 8 COLLECTION
var L8_toa_ic = ee.ImageCollection("LANDSAT/LC08/C02/T1_TOA")
.filterDate('2018-06-01', '2019-06-01')
.filterBounds(ee.Geometry.Point(23.6, 37.9)) // Athens, Greece
.filter('CLOUD_COVER < 70')
.filter('CLOUD_COVER > 20'); // Keep moderately cloudy images
// Select one image from the collection for analysis
var image = ee.Image(L8_toa_ic.first());
print('Selected image:', image);
///////////////////////////////////////////////////
// 2. VISUALIZE ORIGINAL IMAGE (with clouds)
var vizParams = {
bands: ['B7', 'B5', 'B3'], // False-color (SWIR-NIR-Green)
min: 0.05,
max: 0.3
};
Map.setOptions('SATELLITE');
Map.centerObject(image, 9);
Map.addLayer(image, vizParams, 'Original (Cloudy) Image');
///////////////////////////////////////////////////
// 3. APPLY CLOUD MASK (Simple Cloud Score)
var scored = ee.Algorithms.Landsat.simpleCloudScore(image);
var cloudMask = scored.select('cloud').lte(20); // Keep only low-cloud pixels
var imageMasked = image.updateMask(cloudMask);
Map.addLayer(imageMasked, vizParams, 'Masked Image (clouds removed)');
Map.addLayer(scored.select('cloud'), {min: 0, max: 100, palette: ['white', 'blue']},
'Cloud Score (0–100)', false);Fmask
MODIS
Playtime
Sentinel-2
Cloud probability
Cloud Score+
Cloud displacement
Data availability


Playtime
Forest monitoring
Vegetation indices

Trend analysis

Climatologies

Thumbnails

Playtime



Assignment
Last updated