There used to be a perl script to generate map-calc code which might do what you are after.
Have a look at http://grass.gdf-hannover.de/wiki/GRASS_AddOns:
- Local maxima is a Perl script for
r.mapcalc
. It detects local maxima of the image.
Author: Jachym Cepicky
**Usage:**
local_maxima.pl -i input -o output -s matrix_size|r.mapcalc
The link is stale, but the author is still alive, so he might have the code.
HTH
Ludwig
Hey, great thanks Ludwig!
I’ll be sure to follow that trail, looks really helpful for the type of analysis work I’m doing.
I should really brush up on pearl scripting.
cheers!
Mars
On 2-Jul-07, at 7:03 AM, Ludwig M Brinckmann wrote:
There used to be a perl script to generate map-calc code which might do what you are after.
Have a look at http://grass.gdf-hannover.de/wiki/GRASS_AddOns:
- Local maxima is a Perl script for
r.mapcalc
. It detects local maxima of the image.
Author: Jachym Cepicky
**Usage:**
local_maxima.pl -i input -o output -s matrix_size|r.mapcalc
The link is stale, but the author is still alive, so he might have the code.
HTH
Ludwig
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser