Closed ircwaves closed 6 years ago
Equations are encoded here: https://github.com/Applied-GeoSolutions/gippy/blob/4359158e15f6d3d35976cd78cde8beda2627ef16/GIP/GeoAlgorithms.cpp#L793-L802 :
...
} else if (prodname == "ndti") {
cimgout = (swir1-swir2).div(swir1+swir2);
} else if (prodname == "crc") {
cimgout = (swir1-blue).div(swir2+blue);
} else if (prodname == "crcm") {
cimgout = (swir1-green).div(swir2+green);
} else if (prodname == "isti") {
cimgout = swir2.div(swir1);
} else if (prodname == "sti") {
cimgout = swir1.div(swir2);
...
For consistency with landsat and sentinel2, these should be added as separate products (not in a multi-band TIF):
Below is a snippet showing how to generate an NDVI GeoImage using gippy, but given that Rob is MODIS driver maintainer, I think it'd be fine to use the non-gippy style.