How to make online products on satellite images: Setup your color scheme of NDVI


How to make online products on satellite images: Setup your color scheme of NDVI

How to make online products on satellite images: Setup your color scheme of NDVI

You can setup your color scheme absolutely flexibely by playing with a parameter &color=0.03:fcfefcff; .... This parameter consists of pairs of numbers like 0.03:fcfefcff separated by semicolons where:

0.03 - NDVI value from 0 to 1

fcfefcff - HTML colors

Query template

http://sat.owm.io/sql?select=b5,b4&where=day=2016-10-01&op=ndvi&polygon={"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-121.32,37.65],[-121.32,37.72],[-121.11,37.72],
[-121.11,37.65],[-121.32,37.65]]]}}
&color=0:04123cff;0.03:fcfefcff;0.06:c4baa4ff;0.1:b4966cff;0.13:a4824cff;0.16:94723cff;0.2:7c9e2cff;
0.25:94b614ff;0.3:74aa04ff;0.35:64a204ff;0.4:549604ff;0.45:3c8604ff;0.5:1c7204ff;
0.6:046204ff;0.7:044a04ff;0.8:043a04ff;0.9:042a04ff;1:041204ff;&APPID={APIKEY}

Result:

...

Query template

http://sat.owm.io/sql?select=b5,b4&where=day=2016-10-01&op=ndvi&polygon={"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-121.32,37.65],[-121.32,37.72],[-121.11,37.72],
[-121.11,37.65],[-121.32,37.65]]]}}
&color=0:d93f2aff;0.05:df452cff;0.1:e66c2eff;0.15:e4622dff;0.2:f2b331ff;
 0.25:f7d932ff;0.3:eff630ff;0.35:b0f321ff;0.4:80f116ff;0.45:76f013ff;
 0.5:74ed17ff;0.55:6cde28ff;0.6:50ab56ff;0.65:317b83ff;0.7:0648b3ff;
 0.75:1f46f0ff;0.8:2d45e9ff;0.85:533dcaff;0.9:783bb1ff;1:a342aeff;&APPID={APIKEY} 

Result:

...

<<< Back to news list<<<