1 #include<stdio.h>
2 #include<math.h>
3 #include<stdlib.h>
4 
5     /* Emissivity Generic mode (Reads directly from NDVI)
6      * Estimation in the 8-14 micrometers range for sparse canopy
7      */
emissivity_generic(double ndvi)8 double emissivity_generic(double ndvi)
9 {
10     double result;
11 
12     if (ndvi < 0.16)
13 	result = 1.0;
14     else if (ndvi > 0.74)
15 	result = 0.9;
16     else
17 	result = 1.009 + 0.047 * log(ndvi);
18     return result;
19 }
20 
21 
22