Multispectral#

Note

All spectral indices output float32. Division by zero (e.g. NDVI where NIR + Red = 0) produces NaN or inf silently. Clean the result with xr.where(np.isfinite(result), result, np.nan) if needed.

Atmospherically Resistant Vegetation Index (ARVI)#

xrspatial.multispectral.arvi(nir_agg, ...[, ...])

Computes Atmospherically Resistant Vegetation Index.

Burn Area Index (BAI)#

xrspatial.multispectral.bai(red_agg, nir_agg)

Computes Burn Area Index (BAI).

Enhanced Built-Up and Bareness Index (EBBI)#

xrspatial.multispectral.ebbi(red_agg, ...[, ...])

Computes Enhanced Built-Up and Bareness Index (EBBI) which allows for easily distinguishing between built-up and bare land areas.

Enhanced Vegetation Index (EVI)#

xrspatial.multispectral.evi(nir_agg, ...[, ...])

Computes Enhanced Vegetation Index.

Green Chlorophyll Index (GCI)#

xrspatial.multispectral.gci(nir_agg, green_agg)

Computes Green Chlorophyll Index.

Modified Soil Adjusted Vegetation Index (MSAVI2)#

xrspatial.multispectral.msavi2(nir_agg, red_agg)

Computes Modified Soil Adjusted Vegetation Index (MSAVI2).

Normalized Burn Ratio (NBR)#

xrspatial.multispectral.nbr(nir_agg, swir2_agg)

Computes Normalized Burn Ratio.

Normalized Burn Ratio 2 (NBR2)#

xrspatial.multispectral.nbr2(swir1_agg, ...)

Computes Normalized Burn Ratio 2 "NBR2 modifies the Normalized Burn Ratio (NBR) to highlight water sensitivity in vegetation and may be useful in post-fire recovery studies." [1]_

Normalized Difference Built-up Index (NDBI)#

xrspatial.multispectral.ndbi(swir1_agg, nir_agg)

Computes Normalized Difference Built-up Index (NDBI).

Normalized Difference Moisture Index (NDMI)#

xrspatial.multispectral.ndmi(nir_agg, swir1_agg)

Computes Normalized Difference Moisture Index.

Normalized Difference Snow Index (NDSI)#

xrspatial.multispectral.ndsi(green_agg, ...)

Computes Normalized Difference Snow Index (NDSI).

Normalized Difference Water Index (NDWI)#

xrspatial.multispectral.ndwi(green_agg, nir_agg)

Computes Normalized Difference Water Index (NDWI).

Modified Normalized Difference Water Index (MNDWI)#

xrspatial.multispectral.mndwi(green_agg, ...)

Computes Modified Normalized Difference Water Index (MNDWI).

Normalized Difference Vegetation Index (NDVI)#

xrspatial.multispectral.ndvi(nir_agg, red_agg)

Computes Normalized Difference Vegetation Index (NDVI).

Optimized Soil Adjusted Vegetation Index (OSAVI)#

xrspatial.multispectral.osavi(nir_agg, red_agg)

Computes Optimized Soil Adjusted Vegetation Index (OSAVI).

Soil Adjusted Vegetation Index (SAVI)#

xrspatial.multispectral.savi(nir_agg, red_agg)

Computes Soil Adjusted Vegetation Index (SAVI).

Structure Insensitive Pigment Index (SIPI)#

xrspatial.multispectral.sipi(nir_agg, ...[, ...])

Computes Structure Insensitive Pigment Index which helpful in early disease detection in vegetation.

xrspatial.multispectral.true_color(r, g, b)

Create true color composite from a combination of red, green and blue bands satellite images.