[GRASSLIST:1081] Re: problems with r.in.ppm, r.in.tiff

Bernhard Reiter bernhard at intevation.de
Fri Nov 3 12:29:36 EST 2000

On Thu, Oct 19, 2000 at 02:49:59PM -0700, an lu wrote:
> Hi GrassUser,
> i am a beginner of Grass.i try to import a ppm or tiff
> picture into Grass using r.in.tiff or r.in.ppm.
> i drawed the picture using XFig, and  exported it as
> *.ppm. then i used  r.in.ppm,   i got an error
> information: unknown ppm magic number.

pnm is a group of file formats. As for ppm I only now
that there are two versions: text and binary encoding.
The manual pages of the pnm tools will answer your questions about the

Check the header of the two images and try to convert your ppm image
into the other ppm format. 

I think some pnm tools or convert from the ImageMagick kit can do this.
> i try to import the ppm picture which is exported from
> grass  back to Grass again, and it works. 
> from the rmanual, i read that r.in.ppm can convert ppm
> raster file into raster file. i guess maybe i need to
> convert a pure ppm file into ppm raster first, could
> you tell me how to do that? if that is not the reason,
> what i need to do?
> Thanks.
> --lu
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.yahoo.com/

Professional Service around Free Software                (intevation.net)  
The FreeGIS Project				            (freegis.org)
Association for a Free Informational Infrastructure            (ffii.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 236 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20001103/96bb54c8/attachment.bin

More information about the grass-user mailing list