Problem finding r.mask in Windows script

5 messages Options
Embed this post
Permalink
Ned Horning-2

Problem finding r.mask in Windows script

Reply Threaded More More options
Print post
Permalink
Hi -

I have a script that I am running on the Windows version of GRASS 6.4.0
installed using OSGEO4W. The script seems to run okay but the I am
getting a message that I can't figure out.

Early in the script I have the command:

r.mask -r maskcats=*

 I also tried: r.mask -r MASK

In both cases when the script runs I get the following message:
C:/OSGeo4W/apps/grass/grass-6.4.0svn/scripts/r.shrub.cloud.resample:
r.mask: command not found

The r.mask command works fine when I run it from the command window or
using the menu. Can anyone shed light on why the message is popping up?

Ned
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Markus Neteler

Re: Problem finding r.mask in Windows script

Reply Threaded More More options
Print post
Permalink
Hi Ned,

On Wed, Sep 23, 2009 at 7:50 PM, Ned Horning <[hidden email]> wrote:

> Hi -
>
> I have a script that I am running on the Windows version of GRASS 6.4.0
> installed using OSGEO4W. The script seems to run okay but the I am getting a
> message that I can't figure out.
>
> Early in the script I have the command:
>
> r.mask -r maskcats=*
>
> I also tried: r.mask -r MASK
>
> In both cases when the script runs I get the following message:
> C:/OSGeo4W/apps/grass/grass-6.4.0svn/scripts/r.shrub.cloud.resample: r.mask:
> command not found
>
> The r.mask command works fine when I run it from the command window or using
> the menu. Can anyone shed light on why the message is popping up?

just a curiosity: are you sure to run this script in the GRASS
terminal?

Markus
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Ned Horning-2

Re: Problem finding r.mask in Windows script

Reply Threaded More More options
Print post
Permalink
Markus,

I ran the script in the lower pane of the Output - GIS.m window. I
expect this is a stupid question but in the Windows version where is the
GRASS terminal?

Ned

Markus Neteler wrote:
> just a curiosity: are you sure to run this script in the GRASS
> terminal?
>
> Markus
>  

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Markus Neteler

Re: Problem finding r.mask in Windows script

Reply Threaded More More options
Print post
Permalink
On Thu, Sep 24, 2009 at 4:59 AM, Ned Horning <[hidden email]> wrote:
> Markus,
>
> I ran the script in the lower pane of the Output - GIS.m window. I expect
> this is a stupid question but in the Windows version where is the GRASS
> terminal?

Ned,

see here:
http://grass.osgeo.org/grass64/binary/mswindows/native/#Launching_GRASS
-> "Click on the GRASS msys icon (in the GRASS Start Group or on the Desktop)
      to launch GRASS with the new wxPython GUI and a companion UNIX-like
      terminal shell."

I don't have Windows so I cannot help much...

Markus
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
hamish-2

Re: Problem finding r.mask in Windows script

Reply Threaded More More options
Print post
Permalink
Ned:
> I ran the script in the lower pane of the Output -GIS.m
> window. I expect this is a stupid question but in the
> Windows version where is the GRASS terminal?

IIRC the OSGeo4W one doesn't start one by default, you
have to select the DOS prompt box as a different option.

I don't recall if the tcltk GUI using the Native binaries
start a terminal or not, if not you might try starting the
wx GUI with a terminal, closing the wxGUI, then starting
the tcltk (gis.m) gui with "g.gui tcltk".

(see Markus's post about starting with a terminal from the
native binaries)


Hamish
(who also doesn't have wingrass at his fingertips)




_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user