Hi Solimyr, could you run a "gdalinfo -stats" on your input GTiff to let us better understand the characteristics of the image to be converted?
Regards, Daniele On Thu, Jun 30, 2011 at 3:31 PM, Gianni Cristian <giannicrist...@msn.com>wrote: > Hi guys, > I need to convert an image from GTiff to ENVI format. I want also that my > image is in Grayscale. The GTiff image have just one band. If I do with > ENVI, I save the file as Image, ENVI 8-bit (I call this results fromENVI). > When I try to do the same with gdal_translate I do: > > gdal_translate -of ENVI -ot Byte gtiffimg.tif fromgdal.raw > > But the result is a lot different from the 'fromENVI' image. So I have > tried > to do: > > > gdal_translate -of ENVI -ot Byte -b 1 -expand gray gtiffimg.tif > fromgdal.raw > > and > > > gdal_translate -of ENVI -ot Byte -expand gray gtiffimg.tif fromgdal.raw > > But I get the following error: > > Input file size is 1828, 1646 > Error : band 1 has no color table > > I wrong something or is gdal fault? > > Thx > > Solimyr > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/GDAL-TRANSLATE-Gray-scale-tp6533237p6533237.html > Sent from the GDAL - Dev mailing list archive at Nabble.com. > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- ------------------------------------------------------- Ing. Daniele Romagnoli GeoSolutions S.A.S. Software Engineer Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://it.linkedin.com/in/danieleromagnoli -------------------------------------------------------
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev