home *** CD-ROM | disk | FTP | other *** search
- NAME
- globe
-
- SYNOPSIS
- globe [file1 file2...] [options]
-
- DESCRIPTION
- GLOBE accepts a file of triples of numbers, the X, Y, and Z
- coordinates of points, and displays a perspective projection of
- them as points or connected by lines. The user can then alter his
- vantage point with the cursor keys, and the display is redrawn.
-
- GLOBE is like DOTS, except that GLOBE also draws a unit sphere
- centered at the origin and removes all the lines and markers hidden
- by it.
-
- A user may want to enhance the GLOBE display by including
- latitude/longitude lines generated by LATLONG and/or the world
- coastline points generated by WORLD.
-
- Key commands available:
-
- Cursor keys move observer higher, lower, around to left, or around to right.
- + enlarge cursor key steps by a factor of 4
- - shrink cursor key steps by a factor of 4
- pg up move viewpoint closer
- pg dn move viewpoint further away
- home enlarge display (factor 1.414)
- end shrink display (factor .707)
- q exit program
- ? print this help menu
-
- Using the photographic analogy, <home> and <end> correspond to
- changing the focal length of the lens, while <pg up> and <pg dn>
- correspond to moving the photographer. The camera always points
- toward the "view reference point", which is the center of the box
- enclosing the data.
-
- With parallel perspective, the distance from the viewpoint to the
- displayed data would make no difference in the display, so the <pg
- up> and <pg dn> keys instead have the same effect as the <home> and
- <end>, respectively.
-
- OPTIONS
-
- These options are specific to GLOBE...
-
- -ll input is longitude-latitude pairs in degrees. All points
- are assumed to be at radius 1 from the origin.
- -r <radius> specify sphere radius (default 1)
-
- The default condition for two options is opposite that for DOTS...
-
- -f add axes and frame around plot
- -p use perspective rather than parallel projection (faster,
- but one less depth cue)
-
- Otherwise, GLOBE accepts the same options as DOTS...
-
- &<name> (hard copy versions only) Device driver switches are
- in the configuration file <name>. See "DEVICE DRIVER
- CONFIGURATION FILES" below.
- -a [step [start]] automatic abscissas
- -b break graph after each label
- -m n1 n2 n3...
- The numeric arguments are linestyles for successive
- line segments (see switch -b). Each positive argument
- is a number of up to three digits WCS, where
- W is the linewidth (0-9, with 0 giving width 1),
- C is the color (with 0 being brightest), and
- S is linestyle (1-5, 1 for solid, 2 for dashed,
- 3 for dotted, etc.)
- If an argument is zero, the data points are plotted as
- dots not connected by lines. Similarly, a negative
- argument -CS generates a marker:
- C is the color
- S is the marker style (dot, box, cross, etc.)
-
- -o ox oy oz
- specify initial observer location (especially useful
- for hard copy output devices)
- -s num enlarge the display by a factor num.
- -t draw line from each data point to the XY plane
- -x NUM1 NUM2 let x axis extend from NUM1 to NUM2
- -y NUM1 NUM2 let y axis extend from NUM1 to NUM2
- -z NUM1 NUM2 let z axis extend from NUM1 to NUM2
-
- BUGS
- Axis labels would help. Most of the options for the Unix utility
- GRAPH would help.
-
- EXAMPLE
- To display a map of the world, enter
-
- globe world8 -ll -m 164*60
- ^^^^^^^^^ specifies blue lines for
- the 164 lines in the file
- ^^^ longitude/latitude input
- ^^^^^^ the input file
-
- WORLD8 is a data file of world coastline points, and can be found in
- WORLD.ZIP.
-
- VERSIONS
- GLOBE is available in several versions. When necessary for
- configuration control, these versions are given different file
- names (see FILES section below). It is suggested that the
- "normal" version for a given computer be renamed GLOBE for
- simplicity. Any version of GLOBE can be executed with a
- question mark as the only parameter:
-
- GLOBE ?
-
- It will then print a help screen which includes the hardware it
- supports, and exit immediately. In addition, GLOBE tests that the
- hardware it needs is present before using it (except for the hard
- copy versions).
-
- For the display version of GLOBE, you will need a device driver in the
- form of a .BGI (for Borland Graphics Interface) appropriate for
- your hardware. If you have one of the following standard graphics
- cards, you can use one of those supplied by Borland:
-
- CGA
- MCGA
- EGA
- ATT400
- VGA
- PC3270
- IBM8514
- Hercules mono
-
- If so, you need only put the .BGI file where GLOBE can find it.
- GLOBE will look in the directories listed in the environment
- variable BGIPATH if it is set, otherwise it will look in the
- directories indicated by PATH. For example:
-
- C>set bgipath=C:\MY\BGIFILES;C:\TC\BGI
- C>globe mydata
-
- If you put both GLOBE.EXE and the required .BGI file into one of the
- directories in your PATH, you will not need to add anything
- to your environment.
-
- If you want to select a particular graphics mode, you may set the
- environment variable GRAPHMODE to one of the numeric constants of
- "graphics_modes" enumeration type as defined by Borland. The
- constants are as follows:
-
- mode value
- ------------------ -----
- CGA 320*200 C0 0
- CGA 320*200 C1 1
- CGA 320*200 C2 2
- CGA 320*200 C3 3
- CGA 640*200 4
-
- MCGA 320*200 C0 0
- MCGA 320*200 C1 1
- MCGA 320*200 C2 2
- MCGA 320*200 C3 3
- MCGA 640*200 4
- MCGA 640*480 5
-
- EGA 640*200 0
- EGA 640*350 1
- EGAMONO 640*350 3
-
- HERC 720*348 0
-
- ATT400 320*200 C0 0
- ATT400 320*200 C1 1
- ATT400 320*200 C2 2
- ATT400 320*200 C3 3
- ATT400 640*200 4
- ATT400 640*400 5
-
- VGA 640*200 0
- VGA 640*350 1
- VGA 640*480 2
-
- PC3270 720*350 0
-
- IBM8514 640*480 0
- 1024*768 0
-
- ...where C0, C1, C2, and C3 refer to the four palettes on the CGA
- and compatible systems.
-
- If you have nonstandard video hardware, you will have to obtain or
- write a .BGI file. In that case, set the environment variable
- BGIDRIVER to the name of the file. For example, if your driver
- is named SGA.BGI, you would set the environment variable as
- follows:
-
- C>set bgidriver=SGA
-
- No hardware autodetection of nonstandard video cards is supported.
-
- FILES
- GLOBE.EXE for EGA
- GLOBEPS.EXE for Postscript
- GLOBELI.EXE for CIE Laser Image Printing System, or LIPS 10
-
- DEVICE DRIVER CONFIGURATION FILES
-
- The hard copy versions (GLOBEHI, GLOBEHP, GLOBELI, GLOBEPS) can also
- accept parameters from an ASCII configuration file. Entries in
- the file are switches, some with arguments, similar to those
- used on the command line. The following switches are available:
-
- -p portrait orientation (LI and PS only)
- -l landscape orientation (the default) (LI and PS only)
- -o <xoffset> <yoffset>
- -r <xoffset>
- -d <yoffset>
- offset in inches from top left corner of page
- -s <width> <height>
- -w <width>
- -h <height>
- plot size in inches
- -f <name> name of output file (or port)
- -v <velocity> pen velocity (HP and HI versions only).
- Units are cm/sec for HP and in/sec for HI.
- -n <name> Plotter name (HI version only). Choices
- are "DMP-29" (the default) and "DMP-7". Case is not
- distinct, and "29" and "7" are also accepted.
-
- None of the arguments can be omitted. A semicolon introduces a
- comment that extends to the end of the line.
-
- A switch may start with '+' instead of '-', in which case it will
- establish the default, but the program will still ask for the
- final value.
-
- The PostScript device driver configuration file name will be, in
- decreasing order of priority:
-
- 1. An "&filename" entry on the command line
- 2. GRAPHPS.CFG in the current directory.
-
- The Houstin Instruments version would look for a configuration
- file named GRAPHHI.CFG, etc. If more than one &filename entry
- appears, only the last configuration file referenced is read.
-
- A PostScript output file name will be, in decreasing order of
- priority:
-
- 1. The argument of the -f switch in the device
- driver configuration file,
- 2. The value of the environment variable PLOT_PORT, or
- 3. FOO.PS, where FOO is the root name of the first
- data file.
-
- Output file names for the other versions are generated similarly, but
- with extensions .HI, .HP, or .LI.
-
- AUTHOR
- Copyright (c) 1985, 1987, 1988, 1990 by James R. Van Zandt
- (jrv@mbunix.mitre.org) 27 Spencer Dr., Nashua NH 03062,
- 603-888-2272. Resale forbidden, copying for personal use
- encouraged. Constructive comments welcome.
-
-