Monitoraggio Geodetico E Telerilevamento: Earthengine Exercizes
Monitoraggio Geodetico E Telerilevamento: Earthengine Exercizes
e Telerilevamento
EarthEngine exercizes
Carla Braitenberg
Dip. Matematica e Geoscienze
Universita di Trieste
[email protected]
Tel. 339 8290713 Tel. Assistente Dr. Nagy: 040 5582257
Please follow the next scripts
https://code.earthengine.google.com/
// Functions can be defined as a way to reuse code and make it easier to read
var my_hello_function = function(string) {
return 'Hello ' + string + '!';
};
print(my_hello_function('world'));
Script 3
var srtm =
ee.Image("USGS/SRTMGL1_003");
var slope = ee.Terrain.slope(srtm);
Map.addLayer(srtm, {min:0, max:3000},
'DEM');
Map.addLayer(slope, {min:0, max:10},
'slope');
Script 4
var landsat8 =
ee.ImageCollection("LANDSAT/LC8_L1T_TOA");
var images = landsat8.filterDate('2015-04-01',
'2015-04-06');
Per esercizio: variare i periodi temporali
Consultare
Map.addLayer(images);
l proprieta del database Landsat8
Variare le bande rappresentate
// Sentinel 2
var images = s2.select(['B2','B3','B4','B8'], ['B','G','R','N']);
var rgb_viz = {min:0, max:2000, bands:['R','G','B']};
Reference:
http://www.nature.com/ncomms/2015/150526/ncomm
s8104/pdf/ncomms8104.pdf
var landsat8 = ee.ImageCollection("LANDSAT/LC8_L1T_TOA"), geometry = /* color:
ffc82d */ee.Geometry.Point([42.136688232421875, 15.095991084505304]);
var rgb_viz = {min:0, max:0.3, bands:['R','G','B']};
var rgb_viz1 = {min:0, max:0.3, bands:['B5','B6','B7']};
images.filterDate('2013-11-1', '2013-12-30')
ages1.filterDate('2013-04-01', '2013-07-01');