Hi<br>I just did what you have told me and I got this error:<br><br>usage: Usage: gdal2tiles.py [options] input_file(s) [output]<br><br>gdal2tiles.py: error: Please convert this file to RGB/RGBA and run gdal2tiles on the result.<br>
<br>From paletted file you can create RGBA file (temp.vrt) by:<br>gdal_translate -of vrt -expand rgba /home/anrr/NDVI_rescaled2.tif temp.vrt<br><br>Any tips?<br><br><div class="gmail_quote">2011/10/28 Chaitanya kumar CH <span dir="ltr">&lt;<a href="mailto:chaitanya.ch@gmail.com">chaitanya.ch@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Kat,<br><br>Your input image is of 32-bit float type. Whereas KML tiles are supposed to be png format that should be viewable on browsers.<br>
The corrupted pixels are a result of clipping the float valued pixels to the range [0,255].<br>
<br>I suggest scaling the pixel values to byte type using the -scale option in gdal_translate.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Oct 28, 2011 at 7:34 PM, katrin eggert <span dir="ltr">&lt;<a href="mailto:katrineggert1980@gmail.com" target="_blank">katrineggert1980@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi<br>Gdalinfo reproject.tif<br><br>Driver: GTiff/GeoTIFF<br>Files: reprojected.tif<br>Size is 3700, 3500<br>

Coordinate System is:<br>GEOGCS[&quot;WGS 84&quot;,<br>    DATUM[&quot;WGS_1984&quot;,<br>        SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<br>
            AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>        AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>    PRIMEM[&quot;Greenwich&quot;,0],<br>    UNIT[&quot;degree&quot;,0.0174532925199433],<br>    AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>


Origin = (34.001088235352334,-19.571332568602660)<br>Pixel Size = (0.000204639356437,-0.000204639356437)<br>Metadata:<br>  AREA_OR_POINT=Area<br>Image Structure Metadata:<br>  INTERLEAVE=BAND<br>Corner Coordinates:<br>Upper Left  (  34.0010882, -19.5713326) ( 34d 0&#39; 3.92&quot;E, 19d34&#39;16.80&quot;S)<br>


Lower Left  (  34.0010882, -20.2998487) ( 34d 0&#39; 3.92&quot;E, 20d17&#39;59.46&quot;S)<br>Upper Right (  34.7715554, -19.5713326) ( 34d46&#39;17.60&quot;E, 19d34&#39;16.80&quot;S)<br>Lower Right (  34.7715554, -20.2998487) ( 34d46&#39;17.60&quot;E, 20d17&#39;59.46&quot;S)<br>


Center      (  34.3863218, -19.9355906) ( 34d23&#39;10.76&quot;E, 19d56&#39; 8.13&quot;S)<br>Band 1 Block=3765x1 Type=Float32, ColorInterp=Gray<br><br>and gdal2tile<br>&gt;python gdal2tiles.py -k /home/user/reprojected.tif  /home/user/gdal2tile<div>

<div></div><div><br>
<br><br><br><br><br><div class="gmail_quote">2011/10/28 Chaitanya kumar CH <span dir="ltr">&lt;<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">


Kat,<br><br>Please provide the whole command you used and the output of gdalinfo on your input file.<br><br><div class="gmail_quote"><div><div></div><div>On Fri, Oct 28, 2011 at 4:34 PM, katrin eggert <span dir="ltr">&lt;<a href="mailto:katrineggert1980@gmail.com" target="_blank">katrineggert1980@gmail.com</a>&gt;</span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>Hi<br>I have used gdal2tile.py like this<br>python gdal2tile.py -k [input] [output] and the tiels that are generated are nothing to do with the input image. It has changed the image by almost plotting random values pixels.<br>




Is there any limitation regarding inpu timage (e.g. it must be integer or something like this)?<br><br>Thanks<br>Kat<br>
<br></div></div><div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">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></div></blockquote></div><div><div></div><div><br><br clear="all"><br>-- <br>Best regards,<br>


Chaitanya kumar CH.<br>
<br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N 80.1426E<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N 80.1426E<br>
</div></div></blockquote></div><br>