davemlz / eemont

A python package that extends Google Earth Engine.
https://eemont.readthedocs.io/
MIT License
417 stars 69 forks source link

What visParams should i use for al lthe indices available in spectral indices? #70

Closed kaushikCanada closed 2 years ago

kaushikCanada commented 2 years ago

There are lots of indices in https://github.com/awesome-spectral-indices/awesome-spectral-indices. When i try to view them it requires visParams parameter and the colour palette. Can you put a guide or soemthing to give the proper visparams for viewing on map? For example to view BLFEI: Built-Up Land Features Extraction Index. what should be my visParams?

davemlz commented 2 years ago

Hi @kaushikCanada!

That depends entirely on the index. For any index it is recommended to look into the reference paper and check how it works. In the case of the BLFEI, the formula is a normalized difference, so the valid range is [-1,1]. Now, the values inside this range may vary according to the land cover you're in. But, as mentioned before, it is recommended to look into the index's paper.

Jus as general vis options, you can use {min:-1,max:1} or {min:0,max:1} for normalized differences (palette is black and white by default in GEE, this depends more on your taste, just make sure that you use divergent or sequetial palettes accordingly). Usually, most indices have values greater than 0 for the target (e.g. NDVI). NDVI goes from -1 to 1 but vegetation is always positive. I have never tried BLFEI, but it would probably follow the same principle here.

Cheers!

David