compose.py
Go to the documentation of this file.
1 from terralib import raster, rp, core
2 bands = [2, 0]
3 rasters = []
4 rasters.append(raster.open(core.TERRALIB_DATA_DIR + '/geotiff/cbers_rgb342_crop2.tif'))
5 rasters.append(raster.open(core.TERRALIB_DATA_DIR + '/geotiff/cbers_rgb342_crop3.tif'))
6 rp.ComposeBands(rasters, bands, raster.NearestNeighbor, 'composed.tif')
7