Skip to content

Latest commit

 

History

History
 
 

urban_classified

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Urban Classified Script

Show script or download{:target="_blank"} it.

{% highlight javascript %} {% include_relative script.js %} {% endhighlight %}

General description of the script

The script uses the NDWI, NDVI, BarrenSoil{:target="_blank"} and B11 to differntiate between water, built up areas, barren areas and vegetated areas. In the script, water is colored blue, vegetation green, built up areas white, barren soil brown and all other pixels dark green. All pixels with NDWI values greater than 0.2 are considered to be water; all other pixels with B11 values greater than 0.8 OR NDVI values lower than 0.1 to be built up; all other pixels with NDVI values greater than 0.2 to be vegetation (returnint NDVI in the green channel) and all other pixels to be barren soil or else (returnint BareSoil index in the red channel and dark green in the green channel.). The script does a good job (although not perfect) at separating barren soil from buildings, which is often an issuewith urban scripts. It is thus most valuable in arid regions, where most other visualizations fail to distinguish buildings from the surrounding sand or soil. The script fails at differentiating between buildings and vegetation in dense alternating between houses and yards in for example, suburbs of Baltimore.

Examples

Tamara

Urban Classified script (right) in Tamara, Morocco. This example showcases the usefulness of the script in differentiating bare ground from buildings.

Tamara

Baltimore

Urban Classified script (right) in Baltimore, USA. This example showcases the shortcomings of the script in differentiating buildings from vegetation in suburbs of Baltimore.

Baltimore

Taizhou

Urban Classified script (right) in Taizhou, China.

Taizhou

Author of the script

Monja Šebela