<div>and the eror info in the FW Shell is:</div>
<div>&nbsp;</div>
<div>Traceback (most recent call last):</div>
<div>File &quot;C:\programme\FWTOOL~1.0B2\bin\pct2rgb.py&quot;, line 46, in import Numeric</div>
<div>ImportError: No module named Numeric</div>
<div>&nbsp;</div>
<div>thanks<br>&nbsp;</div>
<div><span class="gmail_quote">On 6/6/06, <b class="gmail_sendername">Zhonghai Wang</b> &lt;<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>Hi Travis,</div>
<div>&nbsp;</div>
<div>I think you are right, better I do the merging in RGB model, but it's strange that I can not use the pct2rgb.py commnd, and the rgb2pct.py&nbsp;command is no problem.&nbsp;Do you have any ideas why this happened?</div></div>
<div><span class="sg">
<div>&nbsp;</div>
<div>zhonghai&nbsp;<br><br>&nbsp;</div></span></div>
<div><span class="e" id="q_10ba9512ee82462c_2">
<div><span class="gmail_quote">On 6/6/06, <b class="gmail_sendername">Travis Kirstine GIS Tech</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:tkirstine@jdbarnes.com" target="_blank">tkirstine@jdbarnes.com
</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>
<div><font face="Arial" color="#0000ff" size="2"><span>Zhonghai,</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span>My guess is that both the gdal_warp and gdal_merge utilities use the pusedo colour table of the first image and apply that table to all other images, I would try converting the gif to RGB geotiffs using the pct2rgb gdal utility then go through your processing steps(warping and&nbsp;merging)&nbsp;then convert the images back to 8bit GIFs.&nbsp; I hope this helps 
</span></font></div></div>
<div><span>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>Travis</span></font></div></span></div>
<div><span>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> UMN MapServer Users List [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank">
 MAPSERVER-USERS@LISTS.UMN.EDU</a>]<b>On Behalf Of </b>Zhonghai Wang<br><b>Sent:</b> Tuesday, June 06, 2006 6:35 AM<br><b>To:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank">
MAPSERVER-USERS@LISTS.UMN.EDU</a><br><b>Subject:</b> [UMN_MAPSERVER-USERS] raster image preprocessing problem.<br><br></font></div>
<div>Hi there,</div>
<div>&nbsp;</div>
<div>I have a couple of GIFs with wld files, but the original Projection is not the one I want, I tried to use the Proj4 to reproject them on-the-fly, but it takes really long to perform the map request, therefore I tried to&nbsp;preprocess the images with GDAL tools, but I've got some problems here: 
</div>
<div>&nbsp;</div>
<div>1. problem with gdalwarp: trying to mosaic&nbsp;the images into one output file, but only the first image has the correct image color, the other images are rendered with strange colors, is this a common problem if using gdalwarp to mosaic images? 
</div>
<div>&nbsp;</div>
<div>2.problem with gdal_merge.py: after trying the gdalwarp command, I've tried the gdal_merge.py command to merge all the images together with the -pct parameter, unfortunately, the merged image is the same as the first try. is it possible to merge images using the command with the correct color table? 
</div>
<div>&nbsp;</div>
<div>BTW: I can not use the gdal_translate command, since there are gaps between the reprojected images.</div>
<div>&nbsp;</div>
<div>thanks for your info.</div>
<div>&nbsp;</div>
<div>zhonghai</div></blockquote></span></div>
<div></div></div></blockquote></div><br></span></div></blockquote></div><br>