FREC 682 Spatial Analysis

course syllabus


Logging in

Your account should already be set up on the Spatlab UNIX cluster. You need a university UNIX account to use an X-terminal to log into our cluster. If you don't yet have an active University UNIX account hie thee to Smith hall, activate your account and select a username.

The class servers can only be accessed from Copland.  Open a Copland window on an X-terminal or PC Exceed.  First, use the xhost command to open your graphics display to the class server; then telnet to aesop:

> xhost +aesop.ags.udel.edu
aesop.ags.udel.edu being added to access control list
> telnet aesop.ags.udel.edu

Enter your Aesop login and password.  Now have Aesop open a separate graphics-capable X-window on your display:

> xterm -display $DISPLAY

You should see a new X-terminal window pop up on your screen.

Starting a GRASS session

To begin a GRASS session in your X-window, type grass at the prompt in this X-terminal window.

If you are a first-time GRASS user you will see a welcome screen. Hit ENTER. You will then see the usual GRASS start-up screen. You need to fill in the three fields highlighted in green in the image below: start with the "spearfish" location, your login name as your mapset (or specify another name you want to use), and home/grass.data as the database path (don't forget the leading "/" character).

Note that on this screen, as in most GRASS set-up screens, the Enter key advances you through the screen items. The ESC-Enter key sequence terminates screen entry and executes the parameters. This takes a little getting used to.

Unless you have some particular reason to resize your command window, it is generally best not to do so. Some GRASS menu screens are defined for a standard X window, and look confusing in re-sized windows.

After you close the start-up screen with ESC, you will see the GRASS prompt, telling you your current location (Spearfish) and mapset name.

Display monitors

The Aesop GRASS server supports graphic display monitor windows named X0 through X16. You should generally only use one monitor process at a time: you can always split a large display window into separate frames with d.frame if you want to display multiple maps at once.

Open a display "monitor" window with the d.mon module:

Once your GRASS monitor window pops up, you can resize it with the mouse. Each time you resize it, you should run d.erase or d.frame -e to refresh it.

Now you're ready to start playing with some maps.  First, you should set your region with the g.region module.  Here we use the region parameters from an existing map:

GRASS > g.region rast=elevation.dem

After changing your region, you must refresh your monitor; then you can display some stuff:

GRASS > d.erase
GRASS > d.rast elevation.dem
GRASS > d.vect roads color=black
GRASS > d.vect streams c=blue

GRASS modules

Note that GRASS modules are sorted into general categories:

Exploring GRASS

Now you are ready to start trying out some basic modules.  First check out the on-line help utilities:

To terminate a GRASS session, use d.mon stop= to terminate your monitor first. Then type exit. You will be asked whether you want to erase any maps (useful for housekeeping), or wipe out your entire mapset. The defaults are "no" --just hit Enter twice and you'll exit with everything saved.

If you want to switch locations, you have to exit GRASS and restart in the new location. In this case you can leave your GRASS monitor running, and simply select it with d.mon after restarting.

When terminating your work session, after exiting GRASS type "exit" again to log off the Spatlab server. Its X-window should disappear.  If you are working on an X-terminal, you must terminate your X-terminal session by choosing "Quit and Logout" from the X-terminal menu (left mouse button anywhere on blue screen). Make sure the X-terminal login window reappears on the screen so you are certain you are fully logged off.



course syllabus