Google Earth Engine – Estimating Land Surface Temperature Using GEET

google-earth-enginelandsat 8

I am using google earth engine toolbox to estimate land surface temp for landsat 8 imagery. I have been able to run all the necessary calculation without error but when I add the band as a layer all that is rendered is a solid blue box. I am having trouble determining if it is something that I am doing or an issue with the library itself. I have looked through the code and the calculations seem to be correct.

var geet = require('users/elacerda/geet:geet'); 

var image2 = ee.Image(
  l82.filterBounds(point)
    .filterDate('2018-07-01', '2018-7-31')
    .sort('CLOUD_COVER')
    .first()
);
var new_toa_radiance = geet.toa_radiance(image2, 10);
var brightness_temp_img = geet.brightness_temp_l8c(new_toa_radiance, true);
var l8_ndvi = geet.ndvi_l8(brightness_temp_img); 
var img_pv = geet.prop_veg(l8_ndvi);
var lse = geet.surface_emissivity(img_pv);
var surfTemp_img = geet.surface_temperature_oli(lse);
var im = surfTemp_img.select("LST");
print(im);
Map.addLayer(im, {min: 7000, max: 8000, palette: ['blue', 'green', 'red']});

Best Answer

To solve this problem I needed to add a stretch to the image layer using the layer settings.

Update

Response from Libraries Author
"The code is right. Make sure your are using the Landsat RAW images! And that after you plot the image you need to set the range of visualization manualy to "Stretch 100%" or something like that. You can do that in the "Layers" button on the map visualization window. If you export the result as an imagem (tif) and load into QGIS you dont need to configure the range, the software will do that for you. :)"

Screen shot of how to apply a stretch

enter image description here