Recently I'm working on a project that needs me to calculate the LST of an image. I clipped the raster image by mask and there are many data with an invalid value (pixels outside the mask region) after calculating LST in ENVI software. How can I eliminate those data from the calculation process? Because I need to calculate the max and min as well as average LST value of the whole image, and the areas with the invalid value are just so disturbing.
Any ideas and suggestions about how to solve this problem? Thanks in advance!
See examples here (your expression would be like "Value > 0", or InRas1 > 0):
OutRas = Con(InRas1, 40, 30, "Value >= 2")