[GRASSLIST:271] Re: How can I change the 16bit TIFF file to 8bit TIFF file?

Glynn Clements glynn.clements at virgin.net
Sat May 31 00:05:19 EDT 2003


Markus Neteler wrote:

> > > > Please tell me, how can I change a 16 bit TIFF file to 8 bit TIFF file > when
> > > > I am trying to import a TIFF file into the GRASS using [ r.in.tiff] command?
> > > It may be better to use 'r.in.gdal' instead of 'r.in.tiff'.
> > 
> > Hi, Markus
> > Thank you very much for your advise.
> > I use photoshop to converted 16bit channel tiff to 8bit channel.
> > But the problem is, I am also tried 'r.in.gdal' with the converted 8bit
> > channel TIFF and the origin data of JPEG, and there was an error message
> > which says to '20020726.tif':
> >          < Warning 1: 20020726.tif: wrong data type 1 for "XMLPacket"; tag
> > ignored
> 
> XMLPacket? This looks very unusual for a TIFF file.

TIFF is infinitely extensible. Many TIFF images will contain
extensions, most of which will be ignored.

I doubt that either r.in.tiff or r.in.gdal would process the XMLPacket
record even if was correct, so the fact that it's broken won't matter.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list