Guest User

Untitled

a guest
May 27th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. var imageVisParam = {"opacity":1,"bands":["VH"],"min":-35,"max":-25.8484,"palette":["0d41ff"]},
  2. imageVisParam2 = {"opacity":1,"bands":["VV"],"min":-18.4784,"max":-18.2983,"palette":["50ff07"]};
  3.  
  4. var geometry = /* color: #d63000 */ee.Geometry.Point([12.05037, 55.6526]);
  5.  
  6. // Get the VH collection.
  7. var collectionVH = ee.ImageCollection('COPERNICUS/S1_GRD')
  8. .filter(ee.Filter.eq('instrumentMode', 'IW'))
  9. .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))
  10. .filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'))
  11. .select(['VH']);
  12.  
  13. // Get the VV collection.
  14. var collectionVV = ee.ImageCollection('COPERNICUS/S1_GRD')
  15. .filter(ee.Filter.eq('instrumentMode', 'IW'))
  16. .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))
  17. .filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'))
  18. .select(['VV']);
  19.  
  20. // Create a 2 band stack by selecting from different periods (months)
  21. var im1 =ee.Image(collectionVH.filterDate('2014-10-03', '2018-05-16').mean());
  22. var im2 =ee.Image(collectionVV.filterDate('2014-10-03', '2018-05-16').mean());
  23.  
  24. Map.centerObject(geometry, 13);
  25. //Map.addLayer(im1, {min: -35, max: -25.8484}, 'VH stack');
  26. //Map.addLayer(im2, {min: -18.4784, max: -18.2983}, 'VV stack');
  27. Map.addLayer(im1, imageVisParam, 'VH stack');
  28. Map.addLayer(im2, imageVisParam2, 'VV stack');
Add Comment
Please, Sign In to add comment