<div dir="ltr">I mispoke.<div><br></div><div style>rgb2pct.py will work but only on RGB images -- no colortables. When I use it on a RGBA image, the transparency is no longer preservered.</div><div style><br></div><div style>
Isaac</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 16, 2013 at 3:17 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mercredi 16 janvier 2013 20:58:51, Isaac Gerg a écrit :<br>
<div class="im">> Even,<br>
> Thanks for your quick response.<br>
><br>
> I believe I understand that three options you presented me. I believe<br>
> option 1 is viable but like you mentioned will only work with GDAL<br>
> software. Options 2 and 3 are good but, especially with option 3, the<br>
> resulting tifs are too large.<br>
><br>
> I have 20 .tif which are 3MB a piece. Together, they form trackline of a<br>
> sensor data. I would like to load this information into a WMS server for<br>
> display in Google Earth or Arc Explorer. Currently I am using Geoserver.<br>
><br>
> Anyways, I must mosaic these 20 .tifs together. These tifs are indexed<br>
> images with a colormap. Here is my current algorithm:<br>
> 1. Expand images to RGBA using gdal_translate<br>
> 2. Rotate images north up using gdal_warp<br>
> 3. Mosiac images using gdal_merge with -co COMPRESS=LZW -co PREDICTOR=1 -ot<br>
> Byte -co TILED=YES -n 0<br>
> At this point, I now have an RGBA image that is huge (300MB). With all the<br>
> tile collections I must process, 300MB is too big. I was thinking the<br>
> total would be around (20 tiles)*(3MB per tile) = 60MB. 300 is simply<br>
> unacceptable.<br>
> 4. Run the gdal_retile to make image pyramid. This will yeild a size that<br>
> is roughly twice that of my mosiac.<br>
><br>
> Is there any way I can make the RGBA file in step 3 smaller in size<br>
> specifically to match the theoretical size of 60MB?<br>
<br>
</div>You can try rgb2pct.py on the mosaic<br>
<br>
Or you can also try to gdal_translate -co COMPRESS=LZW on the mosaic, since<br>
I'm not sure how efficient the compression done by gdal_merge will be.<br>
</blockquote></div><br></div>