Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var imageVisParam = {"opacity":1,"bands":["VH"],"min":-35,"max":-25.8484,"palette":["0d41ff"]},
- imageVisParam2 = {"opacity":1,"bands":["VV"],"min":-18.4784,"max":-18.2983,"palette":["50ff07"]};
- var geometry = /* color: #d63000 */ee.Geometry.Point([12.05037, 55.6526]);
- // Get the VH collection.
- var collectionVH = ee.ImageCollection('COPERNICUS/S1_GRD')
- .filter(ee.Filter.eq('instrumentMode', 'IW'))
- .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))
- .filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'))
- .select(['VH']);
- // Get the VV collection.
- var collectionVV = ee.ImageCollection('COPERNICUS/S1_GRD')
- .filter(ee.Filter.eq('instrumentMode', 'IW'))
- .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))
- .filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'))
- .select(['VV']);
- // Create a 2 band stack by selecting from different periods (months)
- var im1 =ee.Image(collectionVH.filterDate('2014-10-03', '2018-05-16').mean());
- var im2 =ee.Image(collectionVV.filterDate('2014-10-03', '2018-05-16').mean());
- Map.centerObject(geometry, 13);
- //Map.addLayer(im1, {min: -35, max: -25.8484}, 'VH stack');
- //Map.addLayer(im2, {min: -18.4784, max: -18.2983}, 'VV stack');
- Map.addLayer(im1, imageVisParam, 'VH stack');
- Map.addLayer(im2, imageVisParam2, 'VV stack');
Add Comment
Please, Sign In to add comment