daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var senti_same = ["20150803T170236_20160825T061733_T15SXD",
  2.                   "20150803T170231_20160520T064257_T15SXD"]
  3. var senti2 = ee.ImageCollection("COPERNICUS/S2").
  4.     filter(ee.Filter.inList("system:index", senti_same))
  5.  
  6. print(senti2)
  7.  
  8. var senti2_list = senti2.toList(2);
  9.  
  10. print(ee.Date(ee.Image(senti2_list.get(0)).get("system:time_start")))
  11. print(ee.Date(ee.Image(senti2_list.get(1)).get("system:time_start")))
  12.  
  13.  
  14. // map
  15. Map.setCenter(-91.1625, 39.2862, 9)
  16. Map.addLayer(ee.Image(senti2_list.get(0)),
  17.              {bands: ["B4", "B3", "B2"], max: 255*10}, "image 2")
  18. Map.addLayer(ee.Image(senti2_list.get(1)),
  19.              {bands: ["B4", "B3", "B2"], max: 255*10}, "image 2")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top