[GRASSLIST:2803] Re: r.in.tiff

Glynn Clements glynn.clements at virgin.net
Tue Dec 18 18:35:58 EST 2001

ulf at mail.zmt.uni-bremen.de wrote:

> Trying to import a greyscale TIF file (24 bit colour depth), I get the
> following message:
>  GRASS:~/daten/gis/grass > r.in.tiff input=BANDA1.TIF output=band1
>  ERROR: Only handle 1-channel gray scale or 3-channel color. Try -f switch.

That error indicates that the number of samples per pixel (i.e. 
channels) was something other than 1, 3 or 4, according to

> Anyway, r.in.tiff does not accept a "-f" switch (does it come from an
> internally used r.in.bin?).

No; that's just an error. I will remove the references to "-f".

> What are your recommendations in respect
> to this error? 

Convert the data to something which r.in.tiff supports.

> The TIF file originates from a satellit image in a particular format
> but was extracted using a utility coming with the image. In theory, I
> also could use the original files (1 byte per pixel, 3200 rows, 3520
> lines, 512 byte header). Do I have to cut the header of 512 byte with
> a self-made program to use r.in.bin,


> or is there another import
> facility I could use?

I don't think so.

Glynn Clements <glynn.clements at virgin.net>

More information about the grass-user mailing list