[GRASS-windows] help with command line in GRASS 6.3

5 messages Options
Embed this post
Permalink
Michael Denslow-2

[GRASS-windows] help with command line in GRASS 6.3

Reply Threaded More More options
Print post
Permalink
Dear List,

I am very new to GRASS and have been going through chapter 3 of the
Neteler and Mitasova's Open Source GIS book in order to learn some
basics. I can run the functions from the GUI (e.g. viewing rasters
etc.) but am not able to run the commands through the command line
window. I am attempting to run them from the bottom of the 'Output
Window'. What I am doing wrong here?
Also is there a better tutorial for the windows version of GRASS?

Can some one please advise me here.
I am working in Windows XP,
Thanks in advance,
Michael
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Moritz Lennert

Re: [GRASS-windows] help with command line in GRASS 6.3

Reply Threaded More More options
Print post
Permalink
On 14/10/08 16:27, Michael Denslow wrote:
> Dear List,
>
> I am very new to GRASS and have been going through chapter 3 of the
> Neteler and Mitasova's Open Source GIS book in order to learn some
> basics. I can run the functions from the GUI (e.g. viewing rasters
> etc.) but am not able to run the commands through the command line
> window. I am attempting to run them from the bottom of the 'Output
> Window'. What I am doing wrong here?

You will have to be much more specific if you want us to help you. What
are the commands you are trying to run, what do you expect to see and
what do you see (i.e. error messages, etc) ?

> Also is there a better tutorial for the windows version of GRASS?

No, but except for batch scripting, there is not much different between
the two.

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

Re: [GRASS-windows] help with command line in GRASS 6.3

Reply Threaded More More options
Print post
Permalink
Hi Moritz, List

>> I am very new to GRASS and have been going through chapter 3 of the
>> Neteler and Mitasova's Open Source GIS book in order to learn some
>> basics. I can run the functions from the GUI (e.g. viewing rasters
>> etc.) but am not able to run the commands through the command line
>> window. I am attempting to run them from the bottom of the 'Output
>> Window'. What I am doing wrong here?
>
> You will have to be much more specific if you want us to help you. What are
> the commands you are trying to run, what do you expect to see and what do
> you see (i.e. error messages, etc) ?

OK , sure. If I run the command

g.list rast

in the output window I get a list of rasters great! So then I get info
about the elevation raster from the North Carolina dataset.

r.info elevation

Works, great. Then set the region to be displayed

g.region rast=elevation -p
d.erase

seems to work, now display the raster

d.rast elevation

I run this command and I get a green line that runs along the bottom
of the command when it shows up in the top of the output window and
nothing shows in the map display. Also if I try to open a display
monitor by entering

d.mon x0

I get an error 'Problem selecting x1. Will try once more.', I am
expecting to see the raster displayed when I run d.rast but I don't.
Any further advice would be most appreciated.
Michael
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Moritz Lennert

Re: [GRASS-windows] help with command line in GRASS 6.3

Reply Threaded More More options
Print post
Permalink
On 14/10/08 18:02, Michael Denslow wrote:

> Hi Moritz, List
>
>>> I am very new to GRASS and have been going through chapter 3 of the
>>> Neteler and Mitasova's Open Source GIS book in order to learn some
>>> basics. I can run the functions from the GUI (e.g. viewing rasters
>>> etc.) but am not able to run the commands through the command line
>>> window. I am attempting to run them from the bottom of the 'Output
>>> Window'. What I am doing wrong here?
>> You will have to be much more specific if you want us to help you. What are
>> the commands you are trying to run, what do you expect to see and what do
>> you see (i.e. error messages, etc) ?
>
> OK , sure. If I run the command
>
> g.list rast
>
> in the output window I get a list of rasters great! So then I get info
> about the elevation raster from the North Carolina dataset.
>
> r.info elevation
>
> Works, great. Then set the region to be displayed
>
> g.region rast=elevation -p
> d.erase
>
> seems to work, now display the raster
>
> d.rast elevation

no d.* will work from the output window. You cannot interact with the
gis.m Display window through commands, only through the GUI.

>
> I run this command and I get a green line that runs along the bottom
> of the command when it shows up in the top of the output window and
> nothing shows in the map display. Also if I try to open a display
> monitor by entering
>
> d.mon x0

x-monitors do not work in Windows. You have to work through the GUI, or
directly on the cmd.exe (or msys) command line (don't think this works
via the output window) using GRASS_RENDER_IMMEDIATE=TRUE.

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

Re: [GRASS-windows] help with command line in GRASS 6.3

Reply Threaded More More options
Print post
Permalink

Moritz Lennert wrote:

> > I run this command and I get a green line that runs along the bottom
> > of the command when it shows up in the top of the output window and
> > nothing shows in the map display. Also if I try to open a display
> > monitor by entering
> >
> > d.mon x0
>
> x-monitors do not work in Windows. You have to work through the GUI, or
> directly on the cmd.exe (or msys) command line (don't think this works
> via the output window) using GRASS_RENDER_IMMEDIATE=TRUE.

Immediate rendering is always used on Windows, regardless of the value
(or lack thereof) of GRASS_RENDER_IMMEDIATE. The only reason to set it
explicitly is if you want PostScript output (GRASS_RENDER_IMMEDIATE=PS)
rather than PNG.

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