Hi
It is because the script is returning the visualisation instead of the LST values.
let viz = ColorGradientVisualizer.createRedTemperature(minC, maxC);
return viz.process(outLST)
The above ColorGradientVisualizer.createRedTemperature
is taken from here which visaulises LST as red gradient colors.
Best Regards
Hi
Thank you for your response. Does it mean that I have to change the return? What would be the correct code? Sorry for asking again!
Kind regards
Hi
Yes, you need to modify the code to obtain the result you’re interested in. This script could actually be a really good starting point. Here’s my suggested steps:
- Figure out how LST is calculated in this script. The code used to calculate LST is
LSTi=(b10BTi/(1+(((bCent*b10BTi)/rho)*Math.log(LSEi))))
- The calculation in this script contains several constants, e.g.,
NDVIs
for bare soil, NDVIv
for full vegetation, C
for surface roughness, etc. These constants can be area specific, so you may want to figure out the proper values for your area of interest. - Try to apply you calculation in the evalscript by modifying this example. The only difference is that the example calculates and returns NDVI, but you want to calculate and return LST.
Best Regards