[GRASS-user] help with g.pnmcomp

Hi everybody,

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 ?

thank you in advance
--

Alberto Pettazzi

MeteoGalicia - Departamento de Climatología y Observación

Consellería de Medio Ambiente, Territorio e Infraestruturas

Rúa de Roma, 6

15707 Santiago de Compostela. A Coruña

Teléfono: +34-881-999646

e-mail: alberto.pettazzi@meteogalicia.es <mailto:alberto.pettazzi@meteogalicia.es>

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@gclements.plus.com>