Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var S2 = ee.ImageCollection('COPERNICUS/S2_SR')
  2.  
  3. var L8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
  4.  
  5. var resample = function (image){
  6. return image.resample('bilinear').reproject({
  7. crs: L8.first().projection().crs(),
  8. scale: 20
  9. })}
  10.  
  11. var L8 = L8.map(resample)
  12.  
  13. var S2 = S2.map(resample)
  14.  
  15. var collection = L8.merge(S2)
  16. Map.addLayer(collection)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement