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