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

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

Hi,

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"
done

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

hope it helps

jachym

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507