Fire count amazonia

Plot a timeseries of fires using FIRMS

Use the code below or click here.


var amazonia = ee.FeatureCollection("users/servirmekong/Temp/amazonia")

var dataset = ee.ImageCollection('FIRMS').select('T21')

var years = ee.List.sequence(2001,2019)

var maps = ee.ImageCollection(years.map(function(year){
var startDate = ee.Date.fromYMD(year,1,1)
var endDate = ee.Date.fromYMD(year,12,31)
var myImg = dataset.filter(ee.Filter.date(startDate,endDate)).max().gt(100).set("system:time_start",startDate)
return myImg
}))

print(ui.Chart.image.seriesByRegion({imageCollection:maps,
regions:amazonia,
reducer:ee.Reducer.count(),
scale:1000}).setOptions({title: 'Fire count',
lineWidth: 1,
pointSize: 3}));

Map.addLayer(maps.max().clip(amazonia), {min:0,max:1,palette:['red']}, 'Fires');

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 )

Facebook photo

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

Connecting to %s