Thanks, Len.
Usually is very interesting to know that there's more than one way to do
something. I will have in mind your approach.
Cheers
________________________________
José A. Ruiz Arias
Departamento de Física
Escuela Politécnica Superior
Edificio A-3, Campus Lagunillas
Universidad de Jaén
23071 Jaén Spain
Tlf. +34 953212474
Email: jararias@ujaen.es
_____________________________________
-----Mensaje original-----
De: Len Coop [mailto:coopl@science.oregonstate.edu]
Enviado el: jueves, 22 de marzo de 2007 19:35
Para: José Antonio Ruiz Arias
Asunto: Re: [GRASS-user] Adding a semi-transparent layerJose,
Now that you have a solution I send you a very simple one using ppmmix:#!/bin/sh
# example use of ppmmix - blend climate data layer (based on humidity)
with shade relief
main=SNC_V2
sublayer=dem90m.nw.sh.bal
opacity=0.65
r.out.ppm $main
r.out.ppm $sublayer
/usr/bin/ppmmix $opacity $main.ppm $sublayer.ppm | pnmtopng >
$main.mix.pngorig layer is at http://pnwpest.org/snc/SNC_V2.png
blended layer is at http://pnwpest.org/snc/SNC_V2.mix.pngCheers,
LenJosé Antonio Ruiz Arias wrote:
> Seems to work fine. Thanks a lot Glynn.
>
> ________________________________
>
> José A. Ruiz Arias
> Departamento de Física
> Escuela Politécnica Superior
> Edificio A-3, Campus Lagunillas
> Universidad de Jaén
> 23071 Jaén Spain
> Tlf. +34 953212474
> Email: jararias@ujaen.es
> _____________________________________
>
>> -----Mensaje original-----
>> De: Glynn Clements [mailto:glynn@gclements.plus.com]
>> Enviado el: jueves, 22 de marzo de 2007 15:19
>> Para: José Antonio Ruiz Arias
>> CC: grassuser@grass.itc.it
>> Asunto: RE: [GRASS-user] Adding a semi-transparent layer
>>
>>
>> José Antonio Ruiz Arias wrote:
>>
>>> I've been trying to create the PPM/PGM pair with the PNG driver. Using
>> the next commands I get the ppm file:
>>> export GRASS_TRUECOLOR="TRUE"
>>> export GRASS_WIDTH=642
>>> export GRASS_WIDTH=371
>>> export GRASS_PNGFILE=mde.ppm
>>>
>>> d.mon start=PNG
>>> d.mon select=PNG
>>> d.rast map=mde
>>> d.mon stop=PNG
>>>
>>>
>>> But doing the same for the pgm file I get an error message. I have
>>> looked for some specific command in GRASS to create de pgm but I
>>> haven't found it.
>> Add:
>> export GRASS_TRANSPARENT=TRUE
>>
>> This will cause a PGM file to be written out in addition to the PPM
>> file. The PGM file contains the mask.
>>
>>> Also looked for the mapdisp.tcl to take it a look
>>> but I don't have it in my system (at least that's what I think).
>> The file which performs the compositing is etc/gm/mapcanvas.tcl.
>>
>> --
>> Glynn Clements <glynn@gclements.plus.com>
>>
>> __________ Información de NOD32 2134 (20070322) __________
>>
>> Este mensaje ha sido analizado con NOD32 antivirus system
>> http://www.nod32.com
>
>
>
> _______________________________________________
> grassuser mailing list
> grassuser@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
>
>--
Dr. Leonard Coop
Assis. Prof. (Research), Dept Botany & Plant Pathology
Integrated Plant Protection Center
2040 Cordley
Oregon State University
Corvallis OR 97331-2907
Phone 541-737-5523
http://pnwpest.org/coopl__________ Información de NOD32 2136 (20070322) __________
Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com