Onnet exists to make it easy to plot structural information on stereonets. The input files are designed to be easily read and editted by a user. This facilitates it's use in two ways. Field data can be plotted by making an onnet input file with the editor or programs that compute information can write onnet input files. Onnet is then used to translate these English language files into postscript which can be viewed either on screen with a postscript viewer or printed on any postscript printer. This allows you to easily edit plots. For instance you plot field data and then later you can add interpretation symbols to the plot with little extra effort. Also the symbols used to plot data, or the way it is viewed can also be changed with little effort. As the output files are in postscript, they can be read into Adobe Illustrator (or other drafting programs) for further customizing.
Here's an example input file and the output:
# put on a title title Example 1 # # draw a plane with dip direction = 20 and E of N and dipping 30 degrees plane 20 30 # # draw a small circle centered at an azimuth of 280 degrees, plunging 40 degrees # and 20 degrees in diameter small 280 40 20 # # change the point size of poles to 20 points pointsize pole 20 # # draw the pole to the plane mentioned above pole 20 30
Note that to present images in this WWW document I had to make the lines thicker. To see the original output try either the postscript version or the pdf version. Readers for the PDF format can be obtained from Adobe.
You should also be aware of the programs stnet and sttics that draw a standard stereonet or tics on a stereonet for use with onnet.
Onnet was written by Andy Michael while at Stanford University and was updated into the postscript writing version 2.0 at the USGS. The algorithm for small circles cribbed from Paul Layer.
Onnet was written in such a way as to make adding features easy. So if it doesn't do something you want, please tell me by sending mail to andy@andreas.wr.usgs.gov. However, remember that onnet is a plotting program. It plots data or results; it does not, and should not, perform manipulations on the data. Thus suggestions that onnet should compute rotations or contour data are not likely to be acted upon. However programs that do these could very easily plot their output by writing onnet input files.
Step 0: Obtain executable program from
http://quake.wr.usgs.gov/~michael/software/onnet if one for your
system is available. Otherwise go to step 1.
Step 1: Obtain the source code for onnet from
http://quake.wr.usgs.gov/~michael/software/onnet.
After obtaining the file you will need to uncompress it and use the tar
command to extract the files.
Step 2: Onnet uses the GMT (Generic Mapping Tools) postscript subroutine
libraries (version 3.3 or later). If GMT is installed on your machine
then edit the file Makeonnet to point to the location of the libraries
and include files. If GMT is not installed on your machine then obtain
it from http://www.soest.hawaii.edu/gmt.
They have made the installation process very easy.
Step 3: In the file Makeonnet edit the word gmtstuff to point to the
gmt libraries on your system.
Give the command "make -f Makeonnet". This should compile the code
and produce the executable file onnet. To make stnet and sttics give the
commands "make -f Makestnet" and "make -f Makesttics".
Step 4: Put onnet, stnet, and sttics in a directory in your search path
so that you can run them from anywhere.
Step 5: If you have created an executable for a system not available on
the web site and are willing to let me put it there send me email at
michael@andreas.wr.usgs.gov.
The simplest usage for onnet is to put the commands into an input file (let's
call it input) and create a file called output.ps with the command:
Input files can also be specified by listing
them on the command line such as "onnet input". Multiple input files can
be specified and will be processed to make one plot. The order of processing
goes as follows:
Output files are either on standard out. Errors will go to standard error.
This section is the meat of the documentation, it tells you everything
onnet can do, and how to structure an input file. Input lines in
onnet files are divided into viewing parameters and commands and
comment lines. Viewing parameters control how things will be displayed
such as the thickness of lines or the color of symbols. Commands actually
plot things like planes, poles, or lines.
The input lines can come in any order except:
Try copying the following into a file and play with it. It should
give you an idea of onnet's capabilities. Afterwards is what should
come out.
Note that to present images in this WWW document I had to make the lines
thicker. To see the original output try either the
postscript version or the
pdf version.
Another example comes from my own work. Here is the file:
Note that to present images in this WWW document I had to make the lines
thicker. To see the original output try either the
postscript version or the
pdf version.
The following are already on the list to be added. But, they've
been there for a long time so feel free to let me know if you
really want them.
Two auxiliary programs are useful for drawing the standard great and
small circles on a stereonet or for adding tics to a stereonet. Each
program creates onnet input files.
Stnet is a program for making a standard stereonet with planes
striking N-S and small circles about the horizontal N-S axis.
Stnet makes onnet input files and can be used in conjunction with
your own input files.
The output goes on standard output and the errors are on standard error.
The best way to learn about stnet is to just try it and pipe the
output into onnet and view the results. A useful feature is that
if your onnet input commands for a plot are in a file called "myplot"
then you can overlay them on a standard stereonet with the command
Sttics is a program for making a tics on a stereonet.
Sttics makes onnet input files and can be used in conjunction with
your own input files.
The usage is: sttics [options] where the options are:
The output goes on standard output and the errors are on standard error.
The best way to learn about sttics is to just try it and pipe the
output into onnet and view the results. A useful feature is that
if your onnet input commands for a plot are in a file called "myplot"
then you can overlay them on a the tic marks with the commandInstallation
Usage
% onnet input > output.ps
output.ps can then be viewed with a postscript viewer such as ghostscript
or printed on any postscript plotter.
onnet input2 input3 < input1 > output.ps
where the files are processed in the order input1, input2, input3.
Input Files
Please note the following common elements in onnet input lines so that they
do not need to be repeated for each command or viewing parameter.
Viewing Parameters
Commands
Miscellaneous lines
Examples
title Much of Onnet
through
radius 5.
line 20 30
line 20 -20
# a meaningless comment line
symbol line 1 2
fatness line 3
line 30 30
text 30 30 :label this point
line 30 -20
pole 45 60
size pole 8.
color pole 3
pole 45 20
reflect
fat 0
plane 190 45
fatness rake 3
size rake 5.
rake 260
small 340 10 15
through
small 320 10 15
great 180 10 200 30
move 270 20
draw 280 10
fatness circle 1
fatness plane 1
fatness rake 2
r 5.
fatness title 3
title Slickensides
p 135.00 61.00
rk -80.00
p 126.00 59.00
rk -100.00
p 0.00 80.00
rk -58.00
p 322.00 68.00
rk -78.00
p 315.00 63.00
rk -78.00
p 20.00 88.00
rk -59.00
p 344.00 78.00
rk -65.00
p 136.00 60.00
rk -100.00
p 347.00 61.00
rk -94.00
p 157.00 56.00
rk -88.00
p 139.00 70.00
rk -111.00
p 306.00 50.00
rk -94.00
Future Features
Auxiliary Programs
stnet
Usage
The usage is: stnet [options] where the options are:
stnet | onnet myplot
sttics
Usage
sttics | onnet myplot