.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "CAVERN" "1" "05 March 2024" "" ""
.SH NAME
cavern \- process raw survey data
.SH SYNOPSIS
\fBcavern\fR [ \fBoptions\fR ] \fBsurvex data file\fR\fI ...\fR
.SH "DESCRIPTION"
.PP
Cavern is the \fBSurvex\fR data processing engine.
.PP
If multiple survey data files are listed on the command line,
they are processed in order from left to right. Settings are reset to
their defaults before processing each file.
.SH "OPTIONS"
.TP
\fB-o, --output=OUTPUT\fR
Sets location for output files.
.TP
\fB-q, --quiet\fR
Only show a brief summary (--quiet --quiet or -qq will display
warnings and errors only).
.TP
\fB-s, --no-auxiliary-files\fR
do not create .err file.
.TP
\fB-w, --warnings-are-errors\fR
turn warnings into errors.
.TP
\fB--log\fR
Send screen output to a .log file.
.TP
\fB-v, --3d-version\fR
Specify the 3d file format version to output. By default the latest
version is written, but you can override this to produce a 3d file which can
be read by software which doesn't understand the latest 3d file format version.
Note that any information which the specified format version didn't support
will be omitted.
.SH "OUTPUT"
.PP
Cavern reads in text files containing the survey data
\fI\&.svx\fR) and outputs two files, with the extensions
\fI\&.3d\fR and \fI\&.err\fR\&.
By default these files are put in the current directory,
with the same base filename as the first \fI\&.svx\fR file read,
but a different extension.
You can change the directory and/or base filename using the --output
command line option.
.PP
E.g. if you process the data file \fIentrance.svx\fR
with the command \fBcavern entrance\fR then the files
\fIentrance.3d\fR and \fIentrance.err\fR
will be created.
.PP
Cavern also gives a range of statistics at the end of a successful run:
.TP 0.2i
\(bu
The highest and lowest stations and the height difference
between them
.TP 0.2i
\(bu
The total length of the survey (before and after
adjustment). This total excludes survey legs flagged as SURFACE,
DUPLICATE, or SPLAY.
.TP 0.2i
\(bu
The number of stations and legs. Note that a *EQUATE
is counted as a leg in this statistic.
.TP 0.2i
\(bu
The East-West and North-South ranges, and the North-most,
South-most, East-most, and West-most stations.
.TP 0.2i
\(bu
The number of each size of node in the network (where size
is number of connections to a station) i.e. a one node is the end of a
dead-end traverse, a two-node is a typical station in the middle of a
traverse, a three-node is a T-junction etc.
.TP 0.2i
\(bu
How long the processing took and how much CPU time was
used.
.SS ".3D - DATA DESCRIBING THE LOOP-CLOSED CENTRE LINE"
.PP
This file contains details of the stations and legs, and any
flags associated with them.
.SS ".ERR - LOOP CLOSURE STATISTICS (PERCENTAGE ERRORS, ETC)"
.PP
This file contains statistics about each traverse in the survey
which is part of a loop. It includes various statistics for each
traverse, such as the percentage error per leg.
You should study this information to determine if any parts of the survey
are of lower quality or contain gross errors.
.SH "ERROR MESSAGES"
.PP
There are a number of error messages that you may get when processing
data. Most of these are self explanatory, and will be caused by such
problems as typing mistakes, or by your survey data not being attached
to fixed points (in this situation, \fBSurvex\fR will
list some of the stations that are not connected).
.PP
Along with the error message, the filename and line number of the offending
line will be printed (or the filename for errors such as `file not
found'). The format of the filename and line number is that used by
gcc, so if your editor can parse errors from gcc, you should be able to
set it to allow you to jump to the file and line of each error.
.PP
Cavern will stop after more than 50 errors. This usually indicates
something like the incorrect data order being specified. Deluging
the user with error messages makes the actual problem less clear.
.SH "SEE ALSO"
.PP
\fBaven\fR(1),
\fBdiffpos\fR(1),
\fBdump3d\fR(1),
\fBextend\fR(1),
\fBsorterr\fR(1),
\fBsurvexport\fR(1)