[GRASSLIST:9119] Re: r.mapcalc
Massimiliano Cannata
massimiliano.cannata at supsi.ch
Thu Nov 17 10:45:44 EST 2005
Still it looks me the same....
the condition selects the cells where the DEM_EU value is between 100
and 200 (as you said), so this select the mask where where within
operations are made. and so it select the "geometry" wherever you put
your statement (begin or end)
Then you said to use inside the mask the values of grass_wetter...
Es. DEM
1 2 3 4
5 120 180 9
1 3 5 7
Es. YOUR MAP
9 8 7 6
5 4 3 2
1 2 3 4
with your r.mapcalc you get
null null null null
null 4 3 null
null null null null
instead what you'd like to have?
? ? ? ?
? ? ? ?
? ? ? ?
Sorry for not to get the point....
Maxi
Maik Trömel wrote:
> No, what I want are the cells of grass_wetter with the values of
> grass_wetter where the DEM value is between 100 and 200.
>
> Massimiliano Cannata wrote:
>
>> What do you mean with "geometry an the information of grass_wetter
>> where DEM_EU is between 100m and 200m" ?
>>
>> With your command you assign to the cells where the DEM value is
>> between 100 and 200 the value found in grass_wetter and elsewhere the
>> null value...
>> isn't it what you want?
>>
>> Bye
>> Maxi
>>
>>
>>
>>
>> Maik Trömel wrote:
>>
>>> Hello Grass-User,
>>>
>>> probably soemone can help me!
>>>
>>> I run folowing r.mapcalc funtion:
>>> r.mapcalc stat_k0='if(DEM_EU>100 && DEM_EU<=200,grass_wetter,null())'
>>>
>>> DEM_EU ist the DEM of Europe GTOPO30-Dataset. grass_wetter is a
>>> planar lattice (areas) of weather data. Works great.
>>>
>>> I get the a map with the geometry of GTOPO30 and the information of
>>> grass_wetter. But thats not what i need. I need the geometry an the
>>> information of grass_wetter where DEM_EU is between 100m and 200m.
>>>
>>> Could anybody help me?
>>>
>>> Thanks
>>> Maik
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
--
Eng. Massimiliano Cannata
Scuola Universitaria Professionale della Svizzera Italiana
Istituto Scienze della Terra
Via Trevano, c.p. 72
CH-6952 Canobbio-Lugano
Tel: +41 (0)58 666 62 18
Fax +41 (0)58 666 62 09
More information about the grass-user
mailing list