[GRASS-user] help with g.pnmcomp

Glynn Clements glynn at gclements.plus.com
Thu Nov 19 12:50:54 EST 2009


Alberto Pettazzi wrote:

> I want to write a script that creates an image of raster A superposed to 
> raster B. I want that raster A have an opacity of 0.6.
> I tried with the command:
> 
> g.pnmcomp input=raster_A,raster_B opacity=0.60,1 output=image_C 
> width=800 height=640
> but it appear the following error message:
> 
> ERROR: File <raster_A> not found
> 
> BUT I know there is.
> 
> So, what am I doing wrong? Do I have to do something more first ?

The inputs to g.pnmcomp have to be PPM image files, not GRASS maps. 

If you want to create a set of GRASS raster maps (red, green, blue)
from blending the colours of other raster maps, use the r.blend
script.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list