NCARG
The NCAR Graphics Library
NCARG
is a directory of FORTRAN77 programs which
illustrate the use of the NCAR Graphics Library which contains
an extensive set of graphics routines for the presentation
of scientific data.
-
Setup for C shell or T shell:
-
setenv NCARG_ROOT /usr/local/ncarg
set path = ( $path /usr/local/ncarg/bin )
-
To see a list of All the available examples:
-
ncargex -A -list
-
To see a list of ezmap examples:
-
ncargex -ezmap -list
-
To copy and run a specific example, say mpex01:
-
ncargex mpex01
The output of an NCARG graphics program is to an abstract "device".
The actual properties of this device are specified by the user
in the statement:
call gopwk ( iwkid, lunit, iwtype )
For our purposes here, the interesting quantity is iwtype,
whose value determines the exact form of the output. In particular,
-
1: NCGM, an NCAR CGM file, called "gmeta" by default.
-
3: WISS, "Workspace Independent Segment Storage"
-
7: Display graphics in the current X window;
-
8: Display graphics in a new X window.
-
10: Text dump of graphics for debugging
-
20: Color PS File, Portrait
-
21: Color EPS File, Portrait
-
22: Color EPSI File, Portrait
-
23: B/W PS File, Portrait
-
24: B/W EPS File, Portrait
-
25: B/W EPSI File, Portrait
-
26: Color PS File, Landscape
-
27: Color EPS File, Landscape
-
28: Color EPSI File, Landscape
-
29: Color PS File, Landscape
-
30: Color EPS File, Landscape
-
31: Color EPSI File, Landscape
Note that EPS and EPSI files are only appropriate for single
images. If you try to write several images to a device that
you defined as an EPS or EPSI file, you will get an "interesting"
error message.
Reference:
-
Web site:
-
http://ngwww.ucar.edu
-
PDF Documentation:
-
../../pdf/ncarg/ncarg_pdf.html
Examples and Tests:
FSTREAM is a test of the NCARG routine STREAM, which can plot
streamlines of a vector quantity. Test files you may copy include:
TISOSR is a test of the NCARG routines EZISOS and ISOSRF.
Two images are created. Test files you may copy include:
You can go up one level to
the FORTRAN77 source codes.
Last revised on 25 September 2005.