SkillAgentSearch skills...

Ndvi

A python function that uses GDAL and numpy to perform an NDVI calculation given a NIR band and a colour band

Install / Use

/learn @iboates/Ndvi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ndvi

A python function that uses GDAL and numpy to perform an NDVI calculation given a NIR band and a colour band.

User can specify output as a 32-bit floating point image or a 16-bit unsigned integer image.

Comes with a small clipping of a LANDSAT-8 surface reflectance image of Halifax, Nova Scotia, Canada for demo purposes. You should be able to demo it right out of the box provided the images are in the same directory as the script itself.

Requires osgeo installation of GDAL and numpy (https://trac.osgeo.org/gdal/wiki/GdalOgrInPython)

More info on NDVI: https://en.wikipedia.org/wiki/Normalized_Difference_Vegetation_Index

View on GitHub
GitHub Stars30
CategoryDevelopment
Updated4d ago
Forks15

Languages

Python

Security Score

75/100

Audited on Mar 27, 2026

No findings