Hi All,
please any python programmer could explain me the correct use of r.mapcalc
in this case.
In my python script I have a formula like this:
n = 0.016 * (resolution ** 0.46)
(resolution is the cellsize of the input map).
and I have to calculate a map with:
grass.mapcalc(mti =
Greetings
I have a bunch of raster maps (5 as a matter of fact) and need to calculate
the slope for each pixel. I mean, I need to pick-up all 5 values for each
pixel and calculate Slope for that pixel. Now, What I want is to do this for
all pixels and obtain a map that represents the slope for
Monica Buescu wrote:
Greetings
I have a bunch of raster maps (5 as a matter of fact) and need to calculate
the slope for each pixel. I mean, I need to pick-up all 5 values for each
pixel and calculate Slope for that pixel. Now, What I want is to do this for
all pixels and obtain a map that
5 2 2 2 2 2
3 2 5 5 1 3 4 5
Output must be:
1 1 2 3
2 5 2 2
My question is what method do you advise to be used?
Thanks
Antonio
__ Information from ESET NOD32 Antivirus, version of virus signature
database 5720 (20101221) __
The message was checked by ESET NOD32 Antivirus.
http
you advise to be used?
Thanks
Antonio
__ Information from ESET NOD32 Antivirus, version of virus
signature
database 5720 (20101221) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
___
grass-user
Greetings
(It seems that I'm mail bombing to this list but I have a few questions
about GRASS usage).
I have a classification map and I want to create segments/patches aggregated
by its classigfication and assign an patch ID.
Let me demonstrate:
INPUT:
1 1 2 2 4 4 5 5
5 1 2 2 2 4 5 5
5 1 3 3 2 2
It works! Thanks a lot.
Margherita
Try
grass.mapcalc(mti = log((exp($rast1 , $n)) / $rast2), rast1 =
'r_accumulation', rast2 = 'r_slope', n = n)
Markus M
___
grass-user mailing list
grass-user@lists.osgeo.org
On 21/12/2010 14:26,
Monica Buescu wrote:
Greetings
(It seems that I'm mail bombing to this list but I have a few
questions about GRASS usage).
I have a classification map and I want to create
segments/patches aggregated by its
Hi,
I have taken Markus's PHP earthquake demo[1] and set it up as a nightly
refresh job on one of the OSGeo servers[2]. A few things still to improve,
but a demo of what can be done; most importantly the magnitude is now
logarithmic instead of linear as it is usually presented. It's scaled back