CE/GS603 Remote Sensing of Environment

horizontal rule

Class Schedule

Lab

Syllabus

FAQs

Web sites

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 print an image using Map Composer?
  5. How do I print an image from a Viewer?
  6. How do I get an image of Ohio to use in my class project?
  7. How do I FTP a file?
  8. How do I create a mask file?

How do I print an image using xv ?

To make a print of an image, we need to export the image as a .tif file within Imagine. To do this, left-click Import on the ERDAS Imagine icon panel. In the window that comes up, make sure that Export is clicked on, and that TIFF is selected for the Type: and File is selected for the Media: (you'll have to scroll through and select these two items).

 

Type in the input file name, i.e.: /t1/common/ce603/OSUcampus.img

(or a file in your own account - /x1/ce603/yourname.1/filename.img) on the left side and on the right side, the name of the file will default to OSUcampus.tif located in your home directory. Click Ok. In the next menu, click OK. Then click Ok and then Close to exit out.

 

Now go to a winterm window. Type xv. Right-click the mouse to get the xv menu. Left-click the load button. Select the OSUcampus.tif file. Left-click the ok button. Your image should pop up in another window. Left-click the print button; also, make sure that lp shows in the window (not lpr). Left-click the grayscale button. You can reposition or resize your image by changing the width and height of the image using the % buttons. When satisfied, left-click the ok button. Left-click the Quit button to exit xv. The print will come out on the printer located in 322 Hitchcock

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 print an image using Map Composer?

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

How do I print an image from a Viewer?

To print an image from a Viewer window, you'll need to save the image file temporarily to the temp folder on the C: drive as a .img file. Then print this file from the Viewer window. 

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 the OhioLink web 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 (machine #'s 38, 39 in the back of the room in HI342) to carve out your subarea. Right-click on the "Network Neighbor" icon on the desktop and select "Find Computer" to bring up the network connection dialog box so that you can connect to the server that contains the Landsat-7 images. In the search window type in the address of the server - 164.107.56.100 . It'll take a few seconds to bring up the server. You've now brought up the G: drive (Landsat_7 on '164.107.56.100') 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 G: 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 ftp this image (.img and .rrd files) over to your account on the SGIs and finish your project using Imagine on the SGIs. 

Back to Top

How do I FTP a file?

FTP - File Transfer Protocol - is how you transfer files from one computer to another. For CE/GS603 we most likely will transfer files from the PC network (the room where the color printer is) to the SGI network (Room 322 HI). You would have subset an area using Imagine on the PCs and need to get that file over to your account on the SGIs. On the two PCs in the back of the room, to start FTP highlight Start - Programs - FTP WS-FTP. When the window comes up, the hostname should be r1tel.eng.ohio-state.edu (that's the default), then type in your user ID and your password, as normal. Click OK. You'll then see your list of files on your N: drive on the left pane and the files for your SGI account on the right pane. On the left pane, select the file you want to transfer. Be sure binary is clicked ( binary should be used when transferring image files). Click the --> (right arrow) key to transfer the file from the PC to your account on the SGIs. After the file transfers, you'll see that file listed in your SGI account. Click Close to close the session. Click Exit to exit the program.

Back to Top

How do I create a mask file?

You need to create an image file that contains water pixels only, not land pixels, so that you can do a detailed classification of water pixels only. The solution is to create a mask file that will eliminate your land pixels. Refer to this handout for more details.

Back to Top

 

horizontal rule

Copyright: 2 January 2008.
For problems or questions regarding this web contact [Prof Merry].
Last updated: 01/02/2009