Hi, can anyone help me with the below code I am some wearied output..don' know what exactly to do... Also, can someone tell me that how to load an image collection like ImageCollection('?(asking about this)') and from the image collection how to know which image is where with name. I am working on linux and using python.
import ee ee.Initialize() """landsat5Toa = ee.ImageCollection('LC80150062013111LGN01').filterDate('2014-3-25').select('B[1]')""" img = ee.Image('LC80150062013111LGN01').select('B1').unitScale(0, 255) meanReducer = ee.Reducer.mean() sigmaReducer = ee.Reducer.stdDev() region = ee.Geometry.Rectangle(77.00133,-51.30404,74.69582,-41.38993 ) scale = 10000 mean = img.reduceRegion(meanReducer, region, scale) sigma = img.reduceRegion(sigmaReducer, region, scale) """mean = landsat5Toa.get('bands')""" def stretch(img, mean, sigma): return ee.Image(0).expression( '((img - mean) / (sigma * 3)) + 0.5', { 'img': img, 'mean': ee.Image.constant(mean), 'sigma': ee.Image.constant(sigma) }) print(mean.getInfo()) print(sigma.getInfo()) Output {u'B1': None} {u'B1': None} I dont know where I am haveing a problem. Thank You -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/babedb5f-ae58-4030-a710-3293b096d17e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.