Geoscience Reference
In-Depth Information
.
use an output data type UInt16. The offset of 0
5 is used to round the floating point
to the nearest integer. The result is shown in Fig. 11.1 . The pseudocolor image and
the legend are created in QGIS.
nir
red
NDVI
=
(11.1)
nir
+
red
gdal_calc.py -A 2013_IEEE_GRSS_DF_Contest_CASI.tif --A_band 68
-B 2013_IEEE_GRSS_DF_Contest_CASI.tif --B_band 116
--outfile=2013_IEEE_GRSS_DF_Contest_NDVI_gdal. tif
--calc="(B>A)*(0.5+10000.0*(B-A)/(B+A))" --NoDataValue=0
--type=UInt16
NDVI
0
0.125
0.250
0.375
> 0.5
0
500
1000 m
Fig. 11.1 NDVI image created with gdal_calc.py (color map created with QGIS)
 
Search WWH ::




Custom Search