Mayon Volcano

Investigate a volcanic eruption from space

Use this news article and the code below to find the picture above.


// import image colletion
var s2 = ee.ImageCollection("COPERNICUS/S2").sort("CLOUD_COVERAGE_ASSESSMENT");

// define dates
var startDate = ee.Date.fromYMD(??);
var endDate = ee.Date.fromYMD(??);

// apply the filters
var s2 = s2.filterDate(startDate,endDate) // filter date
.filterBounds(geometry); // filter location

// get the first image
var img = ee.Image(s2.first());

// add image to map
Map.addLayer(img,{min:0,max:3000,bands:"B4,B3,B2"},"image");

link

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s