Skip to content

Instantly share code, notes, and snippets.

@azvoleff
Created August 17, 2016 14:43
Show Gist options
  • Select an option

  • Save azvoleff/af0a103d65ce7bccd700c3815f6920e9 to your computer and use it in GitHub Desktop.

Select an option

Save azvoleff/af0a103d65ce7bccd700c3815f6920e9 to your computer and use it in GitHub Desktop.
var square = ee.Kernel.square({radius: 70, units:'meters'});
var img2 = LS217072.addBands(LS217072.select(['B2','B3','B4'])
.multiply(255).byte().entropy(square));
var addpixid = function(image){
var ID = image.select(['B1'],['ID']).add(image.select('B4'))
.add(image.select('B2')).add(image.select('B3'));
return image.addBands(ID);
};
img2=addpixid(img2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment