Changes between Version 3 and Version 4 of UserDocs/GdalMerge


Ignore:
Timestamp:
Feb 20, 2008, 1:06:24 PM (16 years ago)
Author:
maphew
Comment:

How to merge 3 greyscale to a single RGB image

Legend:

Unmodified
Added
Removed
Modified
  • UserDocs/GdalMerge

    v3 v4  
    11= The `gdal_merge` utility =
    22  ''A python script to mosaic a set of images''
    3 
    43  ''The official documentation for gdal_merge is at http://www.gdal.org/gdal_merge.html.''
    5 
    64
    75gdal_merge.py uses nearest neighbour resampling.  If you want control over the resampling used, you should use gdalwarp instead.
    86
    9 == {Win} Are there other ways of getting a list of images into gdal_merge without putting them all on the command line? ==
     7== Are there other ways of getting a list of images into gdal_merge without putting them all on the command line? ==
    108
    119Method 1, use `--optfile`
     
    1513}}}
    1614
    17 Method 2, use a batch file wrapper, see attached.
     15Method 2, use a batch file wrapper, see attached. (for windows)
    1816
     17== Create an RGB image by merging 3 different greyscale bands ==
    1918
     19Conduct "merging by stacking" with the -separate flag.  So if you had three greyscale files that cover the same area and you do:
     20{{{
     21gdal_merge.py -separate 1.tif 2.tif 3.tif -o rgb.tif
     22}}}
     23
     24This maps 1.tif to red, 2.tif to green and 3.tif to blue.