Thanks Michael,
This example is really clear and easy to do.
In 2 minutes I added some new commands to my tcl/tk interface... :-)

Really useful!
Compliment.
Maxi


Maxi

Michael Barton wrote:
Tom,

If you want to play around with TclTk a bit, you could simply add a line or
two in one of the currently existing menus (all in
$GISBASE/etc/gm/gmmenu.tcl) to do a specific task. For example, you could
add a menu entry that could have for its command: "v.surf.bspline
input=wstation_temp raster=tempmap type=bicubic column=temp"

This would take a file of vector weather station points named
"wstation_temp", with an attribute column named "temp", and use bicubic
interpolation to create a temperature surface named "tempmap"

Here is a bit of script that could be inserted into the raster menu to add a
submenu for doing weather-related raster modeling

{separator}
{cascad {[G_msg "Weather modeling"]} {} "" $tmenu {
   {command {[G_msg "temperature surface"]} {} "bicubic interpolation
           of weather station temperature data" {} -command {execute
           v.surf.bspline input=wstation_temp raster=tempmap type=bicubic
           column=temp }}
   {separator}
   {command {[G_msg "another menu entry"]} {} "put the help text here" {}
           -command {execute GRASSCOMMAND }}
}}

{separator} inserts a line separating menu items
{cascad... } creates a submenu
{command...} creates a menu entry that starts a command.

Maybe this can help you show how easy it is to make custom menu entries.
Hope this is helpful.

Michael

On 7/27/07 10:23 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

Send grass-dev mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://grass.itc.it/mailman/listinfo/grass-dev
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of grass-dev digest..."
Today's Topics:

   1. Re: r.terraflow on Mac OS X 10.4.9 (Michael Barton)
   2. Re: r.terraflow on Mac OS X 10.4.9 (Helena Mitasova)
   3. Re: [GRASS-user] GRASS "custom" applications (Thomas Adams)
   4. Re: [GRASS-user] Re: [GRASS-dev] GRASS "custom" applications
      (Thomas Adams)
   5. Re: Re: gis.m: font selection in module panels (Paul Kelly)
   6. Re: Re: [GRASS-user] GRASS "custom" applications (Paul Kelly)
_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev

begin:vcard
fn:Massimiliano Cannata
n:Cannata;Massimiliano
org:SUPSI - Scuola Universitaria Professionale della SVizzera Italiana;Istituto Scienze della Terra
adr:;;Trevano;Canobbio;;CP 72;Switzerland
email;internet:[EMAIL PROTECTED]
title:Responsabile area geomatica
tel;work:+41 (0)58 666 62 14
tel;fax:+41 (0)58 666 62 09
url:http://istgis.ist.supsi.ch/geomatica/index.php
version:2.1
end:vcard

_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev

Reply via email to