CE808 - Integrating Remote Sensing with Engineering Databases

Syllabus

Class Schedule

Lab

FAQs

Websites

Home

Table of Contents

  1. How do I print an image using xv?
  2. What are some handy Unix commands?
  3. How do I print a window active on the desktop?
  4. How do I forward my SGI mail to my main OSU account?
  5. How do I print an image using Map Composer?
  6. How do I get an image of Ohio to use in my class project ?
  7. How do I use extract county areas from Landsat imagery using the mask function?

How do I print an image using xv ?

In Imagine, click on Composer/New Map Composition. Use an 8 (width)-by-11 (height)-in. map height and save this file as a .map file. (Remember to save your .map file as you're working along with map composer.) A map composer window comes up. You might want to resize the window. Create a map frame in this window by selecting the icon with hatched marks on the inside of a box (the 3rd icon down, 3rd icon over in the Annotation menu). Next, draw out a box in the map composer window, remembering to draw with the left button and then releasing the button in the lower right when you're done drawing the box. Use the measurements along the side as a guide when drawing your box. (To draw a square box, use shift-left-hold when drawing the box.) You have a choice to fill the frame from a Viewer or Imported data. Select the Viewer option. Then follow the instructions and left-click in the open Viewer to copy the image into the map composer window.  You have three choices for displaying the image in the framing box. Click Use Entire Source to use the entire image in the viewer.

 

You can type text on your image by clicking on the A symbol. Label your drawing OSU Campus or any name you want. You can select that text and move it around on your image. Double-click the text and you can change the font and size of the text (change to 12) and the line width (change to 0.5) by selecting Annotation/Styles.

 

Select Grid Ticks – this is the 4th icon down, first box. This gives you an option on the spacing of the tick marks along the side of the image. You can copy your selected type of grid marks to the vertical scale (or vice versa), too.

 

The Scissors icon is very handy – it is your undo command.

 

Click the Scale bar. In this way you can position a scale bar on your image. Also, add a north arrow by going to Annotation/Styles and under Symbol Style you can find a north arrow to add to your drawing. Click using the + icon to position/place the north arrow on your drawing. You can select the north arrow object and resize it.

 

As a minimum, you should have a scale and a north arrow on your image.

 

Once you've got your map the way you want it, save it (.map file). Then select File/Print.

 

For the PCs: Select the HI342HP4550PCL5 printer to print your file. If you haven't added this printer, then follow the directions in this handout

 

For the SGIs: For the Print Destination: select EPS file. Under Options, you might unclick Bounding Box. Remember the directory where you saved this .eps file. When Imagine is done processing the file, click OK.

 

To view the image before printing, I recommend using ghostscript to view the postscript file. In a winterm window, type gs yourfilename.eps. If the image map looks good, then exit this program.

 

To print the file, we'll use showcase. In a winterm window, type showcase. Select File/Insert/EPS.  Select yourfilename.eps. You'll notice a bounding box, but you can't see the image file. You can move this bounding box around on the page by selecting it and repositioning it. If you resize the box, be sure to hold down the shift key so that it's resized equally in the x & y directions. When satisfied, select File/Print. Select hi322hp5000 to print a black-and-white print on the printer in HI322 or select hi342hp4550c for printing a color print (the printer is located in the 2nd room over). Click Print, then exit this window. Select File/Exit to exit Showcase. Select Discard Changes when exiting, unless you want to save this file (showcase typically saves files as a .sc file).

Back to Top

What are some handy Unix commands?

cancel job# allows you to cancel a print job

cat lists contents of files

cd <directory> changes directory

cd .. moves you up one level in the directory

cd ~ takes you to your home directory 

cp <filename1> <filename2> copies filename1 into a new file called filename2

cpr <directory1> <directory2> copies directory1 and all files below it into the destination directory2

date displays system date and time

du -k displays disk space usage

finger shows you who's on the system

ftp <machinename> allows you to transfer files through the network to another computer

ln links 2 files, instead of duplicating files

lp -d hi322hp4550c filename.tif allows you to print a color print in Region 1

lpstat -t shows you what printers are available for your use

ls displays the list of filenames in current directory

ls -a displays the list of filenames in current directory, alphabetically

ls -s displays the list of filenames in current directory, complete information

mail somebody@somewhere send a mail message, last line should be a .

man <command name> goes to the manual and gives you help for that command

mkdir makes a directory

more <filename> displays to the screen a listing of the file

mv <filename> <newfilename> moves file & renames it

ps reports on active processes

pwd prints the current working directory

rm <filename> removes, deletes a file

rmdir removes a directory, but it has to be empty

telnet <machinename> communicates you through the network to another computer

who shows current status of system

yppasswd allows you to change your password – just follow the directions.

Back to Top

How do I print a window active on the desktop?

PCs: To print an active window, use the Alt-PrintScrn command sequence. Open up a Word document and you can just paste this into your document. The Ctrl-PrintScrn command sequence will print the entire desktop window.

SGIs: If you want to print the window, you can use the xv utility. In the winterm window, type xv. Right-click on the opening xv window to get the menu. You'll see grab as a button. Click this and change the delay to something like 3 (seconds) - this allows you time to get the window on top of your desktop to make sure that the window is active. After you hear the beep, left-click on the menu bar of the window. Then you'll see the window re-displayed in the xv display window. From the xv menu, you can then print this window display. The printer name is:  lp -d  hi342HP4550PCL5 for color prints or use one of the other black-and-white printers.

Back to Top

How do I forward my SGI mail to my main OSU account?

To forward your email received at the SGIs, here's what you do...

Say, your name is Brutus Buckeye, then open up the application jot and type one line:

buckeye.1@osu.edu

save this one-line file and call the file:

.forward

You've just made a file called .forward and it contains one line of information - the email address you want your email forwarded to.

That's all there is to do. Now the mail received on the SGIs gets forwarded to your osu.edu address.

Back to Top

How do I print an image using Map Composer?

PCs: To print an active window, use the Alt-PrintScrn command sequence. Open up a Word document and you can just paste this into your document. The Ctrl-PrintScrn command sequence will print the entire desktop window.

 

SGIs: In Imagine, click on Composer/New Map Composition. Use an 8 (width)-by-10 (height)-in. map height and save this file as a .map file. (Remember to save your .map file as you're working along with map composer.) A map composer window comes up. You might want to resize the window. Create a map frame in this window by selecting the icon with hatched marks on the inside of a box (the 3rd icon down, 3rd icon over in the Annotation menu). Next, draw out a box in the map composer window, remembering to draw with the left button and then releasing the button in the lower right when you're done drawing the box. Use the measurements along the side as a guide when drawing your box. (To draw a square box, use shift-left-hold when drawing the box.) You have a choice to fill the frame from a Viewer or Imported data. Select the Viewer option. Then follow the instructions and left-click in the open Viewer to copy the image into the map composer window.  You have three choices for displaying the image in the framing box. Click Use Entire Source to use the entire image in the viewer.

 

You can type text on your image by clicking on the A symbol. Label your drawing OSU Campus or any name you want. You can select that text and move it around on your image. Double-click the text and you can change the font and size of the text (change to 12) and the line width (change to 0.5) by selecting Annotation/Styles.

 

Select Grid Ticks – this is the 4th icon down, first box. This gives you an option on the spacing of the tick marks along the side of the image. You can copy your selected type of grid marks to the vertical scale (or vice versa), too.

 

The Scissors icon is very handy – it is your undo command.

 

Click the Scale bar. In this way you can position a scale bar on your image. Also, add a north arrow by going to Annotation/Styles and under Symbol Style you can find a north arrow to add to your drawing. Click using the + icon to position/place the north arrow on your drawing. You can select the north arrow object and resize it.

 

As a minimum, you should have a scale and a north arrow on your image.

 

Once you've got your map the way you want it, save it (.map file). Then select File/Print. For the Print Destination: select EPS file. Under Options, you might unclick Bounding Box. Remember the directory where you saved this .eps file. When Imagine is done processing the file, click OK.

 

To view the image before printing, I recommend using ghostscript to view the postscript file. In a winterm window, type gs yourfilename.eps. If the image map looks good, then exit this program.

 

To print the file, we'll use showcase. In a winterm window, type showcase. Select File/Insert/EPS.  Select yourfilename.eps. You'll notice a bounding box, but you can't see the image file. You can move this bounding box around on the page by selecting it and repositioning it. If you resize the box, be sure to hold down the shift key so that it's resized equally in the x & y directions. When satisfied, select File/Print. Select hi322hp5000 to print a black-and-white print on the printer in HI322 or select hi342hp4550c for printing a color print (the printer is located in the 2nd room over). Click Print, then exit this window. Select File/Exit to exit Showcase. Select Discard Changes when exiting, unless you want to save this file (showcase typically saves files as a .sc file).  

Back to Top

How do I get an image of Ohio to use in my class project?

Say, for example, that you want to get an image of your hometown. First, you want to see what existing cloudfree images there are...so go to my OhioView site (using Netscape or Microsoft Internet Explorer) and scroll through the available Landsat-7 images of Ohio. Note the path/row and the date of the Landsat-7 image that you want. Next, you'll want to use the PC machines in HI342 to carve out your subarea. Bring up the Z: drive where the Landsat-7 images are stored. The way the images are stored are according to this format. Start up Imagine and you can then select any image on this Z: drive to load into a viewer. In Imagine use the "subset area" utility to carve out a smaller area from the Landsat-7 frame to use. Once your test area has been subsetted, you can then save this image (.img and .rrd files) to your account on the PCs

Back to Top

How do I use extract county areas from Landsat imagery using the mask function?

This document shows how one can mask out certain county areas of Ohio from a Landsat image.

Back to Top

Copyright 2003 - The Ohio State University.
For problems or questions regarding this web contact [Prof. Merry].
Last updated: June 07, 2003.