[gdal-dev] Re: gdal_merge.py - Missing images
Jay L.
jzl5325 at psu.edu
Fri Oct 7 12:27:04 EDT 2011
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 <jgr007 at 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." <jzl5325 at psu.edu>
> > Subject: [gdal-dev] Fwd: gdal_merge.py - Missing images - sans
> > attachment
> > To: gdal-dev at lists.osgeo.org
> > Message-ID:
> > <
> CA+bfmPsVpqKPSdOWvuvnG8vR9okKpHBRAKvznCQ3fRbBuGjDVQ at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111007/0610dfbd/attachment.html
More information about the gdal-dev
mailing list