r.stats | awk | reclass under WinGrass OSGeo4W

3 messages Options
Embed this post
Permalink
Milton Cezar Ribeiro

r.stats | awk | reclass under WinGrass OSGeo4W

Reply Threaded More More options
Print post
Permalink
Dear all,
 
I need to proceed the following command
 
r.stats -na input=mymap | awk '{print $1,"=",int($2/10000)+1}'|r.reclass input=mymap output=mymap_areaha - --o
 
When running wingrass6.3 under MSys/MINGW It worked so fine.
But now I am running Wingrass 6.4 (OSGeo4W distribution) in text mode
(started from OSGeo4W Shell) but bash commands don't work.
 
I tryed to start WinGrass from MSYS(MINGW - C:\OSGeo4W\apps\msys)
but when I type grass64 I got the following error message:
 
Starting GRASS ...
WARNING: The wish command does not work as expected!
Please check your GRASS_WISH environment variable.
Use the -help option for details.
Switching to text based interface mode.
Hit RETURN to continue.

Any help are Welcome.
 
Best wishes
 
milton

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

Re: r.stats | awk | reclass under WinGrass OSGeo4W

Reply Threaded More More options
Print post
Permalink
On Sat, Mar 28, 2009 at 6:23 PM, Milton Cezar Ribeiro
<[hidden email]> wrote:
...
> I tryed to start WinGrass from MSYS(MINGW - C:\OSGeo4W\apps\msys)
> but when I type grass64 I got the following error message:
>
> Starting GRASS ...
> WARNING: The wish command does not work as expected!
> Please check your GRASS_WISH environment variable.
> Use the -help option for details.
> Switching to text based interface mode.
> Hit RETURN to continue.

Before starting, please try to set

GRASS_WISH=/osgeo4w/apps/tcl-tk/bin/wish.exe

(maybe the syntax is different, could be
set GRASS_WISH=%OSGEO4W_ROOT%\apps\tcl-tk\bin\wish.exe
).
Also with could be wish80.exe or so (just guessing, have no Windows here).
After setting, try to start GRASS.

Please report...

Markus
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Milton Cezar Ribeiro

Re: r.stats | awk | reclass under WinGrass OSGeo4W

Reply Threaded More More options
Print post
Permalink
Hi Markus,
 
The following worked fine to me under Vista (64bits) on a DELL machine:
 
GRASS_WISH=/c/OSGeo4W/bin/wish.exe
export GRASS_WISH
after that I gone to /c/OSGeo4W/apps/grass/bin and typed grass64
 
Thanks a lot.
 
Milton
Toronto, CA

 
2009/3/28 Markus Neteler <[hidden email]>
On Sat, Mar 28, 2009 at 6:23 PM, Milton Cezar Ribeiro
<[hidden email]> wrote:
...
> I tryed to start WinGrass from MSYS(MINGW - C:\OSGeo4W\apps\msys)
> but when I type grass64 I got the following error message:
>
> Starting GRASS ...
> WARNING: The wish command does not work as expected!
> Please check your GRASS_WISH environment variable.
> Use the -help option for details.
> Switching to text based interface mode.
> Hit RETURN to continue.

Before starting, please try to set

GRASS_WISH=/osgeo4w/apps/tcl-tk/bin/wish.exe

(maybe the syntax is different, could be
set GRASS_WISH=%OSGEO4W_ROOT%\apps\tcl-tk\bin\wish.exe
).
Also with could be wish80.exe or so (just guessing, have no Windows here).
After setting, try to start GRASS.

Please report...

Markus


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