filmov
tv
Calculate Land Surface Temperature Using Google Earth Engine || Time Series Analysis || MODIS || LST
Показать описание
// Import country boundaries feature collection.
var dataset = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017');
// Apply filter where country name equals Pakistan.
// Print new "PakistanBorder" object and explorer features and properties.
// There should only be one feature representing Pakistan.
print(PakistanBorder);
// Add pakistan outline to the Map as a layer.
// Import LST image collection.
var modis = ee.ImageCollection('MODIS/MOD11A2');
// Define a date range of interest; here, a start date is defined and the end
// date is determined by advancing 1 year from the start date.
var start = ee.Date('2015-01-01');
// Filter the LST collection to include only images intersecting the desired
// date range.
// Select only the 1km day LST data band.
// Scale to Kelvin and convert to Celsius, set image acquisition time.
return img
.multiply(0.02)
.subtract(273.15)
.copyProperties(img, ['system:time_start']);
});
// Chart time series of LST for pakistan in 2015.
imageCollection: modLSTc,
region: PakistanBorder,
scale: 1000,
xProperty: 'system:time_start'})
.setOptions({
title: 'LST 2015 Time Series',
vAxis: {title: 'LST Celsius'}});
print(ts1);
// Calculate 8-day mean temperature for Pakistan in 2015.
// Add clipped image layer to the map.
min: 10, max: 45,
palette: ['blue', 'limegreen', 'yellow', 'darkorange', 'red']},
'Mean temperature, 2015');
var dataset = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017');
// Apply filter where country name equals Pakistan.
// Print new "PakistanBorder" object and explorer features and properties.
// There should only be one feature representing Pakistan.
print(PakistanBorder);
// Add pakistan outline to the Map as a layer.
// Import LST image collection.
var modis = ee.ImageCollection('MODIS/MOD11A2');
// Define a date range of interest; here, a start date is defined and the end
// date is determined by advancing 1 year from the start date.
var start = ee.Date('2015-01-01');
// Filter the LST collection to include only images intersecting the desired
// date range.
// Select only the 1km day LST data band.
// Scale to Kelvin and convert to Celsius, set image acquisition time.
return img
.multiply(0.02)
.subtract(273.15)
.copyProperties(img, ['system:time_start']);
});
// Chart time series of LST for pakistan in 2015.
imageCollection: modLSTc,
region: PakistanBorder,
scale: 1000,
xProperty: 'system:time_start'})
.setOptions({
title: 'LST 2015 Time Series',
vAxis: {title: 'LST Celsius'}});
print(ts1);
// Calculate 8-day mean temperature for Pakistan in 2015.
// Add clipped image layer to the map.
min: 10, max: 45,
palette: ['blue', 'limegreen', 'yellow', 'darkorange', 'red']},
'Mean temperature, 2015');
Комментарии