GIving gdalwarp a try now and slapping my forehead for not thinking to try a .vrt. Thanks for the nudge Jeff.
On Fri, Oct 7, 2011 at 12:25 PM, Jeff Ruby <jgr...@gmail.com> wrote: > You might try building a vrt file first and then converting that. > > gdalbuildvrt merge.vrt *.tif > > -or just merge the original IMGs- > > gdalbuildvrt merge.vrt *.img > > -then- > > gdal_translate <your options> merge.vrt output.tif > > > > Message: 4 > > Date: Fri, 7 Oct 2011 11:42:52 -0400 > > From: "Jay L." <jzl5...@psu.edu> > > Subject: [gdal-dev] Fwd: gdal_merge.py - Missing images - sans > > attachment > > To: gdal-dev@lists.osgeo.org > > Message-ID: > > < > ca+bfmpsvpqkpsdowvuvng8vr9okkphbrakvzncq3frbbugj...@mail.gmail.com> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Sent with an example attachment, which is awaiting approval. Here is the > > mail without attachement. > > > > > > I have 8 large Gtiffs which I am trying to mosaic. Tiffs were created > from > > .IMG files downloaded from PDS. I converted to tif using: > > > > gdal_translate -of GTiff -scale -co "TILED=YES" -co > "COMPRESS=JPEG" > > <input> > > > > The format conversion is working without a problem. Gdalinfo is > reporting > > the correct NDV and projection information. Viewing each tif also > returns > > the expected raster iamge. So far, so good. > > > > > > I then use: > > > > gdal_merge.py -o wacmos.tif -of GTiff -v --optfile tiff_list.txt > > > > > > Six of the eight tiles are added to the mosaic correctly. Varying the > order > > in the list, or using *.tif does not change the output. It is always the > > same two images which are missing. Watching the verbose output, it looks > > like the images are mosaicing correctly. What would cause these images > to > > be merged as totally black tiles? > > > > > > Thanks for any insight, > > Jay > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev