Quantcast
Channel: Question and Answer » gdal-merge
Viewing all articles
Browse latest Browse all 14

gdal_merge.py with single band raster

$
0
0

I’m trying to mosaic the True Marble world imagery 250M geotiffs using gdal_merge.py though one of them doesn’t have RGB bands like the rest and gdal_merge fails (same number of bands is listed as a requirement in it’s documentation). This is the error I get:

python.exe : ERROR 5: TrueMarble.250m.21600x21600.B4.tif: GDALDataset::GetRasterBand(2) - Illegal band #

This is the tile causing the issue: TrueMarble.250m. 21600x21600.B4

Should I use a different mosaic tool or should I try to coerce the tile into the format gdal_merge requires somehow?


Viewing all articles
Browse latest Browse all 14

Trending Articles