[GRASS5] making a module that collects pixels values from a displayed map

Jachym Cepicky jachym.cepicky at centrum.cz
Sat Apr 29 07:12:16 EDT 2006


On Sat, Apr 29, 2006 at 08:30:51AM +0700, Yann Chemin wrote:
> Hi list,
> I would like to make a module that runs some processing, then displays
> a map and gives the user the capacity to collect pixel data by
> selecting a pixel on-screen for further processing.
> Could you direct me towards a good (clear,simple) example module?
> thanks,
> Yann

Example not, but try something like

for click in $( d.what.rast -t soils 2>&1 |grep "@" |awk '{print $2}' ); do
    echo "your values: $click"

for example, how to make a grass script look at help to g.parser module

hope it helps


Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
Mengendamm 16d
30177 Hannover
e-mail: cepicky at gdf-hannover.de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060429/c6cb4a47/attachment.bin

More information about the grass-dev mailing list