1 <!DOCTYPE article PUBLIC
"-//OASIS//DTD DocBook V4.1//EN" [
2 <!ENTITY man.aven SYSTEM
"aven.sgml">
3 <!ENTITY man.cavern SYSTEM
"cavern.sgml">
4 <!ENTITY man.diffpos SYSTEM
"diffpos.sgml">
5 <!ENTITY man.dump3d SYSTEM
"dump3d.sgml">
6 <!ENTITY man.extend SYSTEM
"extend.sgml">
7 <!ENTITY man.sorterr SYSTEM
"sorterr.sgml">
8 <!ENTITY man.survexport SYSTEM
"survexport.sgml">
15 defaults to a list of the leafnames of the <filename>.svx</filename> files specified on the
16 command line (with any paths and extensions removed).
18 e.g.: cavern entrance.svx \data\2ndpart.svx
20 would give a surveytitle of 'entrance 2ndpart'.
22 but this may change...
25 mark-up of Windows Windows NT etc?
26 section on "design philosophy"
31 *data cartesian from to dx dy dz
34 ; upstream - downstream
35 nuiping.gowiththeflow.129 dachao.upstream.105 0 0 0 ; last number is drop in height across the sump
38 ``Quick start'' section
40 - install (by OS): unpacking, configuration (language, where support files live)
42 - lead people through entering and processing
43 a sample survey. Take examples from surveying books and real surveys.
46 <Para>The other really important commands apart from *BEGIN, *END, and
47 *INCLUDE are *EQUATE and *FIX.
50 <Para>*EQUATE is used to join surveys together, e.g.
53 <programlisting>*equate entrance.6 adrian.1</programlisting>
56 indicates that station 6 of the entrance survey was used as
57 the station 1 of the Adrian's Route survey.
60 <Para>*FIX is for fixing control points - for example:
64 *fix 161.entrance.1 0 0 1780</programlisting>
66 <Para>fixes the 1st point of the 'entrance' survey at the coordinates
67 0 (east-west), 0 (north-south), 1780 (altitude).
72 <listitem><para>when talking about the survey network, we talk about an
73 <emphasis>n</emphasis>-node to describe the number of connections to
74 a station. So a 1-node is a station with only 1 leg to or from it
75 - i.e. The end of a passage or survey. A
76 2-node is a typical station along a passage with a survey leg coming
77 into it, and one going out. A 3-node is a station with three legs
78 joining it, e.g. at a T-junction. And so on.
83 <article Status=
"draft" id=
"index">
85 <Title><Application>Survex
</Application> <!--VERSION-->1.4.8 Manual
</Title>
88 <FirstName>Olly
</FirstName>
89 <SurName>Betts
</SurName>
91 Olly Betts wrote most of
<Application>Survex
</Application>.
94 <Address><Email>olly@survex.com
</Email></Address>
98 <SurName>Wookey
</SurName>
100 Wookey is a small furry creature.
101 </Para></AuthorBlurb>
103 <Address><Email>wookey@survex.com
</Email></Address>
108 <year>1998-
2018</year>
109 <holder role=
"mailto:olly@survex.com">Olly Betts
</holder>
113 This is the manual for
<Application>Survex
</Application> - an open-source software package for
119 <Sect1><Title>Introduction
</Title>
120 <?dbhtml filename=
"intro.htm">
123 This section describes what
<Application>Survex
</Application> is, and outlines the scope of this
127 <Sect2><Title>About
<Application>Survex
</Application></Title>
129 <Para><Application>Survex
</Application> is a multi-platform open-source cave surveying
131 Versions
1.2 and later run on UNIX, Microsoft Windows, and macOS.
132 We're investigating support for phones and tablets.
135 <Para>We are well aware that not everyone has access to super hardware
136 - often surveying projects are run on little or no budget and any
137 computers used are donated. We aim to ensure that
<Application>Survex
</Application> is
138 feasible to use on low-spec machines. Obviously it won't be as
139 responsive, but we intend it to be usable.
140 Please help us to achieve this by giving us some feedback
141 if you use
<Application>Survex
</Application> on a slow machine.
</Para>
143 <Para><Application>Survex
</Application> is capable of processing extremely complex caves very
144 quickly and has a very effective, real-time cave viewer which allows
145 you to rotate, zoom, and pan the cave using mouse or keyboard. We have
146 tested it extensively using
<Acronym>CUCC
</Acronym> and
<Acronym>ARGE
</Acronym>'s surveys of the caves
147 under the Loser Plateau in Austria (over
25,
000 survey legs, and over
148 140km of underground survey data). This can all be processed in around
149 10 seconds on a low-end netbook.
150 Survex is also used by many other survey projects around the world,
152 <ulink url=
"http://www.oucc.org.uk/draenen/draenenmain.htm"
153 >Ogof Draenen
</ulink> survey, the
154 <ulink url=
"http://www.easegill.org.uk/">Easegill
</ulink> resurvey project,
155 the
<Acronym>OFD
</Acronym> survey, the
156 <!-- url="http://milos2.zoo.ox.ac.uk/~oucc/reports/surveys/surveys.htm" -->
157 <ulink url=
"http://www.oucc.org.uk/reports/surveys/surveys.htm"
158 ><Acronym>OUCC
</Acronym> Picos expeditions
</ulink>, and the
159 <ulink url=
"http://www.hongmeigui.net/">Hong Meigui China
160 expeditions
</ulink>.
<!-- FIXME more? --></Para>
162 <Para><Application>Survex
</Application> is still actively being worked on. Version
1.0 was
163 complete in some sense, but development continues - initially in reshaping
164 Survex into a more integrated GUI package.
</Para>
166 <Para>We encourage feedback from users on important features or problems,
167 which will help to direct future development. See the
"Mailing List" section
168 of this manual for the best way to contact us.
</Para>
173 <Para>Because <Application>Survex</Application> is still being actively developed, this document
174 has an unfortunate tendency to lag slightly behind the capabilities of the
175 software. The latest version is now available on the web at <ulink
176 url="https://survex.com/">https://survex.com/</ulink> - check there for latest info.
181 <Sect2><Title>Other Documentation</Title>
185 <term>NEWS or NEWS.txt</term>
186 <listitem><Para>a list of changes of interest to
187 <Application>Survex</Application> users, broken down by version number. Consult this file
188 when upgrading to find out what has changed since the version you were
194 <term>ChangeLog or CHANGES.txt</term>
195 <listitem><Para>a much more detailed list of changes, aimed at developers
196 rather than end users.
201 <term>BUGS or BUGS.txt</term>
202 <listitem><Para>a list of known bugs.
207 <term>TODO or TODO.txt</term>
208 <listitem><Para>planned changes and enhancements.
212 FIXME: merge INSTALL* into here, then process separately and textify
216 <term>INSTALL or INSTALL.txt</term>
217 <listitem><Para>instructions for installing <Application>Survex</Application>. The
218 Microsoft Windows version comes packaged up with an installation wizard,
219 so this file doesn't exist there (you just run the package and follow
220 the on-screen instructions).
228 <Sect2><Title>About this Manual
</Title>
231 If there's a part of this manual you find hard to understand, please do
232 let us know. We already know Survex well, so it can be hard for us
233 to spot areas where the manual doesn't given enough information, or
234 doesn't explain things clearly enough to follow when you don't know what's
235 going on. It's helpful is you can suggest a better wording, but don't worry
236 if you can't, just explain the problem as precisely as you can.
240 The master version of this manual is an
<acronym>SGML
</acronym>
241 document written using the
<ulink url=
"http://www.docbook.org/">docbook
242 <acronym>DTD
</acronym></ulink>,
243 and automatically converted to a number of other formats. If
244 you are going to send us
<emphasis>major
</emphasis> changes, it's much easier
245 to include them if you work from this master. You can get it
246 from the source archive (docs/manual.sgml) or from
<ulink
247 url=
"https://survex.com/docs.html">the Survex website
</ulink>.
250 <Sect3><Title>Terminology
</Title>
252 <Para>Throughout this document we use British terminology for
258 <listitem><para>a point in the cave that you survey from and/or to
259 </para></listitem></varlistentry>
263 <listitem><para>a line joining two stations
264 </para></listitem></varlistentry>
268 <listitem><para>a group of legs surveyed on the same trip
269 </para></listitem></varlistentry>
277 <!-- FIXME: Further sources of info: website, mailing lists, other docs -->
281 <Sect1><Title>Getting Started
</Title>
282 <?dbhtml filename=
"getstart.htm">
284 <Para>This section covers how to obtain the software, and how to unpack and
285 install it, and how to configure it.
</Para>
287 <Sect2><Title>Obtaining
<Application>Survex
</Application></Title>
289 <Para>The latest version is available from the
<Application>Survex
</Application> website:
290 <ulink url=
"https://survex.com/">https://survex.com/
</ulink>. It is also
291 freely redistributable, so you welcome to get a copy from someone else
292 who has already downloaded it.
</Para>
294 <Para>If you want some sample data to experiment with, you can download some
295 from the Survex website too:
296 <ulink url=
"https://survex.com/software/sample.tar.gz">https://survex.com/software/sample.tar.gz
</ulink></Para>
300 <Sect2><Title>Installing
<Application>Survex
</Application></Title>
302 <Para>The details of installation depend greatly on what platform you
303 are using, so there is a separate section below for each platform.
</Para>
305 <Sect3><Title>Linux
</Title>
308 Pre-built versions of Survex are available for some Linux distributions.
309 See the
<ulink url=
"https://survex.com/download.html?platform=linux">Survex
310 for Linux download page
</ulink> on our website for up-to-date information.
314 You'll need root access to install these prebuilt packages.
315 If you don't have root access you will need to build from source
316 (see the next section).
319 <!-- FIXME Add Gnome file association note for Linux/Unix
320 <Para>On Microsoft Windows, <Application>Survex</Application> installs with
321 suitable file associations so that you can drive it from the GUI.
322 On UNIX you need to drive <Application>Survex</Application> from a command-line
323 prompt (or set some a filemanager or graphics shell).
329 <Sect3><Title>macOS
</Title>
332 The easiest way to install a recent release of Survex on macOS is by using
333 the Homebrew package manager. If you don't already use Homebrew, you'll
334 need to install it first. See the
335 <ulink url=
"https://survex.com/download.html?platform=macosx">macOS
336 download page on the website
</ulink> for installation instructions.
341 <Sect3><Title>Other versions of UNIX
</Title>
343 <Para>For other UNIX versions you'll need to get the source code
344 and compile it on your system. Unpack the sources and read
345 the file called INSTALL in the top level for details about building
351 <Sect3><Title>Microsoft Windows
</Title>
354 This version comes packaged with an installation wizard. Just
355 run the downloaded package and it will lead you through the
356 installation process.
360 Survex
1.4.8 and later support installing for all users (which requires
361 administrator rights) or just for the current user (which doesn't).
362 If installed for just the current user, other user accounts won't see
363 the file associations, menu entries, desktop icons, etc for Survex.
367 Note that if you have an existing installation the installer will see
368 it and try to upgrade it, and if that installation was done with administrator
369 rights (which any installation of
1.4.7 or earlier will be) you'll also
370 need administrator rights to upgrade. To change to a non-admin installation
371 you need to first uninstall the existing admin install (which will need admin
372 rights) then install the new version.
376 The survey viewer that's part of
<Application>Survex
</Application> is called
377 aven, and uses OpenGL for
3d rendering.
381 If you find that
3D rendering is sometimes very slow (e.g. one user reported
382 very slow performance when running full screen, while running in a window
383 was fine) then try installing the OpenGL driver supplied by the manufacturer
384 of your graphics card rather than the driver Microsoft supply.
388 The installer creates a Survex group in the Programs sub-menu of the
389 Start menu containing the following items:
394 <ListItem><Para>Aven
</Para></ListItem>
396 <ListItem><Para>Documentation
</Para></ListItem>
398 <ListItem><Para>Uninstall Survex
</Para></ListItem>
403 Icons are installed for
<filename>.svx
</filename>,
<filename>.3d
</filename>,
<filename>.err
</filename>, and
<filename>.pos
</filename> files, and also for
404 Compass Plot files (
<filename>.plt
</filename> and
<filename>.plf
</filename>)
405 (which Survex can read).
<!-- FIXME XYZ -->
406 Double-clicking on a
<filename>.svx
</filename> file loads it for editing. To process it to
407 produce a
<filename>.3d
</filename> file, right click and choose
"Process" from
408 the menu - this runs aven to process the
<filename>.svx
</filename> file and
409 automatically load the resultant
<filename>.3d
</filename> file.
410 All the
<Application>Survex
</Application> file types can be right clicked on to give a menu of
415 <VarListEntry><Term><filename>.svx
</filename></Term>
418 <VarListEntry><Term>Process
</Term>
420 Process file with aven to produce
<filename>.3d
</filename> file (and
<filename>.err
</filename> file)
427 <VarListEntry><Term><filename>.3d
</filename></Term>
430 <VarListEntry><Term>Open
</Term>
435 <VarListEntry><Term>Print
</Term>
437 Print the file via Aven
440 <VarListEntry><Term>Extend
</Term>
442 Produce extended elevation
445 <VarListEntry><Term>Convert to DXF
</Term>
447 This entry used to be provided to allow converting to a DXF file (suitable
448 for importing into many CAD packages) but this functionality is now available
449 from inside Aven with the ability to control what is exported, and this entry
450 was dropped in
1.2.35.
453 <VarListEntry><Term>Convert for hand plotting
</Term>
455 This entry used to be provided to allow converting to a
<filename>.pos
</filename> file
456 listing all the stations and their coordinates, but this functionality is now
457 available from inside Aven with the ability to control what is exported. and
458 this entry was dropped in
1.2.35.
465 <VarListEntry><Term><filename>.err
</filename></Term>
468 <VarListEntry><Term>Open
</Term>
470 Load file into Notepad
473 <VarListEntry><Term>Sort by Error
</Term>
475 Sort
<filename>.err
</filename> file by the error in each traverse
478 <VarListEntry><Term>Sort by Horizontal Error
</Term>
480 Sort
<filename>.err
</filename> file by the horizontal error in each traverse
483 <VarListEntry><Term>Sort by Vertical Error
</Term>
485 Sort
<filename>.err
</filename> file by the vertical error in each traverse
488 <VarListEntry><Term>Sort by Percentage Error
</Term>
490 Sort
<filename>.err
</filename> file by the percentage error in each traverse
493 <VarListEntry><Term>Sort by Error per Leg
</Term>
495 Sort
<filename>.err
</filename> file by the error per leg in each traverse
507 <Sect2><Title>Configuration
</Title>
509 <Sect3><Title>Selecting Your Preferred Language
</Title>
511 <Para>Survex has extensive internationalisation capabilities. The
512 language used for messages from Survex and most of the library calls
513 it uses can be changed. By default this is picked up from the
514 language the operating system is set to use (from
"Regional Settings"
515 in Control Panel on Microsoft Windows, from the
516 <systemitem>LANG
</systemitem> environment variable on UNIX
518 is found, or
<Application>Survex
</Application> hasn't been translated into the
519 requested language, UK English is used.
</Para>
522 However you may want to override the language manually -
523 for example if Survex isn't available in your native language
524 you'll want to choose the supported language you understand best.
528 To do this, you set the
529 <systemitem>SURVEXLANG
</systemitem> environment variable. Here's a list
530 of the codes currently supported:
</Para>
532 <informaltable frame=
"all">
535 <row><entry>Code
</entry><entry>Language
</entry></row>
538 <row><entry>en
</entry><entry>International English
</entry></row>
539 <row><entry>en_US
</entry><entry>US English
</entry></row>
540 <row><entry>bg
</entry><entry>Bulgarian
</entry></row>
541 <row><entry>ca
</entry><entry>Catalan
</entry></row>
542 <row><entry>de
</entry><entry>German
</entry></row>
543 <row><entry>de_CH
</entry><entry>Swiss German
</entry></row>
544 <row><entry>el
</entry><entry>Greek
</entry></row>
545 <row><entry>es
</entry><entry>Spanish
</entry></row>
546 <row><entry>fr
</entry><entry>French
</entry></row>
547 <row><entry>hu
</entry><entry>Hungarian
</entry></row>
548 <row><entry>id
</entry><entry>Indonesian
</entry></row>
549 <row><entry>it
</entry><entry>Italian
</entry></row>
550 <row><entry>pl
</entry><entry>Polish
</entry></row>
551 <row><entry>pt
</entry><entry>Portuguese
</entry></row>
552 <row><entry>pt_BR
</entry><entry>Brazillian Portuguese
</entry></row>
553 <row><entry>ro
</entry><entry>Romanian
</entry></row>
554 <row><entry>ru
</entry><entry>Russian
</entry></row>
555 <row><entry>sk
</entry><entry>Slovak
</entry></row>
556 <row><entry>zh_CN
</entry><entry>Chinese (Simplified)
</entry></row>
561 <Para>Here are examples of how to set this environment variable to give
562 messages in French (language code fr):
</Para>
565 <VarListEntry><Term>Microsoft Windows
</Term>
567 For MS Windows proceed as follows (this description was written from
568 MS Windows
2000, but it should be fairly similar in other versions): Open the
569 Start Menu, navigate to the Settings sub-menu, and
570 open Control Panel. Open System (picture of a computer) and click on the
571 Advanced tab. Choose `Environmental Variables', and create a new one: name
572 <systemitem>SURVEXLANG
</systemitem>, value
<systemitem>fr
</systemitem>.
573 Click OK and the new value should be effective immediately.
576 <VarListEntry><Term>UNIX - csh/tcsh
</Term>
577 <ListItem><Para><userinput>setenv SURVEXLANG fr
</userinput></Para></ListItem>
579 <VarListEntry><Term>UNIX - sh/bash
</Term>
580 <ListItem><Para><userinput>SURVEXLANG=fr ; export SURVEXLANG
</userinput></Para></ListItem>
584 <Para>If
<Application>Survex
</Application> isn't available in your language, you could
585 help out by providing a translation. The initial translation is
586 likely to be about a day's work; after that translations for
587 new or changed messages are occasionally required. Contact us for details
588 if you're interested.
</Para>
594 <Sect2><Title>Using
<Application>Survex
</Application></Title>
597 Most common tasks can now be accomplished through Aven - processing survey
598 data, viewing the processed data, printing, exporting to other formats,
599 and producing simple extended elevations.
603 A few tasks still require you to use the command line. And some functionality
604 is available both via aven and from the command line, which allows it to be
609 The command line programs that come with Survex are:
614 <VarListEntry><Term>extend
</Term>
616 Produces extended elevations - this is probably the most useful of
617 these command line tools. Since version
1.2.27 you can produce simple
618 extended elevations from Aven using the
"Extended Elevation" function.
619 However the command line tool allows you to specify a spec file to
620 control how the survey is extended, which you can't currently do via
625 <VarListEntry><Term>diffpos
</Term>
627 Compares the positions of stations in two
.3d, .pos, etc files.
631 <VarListEntry><Term>sorterr
</Term>
633 Sorts a .err file by a specified field.
637 <VarListEntry><Term>survexport
</Term>
639 Provides access to Aven's
"Export" functionality from the command line,
640 which can be useful in scripts.
644 <VarListEntry><Term>cavern
</Term>
646 Processes survey data, but since version
1.2.3 you can process .svx
647 files by simply opening them with Aven, so you no longer need to run
648 cavern from the command line. The main reason to run cavern directly
649 is for use in scripts.
653 <VarListEntry><Term>dump3d
</Term>
655 Dumps out a list of the items in a
.3d file - it's mainly useful for
670 run cavern (through aven)
674 how to print/export etc
678 <!-- FIXME perhaps move this after data files section? -->
679 <Sect1><Title>Survex Programs
</Title>
680 <?dbhtml filename=
"cmdline.htm">
682 <Sect2><Title>Standard Options
</Title>
684 <Para>All
<Application>Survex
</Application> programs respond to the following command line options:
689 <VarListEntry><Term>--help
</Term><listitem><Para>
690 display option summary and exit
691 </Para></listitem></VarListEntry>
693 <VarListEntry><Term>--version
</Term><listitem><Para>
694 output version information and exit
695 </Para></listitem></VarListEntry>
701 <Sect2><Title>Short and Long Options
</Title>
704 Options have two forms: short (a dash followed by a single letter e.g.
705 <command>cavern -q
</command>) and long (two dashes followed by one or more words e.g.
706 <command>cavern --quiet
</command>). The long form is generally easier to
707 remember, while the short form is quicker to type. Options are often
708 available in both forms.
711 <Note><Para>Command line options are case sensitive, so
"-B" and
"-b"
712 are different (this didn't used to be the case before Survex
0.90). Case
713 sensitivity doubles the number of available short options (and is also the
718 <Sect2><Title>Filenames on the Command Line
</Title>
720 <Para>Filenames with spaces can be processed (provided your operating system
721 supports them - UNIX does, and so do modern versions of Microsoft
722 Windows). You need to enclose the filename in quotes like so:
723 <userinput>cavern
"Spider Cave"</userinput>
726 <Para>A file specified on the command line of any of the
<Application>Survex
</Application> suite
727 of programs will be looked for as specified. If it is not found, then the
728 file is looked for with the appropriate extension appended. So
729 <userinput>cavern survey
</userinput> will look first for
730 <filename>survey
</filename>, then for
<filename>survey.svx
</filename>.
735 <Sect2><title>Command Reference
</title>
737 <refentry id=
"cavern">
738 <?dbhtml filename=
"cavern.htm">
742 <?dbhtml filename=
"aven.htm">
745 <refentry id=
"diffpos">
746 <?dbhtml filename=
"diffpos.htm">
749 <refentry id=
"extend">
750 <?dbhtml filename=
"extend.htm">
753 <refentry id=
"sorterr">
754 <?dbhtml filename=
"sorterr.htm">
757 <refentry id=
"survexport">
758 <?dbhtml filename=
"survexport.htm">
766 <Sect1><Title><Application>Survex
</Application> data files
</Title>
767 <?dbhtml filename=
"datafile.htm">
769 <Para>Survey data is entered in the form of text files. You can use any
770 text editor you like for this, so long as it has the capability of
771 writing a plain ASCII text file. The data format is very flexible;
772 unlike some other cave surveying software, Survex does not require
773 survey legs to be rearranged to suit the computer, and the ordering
774 of instrument readings on each line is fully specifiable. So you can enter
775 your data much as it appears on the survey notes, which is important
776 in reducing the opportunities for transcription errors.
780 Also all the special characters are user-definable - for example,
781 the separators can be spaces and tabs, or commas (e.g. when exporting from a
782 spreadsheet), etc; the decimal point can be a slash (for clarity), a comma
783 (as used in continental Europe), or anything else you care to choose.
785 means that it should be possible to read in data from almost any sort of
786 survey data file without much work.
789 <Para><Application>Survex
</Application> places no restrictions on you in terms of the ordering
790 of survey legs. You can enter or process data in any order and
<Application>Survex
</Application> will
791 read it all in before determining how it is connected. You can also use the
792 hierarchical naming so that you do not need to worry about using the same
796 <!-- FIXME don't encourage separate processing -->
797 <Para>The usual arrangement is to have one file which lists all the others
798 that are included (e.g.,
<filename>161.svx
</filename>). Then
799 <command>cavern
161</command> will process all your data. To just process a
800 section use the filename for that section, e.g.
<command>cavern dtime
</command>
801 will process the dreamtime file/section of Kaninchenh
öhle. To
802 help you out, if all legs in a survey are connected to one another
803 but the survey has no fixed points, cavern
804 will 'invent' a fixed point and print a warning message to this
809 It is up to you what data you put in which files. You
810 can have one file per trip, or per area of the cave, or just one
811 file for the whole cave if you like.
812 On a large survey project it makes sense to group related surveys in the
813 same file or directory.
815 <!-- FIXME: wook sez:
817 Point out in documentation that file structure and survey structure don't
818 have to be the same. And in particular that folder/directory names can be
821 Which is partly covered above, though the last bit isn't...
824 <!-- FIXME "Anatomy of a Survey" section -->
825 <Sect2><Title>Readings
</Title>
827 <Para>Blank lines (i.e. lines consisting solely of BLANK characters)
828 are ignored. The last line in the file need not be terminated by
829 an end of line character. All fields on a line must be separated
830 by at least one BLANK character. An OMIT character
831 (default '-') indicates that a field is unused. If the field is
832 not optional, then an error is given.
837 <Sect2><Title>Survey Station Names
</Title>
839 <Para><Application>Survex
</Application> has a powerful system for naming stations. It
840 uses a hierarchy of survey names, similar to the nested folders
841 your computer stores files in.
842 So point
6 in the entrance survey of Kaninchenh
öhle
843 (cave number
161) is referred to as:
161.entrance
.6
846 <Para>This seems a natural way to refer to station names. It also
847 means that it is very easy to include more levels, for example if you
848 want to plot all the caves in the area you just list them all in
849 another file, specifying a new prefix. So to group
3 nearby caves
850 on the Loser Plateau you would use a file like
859 *end Loser
</programlisting>
862 The entrance series point mentioned above would now be referred
863 to as: Loser
.161.entrance
.6
867 <Para>This may seem a tad complex but is really very natural once you
871 <Para>You do not have to use this system at all, and can just give all
872 stations unique identifiers if you like:
875 <Para>1,
2,
3,
4,
5, ...
1381,
1382
881 <Para>AA06, AA07, P34, ZZ6, etc.
885 <Para>However you'll loose the ability to handle subsurveys if you do.
889 <Para>Station and survey names may contain any alphanumeric characters and
890 additionally any characters in NAMES (default `_' and `-'). Alphabetic
891 characters may be forced to upper or lower case by using the *case
892 command. Station names may be any length - if you want to only treat
893 the first few characters as significant you can get cavern to truncate
894 the names using the *truncate command.
897 <Sect3><Title>Anonymous Stations
</Title>
900 Survex supports the concept of anonymous survey stations. That is
901 survey stations without a name. Each time an anonymous station name is
902 used it represents a different point. Currently three types of anonymous
903 station are supported, referred to by one, two or three separator characters
904 - with the default separator of '.', that means '.', '..', and '...' are
905 anonymous stations. Their meanings are:
</Para>
908 <VarListEntry><Term>Single separator ('.' by default)
</Term>
910 An anonymous non-wall point at the end of an implicit splay.
911 </Para></ListItem></VarListEntry>
913 <VarListEntry><Term>Double separator ('..' by default)
</Term>
915 An anonymous wall point at the end of an implicit splay.
916 </Para></ListItem></VarListEntry>
918 <VarListEntry><Term>Triple separator ('...' by default)
</Term>
920 an anonymous point with no implicit flags on the leg (intended for cases like
921 a disto leg along a continuing passage).
922 </Para></ListItem></VarListEntry>
926 You can map '-' to '..' (for compatibility with data from pocket topo) using
934 <Para>Support for anonymous stations and for '*alias station - ..' was added in
941 <Sect2><Title>Numeric fields
</Title>
943 <Para>[
<MINUS
>|
<PLUS
>]
<integer part
> [
<DECIMAL
>
944 [
<decimal fraction
> ] ]
948 or [
<MINUS
>|
<PLUS
>]
<DECIMAL
> <dec fraction
>
951 <Para><!-- FIXME: put informal description first -->
952 i.e. optional PLUS or MINUS sign in front, with
953 optional DECIMAL character (default '.'), which may be
954 embedded, leading or trailing. No spaces are allowed between the
959 All of these are valid examples: +
47,
23, -
22, +
4.5,
1.3, -
0.7, +
.15,
.4,
965 <Sect2><Title>Accuracy
</Title>
967 <Para>Accuracy assessments may be provided or defaulted for any survey
968 leg. These determine the distribution of loop closure errors over the
969 legs in the loop. See *SD for more information.
975 <Sect2><Title>Survey Coordinate Range</Title>
978 If we store distances to nearest 10um (0.01mm) in 4 bytes, this
979 gives a range of ~20 km. This method is currently not used, but
980 has several advantages (data storage space [double uses 8 bytes
981 - with my C compiler], speed (unless your FP chip works in parallel
982 with your CPU [e.g. the new Acorn FPU for the ARM], and numerical
983 accuracy [compared to using floats at least]) and so may be adopted
984 in future). Nearest 0.1mm gives -200 km, which is enough for most
985 people, but may mean rounding errors become significant.
989 I will have to do some sums...
996 <Sect2><Title>Cavern Commands
</Title>
998 <Para>Commands in
<filename>.svx
</filename> files are introduced by an asterisk
999 (by default - this can be changed using the
<command>set
</command> command).
1002 <Para>The commands are documented in a common format:
1005 <!-- FIXME: make this a RefGroup (or whatever that's called) of RefEntry-s? -->
1007 <listitem><para>Command Name
</para></listitem>
1008 <listitem><para>Syntax
</para></listitem>
1009 <listitem><para>Example
</para></listitem>
1010 <listitem><para>Validity
</para></listitem>
1012 anywhere, in a block, at start of a block, after a begin (for *end)
1014 <listitem><para>Description
</para></listitem>
1015 <listitem><para>Caveats
</para></listitem>
1016 <listitem><para>See Also
</para></listitem>
1018 "Usefulness" - or status maybe?
1019 deprecated, esoteric (*set), useful, vital
1023 <Sect3><Title>ALIAS
</Title>
1027 <VarListEntry><Term>Syntax
</Term>
1029 <listitem><Para>*alias station
<alias
> [
<target
>]
</Para></listitem>
1033 <VarListEntry><Term>Example
</Term>
1044 *end parsons_nose
</programlisting>
1050 <VarListEntry><Term>Description
</Term>
1052 <listitem><Para>*alias allows you to map a station name which appears in
1053 the survey data to a different name internally. At present, you can only
1054 create an alias of '-' to '..', which is intended to support the pocket topo
1055 style notation of '-' being a splay to an anonymous point on the cave wall.
1056 And you can unalias '-' with '*alias station -'.
1060 Aliases are scoped by *begin/*end blocks - when a *end is reached, the aliases
1061 in force at the corresponding begin are restored.
1065 *alias was added in Survex
1.2.7.
1070 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1072 <VarListEntry><Term>See Also
</Term>
1074 <listitem><Para>*begin, *end
</Para></listitem>
1082 <Sect3><Title>BEGIN
</Title>
1086 <VarListEntry><Term>Syntax
</Term>
1088 <listitem><Para>*begin [
<survey
>]
</Para></listitem>
1092 <VarListEntry><Term>Example
</Term>
1100 *end littlebit
</programlisting>
1103 ; length of leg across shaft estimated
1107 *end
</programlisting>
1113 <VarListEntry><Term>Description
</Term>
1115 <listitem><Para>*begin stores the current values of the current settings
1116 such as instrument calibration, data format, and so on.
1117 These stored values are restored after the corresponding *end.
1118 If a survey name is given, this is used inside the *begin/*end block,
1119 and the corresponding *end should have the same survey name.
1120 *begin/*end blocks may be nested to indefinite depth.
1125 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1127 <VarListEntry><Term>See Also
</Term>
1129 <listitem><Para>*end, *prefix
</Para></listitem>
1137 <Sect3><Title>CALIBRATE
</Title>
1141 <VarListEntry><Term>Syntax
</Term>
1144 <Para>*calibrate
<quantity list
> <zero error
> [
<scale
>]
1146 <Para>*calibrate
<quantity list
> <zero error
> <units
> [
<scale
>]
1148 <Para>*calibrate default
1154 <VarListEntry><Term>Example
</Term>
1159 *calibrate tape +
0.3
1166 <VarListEntry><Term>Description
</Term>
1171 *calibrate is used to specify instrument calibrations, via a zero error
1172 and an optional scale factor (which defaults to
1.0 if not specified).
1173 Without an explicit calibration the zero error is
0.0 and the scale factor is
1178 <quantity list
> is one or more of:
1181 <informaltable frame=
"all">
1184 <row><entry>Quantity
</entry><entry>Aliases
</entry></row>
1187 <row><entry>LENGTH
</entry><entry>TAPE
</entry></row>
1188 <row><entry>BEARING
</entry><entry>COMPASS
</entry></row>
1189 <row><entry>GRADIENT
</entry><entry>CLINO
</entry></row>
1190 <row><entry>BACKLENGTH
</entry><entry>BACKTAPE
</entry></row>
1191 <row><entry>BACKBEARING
</entry><entry>BACKCOMPASS
</entry></row>
1192 <row><entry>BACKGRADIENT
</entry><entry>BACKCLINO
</entry></row>
1193 <row><entry>COUNT
</entry><entry>COUNTER
</entry></row>
1194 <row><entry>LEFT
</entry><entry></entry></row>
1195 <row><entry>RIGHT
</entry><entry></entry></row>
1196 <row><entry>UP
</entry><entry>CEILING
</entry></row>
1197 <row><entry>DOWN
</entry><entry>FLOOR
</entry></row>
1198 <row><entry>DEPTH
</entry><entry></entry></row>
1199 <row><entry>DECLINATION
</entry><entry></entry></row>
1200 <row><entry>EASTING
</entry><entry>DX
</entry></row>
1201 <row><entry>NORTHING
</entry><entry>DY
</entry></row>
1202 <row><entry>ALTITUDE
</entry><entry>DZ
</entry></row>
1203 <row><entry>DECLINATION
</entry><entry></entry></row>
1209 The specified calibration is applied to each quantity in the list, which
1210 is handy if you use the same instrument to measure several things, for
1214 <programlisting>*calibrate left right up down +
0.1</programlisting>
1217 You need to be careful about the sign of the ZeroError. Survex follows
1218 the convention used with scientific instruments - the ZeroError is what
1219 the instrument reads when measuring a reading which should be zero. So
1220 for example, if your tape measure has the end missing, and you are using the
1221 30cm mark to take all measurements from, then a zero distance would be measured
1222 as
30cm and you would correct this with:
1225 <programlisting>*CALIBRATE tape +
0.3</programlisting>
1227 <Para>If you tape was too long, starting at -
20cm (it does happen!)
1228 then you can correct it with:
1231 <programlisting>*CALIBRATE tape -
0.2</programlisting>
1233 <Para>Note: ZeroError is irrelevant for Topofil counters and depth
1234 gauges since pairs of readings are subtracted.
1238 In the first form in the synopsis above, the zero error is measured by the
1239 instrument itself (e.g. reading off the number where a truncated tape now ends)
1240 and any scale factor specified applies to it, like so:
1244 Value = ( Reading - ZeroError ) * Scale (Scale defaults to
1.0)
1248 In the second form above (supported since Survex
1.2.21), the zero error has
1249 been measured externally (e.g. measuring how much too long your tape is with
1250 a ruler) - the units of the zero error are explicitly specified and any scale
1251 factor isn't applied to it:
1255 Value = ( Reading * Scale ) - ZeroError (Scale defaults to
1.0)
1259 If the scale factor is
1.0, then the two forms are equivalent, though they
1260 still allow you to differentiate between how the zero error has been determined.
1264 With older Survex versions, you would specify the magnetic declination
1265 (difference between True North and Magnetic North) by using *calibrate
1266 declination to set an explicit value (with no scale factor allowed). Since
1267 Survex
1.2.22, it's recommended to instead use the new *declination command
1268 instead - see the documentation of that command for more details.
1275 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1277 <VarListEntry><Term>See Also
</Term>
1279 <listitem><Para>*declination, *units
</Para></listitem>
1287 <Sect3><Title>CASE
</Title>
1291 <VarListEntry><Term>Syntax
</Term>
1293 <listitem><para>*case preserve|toupper|tolower
</para></listitem>
1297 <VarListEntry><Term>Example
</Term>
1303 ; Bob insists on using case sensitive station names
1309 *end bobsbit
</programlisting>
1315 <VarListEntry><Term>Description
</Term>
1317 <listitem><Para>*case determines how the case of letters in survey names is
1318 handled. By default all names are forced to lower case (which gives a case
1319 insensitive match, but you can tell cavern to force to upper case, or leave
1320 the case as is (in which case '
2a' and '
2A' will be regarded as different).
1325 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1327 <VarListEntry><Term>See Also
</Term>
1329 <listitem><Para>*truncate
</Para></listitem>
1335 <!-- FIXME - work this text in here or elsewhere
1337 What I mean (though failed to express very well) is that a dataset without
1338 this information isn't the same dataset (in general anyway). For example:
1344 is either a traverse of 3 legs or a (probably badly misclosed) loop. If
1345 these names are on the original survey notes, the surveyors ought to say
1346 whether "A1" is the same as "a1" (although the usual case for using this
1347 feature is probably for importing data from elsewhere). Similarly for
1348 truncation. Whether a clino of +/-90 degrees (or +/-100 grad, etc) is
1349 interpreted as a plumb is something that should have been noted in the cave
1350 (unless it's implicit because it's standard practice for a survey project).
1352 It's a similar issue to calibration data in many ways. You can argue it's
1353 not part of "the survey", but without it the survey won't be the same shape,
1354 and it's not useful to process the same survey with different settings for
1355 compass calibration or name case sensitivity.
1357 >Clearly that is unhelpfully strict, but it is
1358 >important to be semantically clear about what is 'data' and what is 'commands
1359 >or meta-data' which describe what to do with/how to interpret that data.
1361 Think of the lines starting with a "*" as "command or meta-data".
1363 >The most-correct solution to this is (I believe) Martin Heller's idea about
1364 >including 'rules' in the datastream, but that's too big a subject for right
1367 >The reason '-C' was made into a command-line option, was that it made very
1368 >little sense to change it part way though a dataset. What exactly happens if
1369 >you suddenly tell cavern to become case-sensitive halfway through a run?
1371 -C has always had 3 settings - "leave case alone", "force to lower", and
1372 "force to upper". It doesn't really mean "case sensitivity" but rather
1373 something like "case processing". So you can usefully change it during a
1374 run. So if my dataset treats "NoTableChamber" (so named because it was
1375 lacking in furniture) as different from "NotableChamber" (which was notable
1376 for other reasons) I can process it with a dataset from someone else which
1377 needs to be treated as case insensitive like so:
1383 *equate my_cave.NoTableChamber.14 your_cave.linkpassage.13
1387 *include your_dataset
1390 You may be thinking of -U<n>, which used to mean "only compare the first n
1391 characters of station names", but that doesn't allow arbitrary datasets to
1392 be processed together.
1394 So we changed it to mean "truncate station names to n characters", and
1395 allowed it to be changed at any point, rather than being set once for the
1402 <Sect3><Title>COPYRIGHT
</Title>
1406 <VarListEntry><Term>Syntax
</Term>
1408 <listitem><Para>*copyright
<date
> <text
></Para></listitem>
1412 <VarListEntry><Term>Example
</Term>
1418 *copyright
1983 CUCC
1421 *end littlebit
</programlisting>
1427 <VarListEntry><Term>Validity
</Term>
1429 <listitem><Para>valid at the start of a *begin/*end block.
1434 <VarListEntry><Term>Description
</Term>
1436 <listitem><Para>*copyright allows the copyright information to be
1437 stored in a way that can be automatically collated.
1442 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1444 <VarListEntry><Term>See Also
</Term>
1446 <listitem><Para>*begin
</Para></listitem>
1454 <Sect3><Title>CS
</Title>
1458 <VarListEntry><Term>Syntax
</Term>
1460 <listitem><Para>*cs [out]
<coordinate system
></Para></listitem>
1464 <VarListEntry><Term>Example
</Term>
1470 *fix beehive
313800 5427953 20</programlisting>
1475 ; Output in the coordinate system used in the Totes Gebirge in Austria
1476 *cs out custom
"+proj=tmerc +lat_0=0 +lon_0=13d20 +k=1 +x_0=0 +y_0=-5200000 +ellps=bessel +towgs84=577.326,90.129,463.919,5.137,1.474,5.297,2.4232"</programlisting>
1482 <VarListEntry><Term>Description
</Term>
1484 <listitem><Para>*cs allows the coordinate systems used for fixed points and for
1485 processed survey data to be specified.
1489 The
"input" coordinate system is set with
<command>*cs
</command> and you can
1490 change it between fixed points if you have some fixed points in different
1491 coordinate systems to others.
1495 The
"output" coordinate system is set with
<command>*cs out
</command> and is
1496 what the survey data is processed in and the coordinate system used for
1497 resultant
<command>.3d
</command> file. The output coordinate system must be
1498 in metres with axis order (East, North, Up), so for example
1499 <command>*cs out long-lat
</command> isn't valid.
1503 *cs was added in Survex
1.2.14, but handling of fixed points specified with
1504 latitude and longitude didn't work until
1.2.21. Also *fix with standard
1505 deviations specified also didn't work until
1.2.21.
1509 The currently supported coordinate systems are:
1512 <Para>CUSTOM followed by a PROJ string (like in the example above).
</Para>
1514 <Para>EPSG: followed by a positive integer code. EPSG codes cover most
1515 coordinate systems in use, and PROJ supports many of these. The website
1516 <ulink url=
"https://epsg.io/">https://epsg.io/
</ulink> is a useful resource for
1517 finding the EPSG code you want. For example,
<command>EPSG:
4167</command> is
1518 NZGD2000. Supported since Survex
1.2.15.
</Para>
1520 <Para>ESRI: followed by a positive integer code. ESRI codes are used by
1521 ArcGIS to specify coordinate systems (in a similar way to EPSG codes), and PROJ
1522 supports many of them. Supported since Survex
1.2.15.
</Para>
1524 <Para>EUR79Z30 for UTM zone
30, EUR79 datum. Supported since Survex
1.2.15.
1527 <Para>IJTSK for the modified version of the Czechoslovak S-JTSK system where
1528 the axes point East and North. Supported since Survex
1.2.15.
</Para>
1530 <Para>IJTSK03 for a variant of IJTSK. Supported since Survex
1.2.15.
</Para>
1532 <Para>JTSK for the Czechoslovak S-JTSK system. Its axes point West
1533 and South, so it's not supported as an output coordinate system.
1534 Supported since Survex
1.2.16.
</Para>
1536 <Para>JTSK03 for a variant of JTSK. Supported since Survex
1.2.16.
</Para>
1538 <Para>LONG-LAT for longitude/latitude. The WGS84 datum is assumed.
1539 NB
<command>*fix
</command> expects the coordinates in the order x,y,z which
1540 means longitude (i.e. E/W), then latitude (i.e. N/S), then altitude.
1541 Supported since Survex
1.2.15.
</Para>
1543 <Para>OSGB: followed by a two letter code for the UK Ordnance Survey National
1544 Grid. The first letter should be 'H', 'N', 'O', 'S' or 'T'; the second any
1545 letter except 'I'. For example,
<command>OSGB:SD
</command>.
1546 Supported since Survex
1.2.15.
</Para>
1548 <Para>S-MERC for the
"Web Mercator" spherical mercator projection, used by
1549 online map sites like OpenStreetMap, Google maps, Bing maps, etc. Supported
1550 since Survex
1.2.15.
1553 <Para>UTM followed by a zone number (
1-
60), optionally followed by
"N" or
"S"
1554 (default is North). The WGS84 datum is assumed.
</Para>
1557 By default, Survex works in an unspecified coordinate system (and this was the
1558 only option before *cs was added). However, it's useful for the coordinate
1559 system which the processed survey data is in to be specified if you want to use
1560 the processed data in ways which required knowing the coordinate system (such as
1561 exporting a list of entrances for use in a GPS). You can now do this by using
1566 It is also useful to be able to take coordinates for fixed points in whatever
1567 coordinate system you receive them in and put them directly into Survex, rather
1568 than having to convert with an external tool. For example, you may have your
1569 GPS set to show coordinates in UTM with the WGS84 datum, even though you want
1570 the processed data to be in some local coordinate system. And someone else
1571 may provide GPS coordinates in yet another coordinate system. You just need
1572 to set the appropriate coordinate system with
"*cs" before each group of
"*fix"
1573 commands in a particular coordinate system.
1577 If you're going to make use of
"*cs", then the coordinate system must be
1578 specified for everything, so a coordinate system must be in effect for all
1579 "*fix" commands, and you must set the output coordinate system before any
1584 Also, if
"*cs" is in use, then you can't omit the coordinates in a
"*fix"
1585 command, and a fixed point won't be invented if none exists.
1589 If you use
"*cs out" more than once, the second and subsequent commands are
1590 silently ignored - this makes it possible to combine two datasets with
1591 different
"*cs out" settings without having to modify either of them.
1595 Something to be aware of with
"*cs" is that altitudes are currently assumed to
1596 be
"height above the ellipsoid", whereas GPS units typically give you
"height
1597 above sea level", or more accurately
"height above a particular geoid". This
1598 is something we're looking at how best to address, but you shouldn't need to
1599 worry about it if your fixed points are in the same coordinate system as your
1600 output, or if they all use the same ellipsoid. For a more detailed discussion
1601 of this, please see: http://expo.survex.com/handbook/survey/coord.htm
1607 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1609 <VarListEntry><Term>See Also
</Term>
1611 <listitem><Para>*fix
</Para></listitem>
1618 <Sect3><Title>DATA
</Title>
1622 <VarListEntry><Term>Syntax
</Term>
1625 <Para>*data
<style
> <ordering
></Para>
1629 <!-- BACKCOMPASS BACKCLINO -->
1632 <VarListEntry><Term>Example
</Term>
1637 *data normal from to compass tape clino
</programlisting>
1642 *data normal station ignoreall newline compass tape clino
</programlisting>
1648 <VarListEntry><Term>Description
</Term>
1651 <style
> = DEFAULT|NORMAL|DIVING|CARTESIAN|TOPOFIL|CYLPOLAR|NOSURVEY|PASSAGE
1655 <ordering
> = ordered list of instruments - which are valid depends on the
1660 In Survex
1.0.2 and later, TOPOFIL is simply a synonym for NORMAL, left in to
1661 allow older data to be processed without modification. Use the name NORMAL
1666 There are two variants of each style - interleaved and non-interleaved.
1667 Non-interleaved is
"one line per leg", interleaved has a line for the data
1668 shared between two legs (e.g. STATION=FROM/TO, DEPTH=FROMDEPTH/TODEPTH,
1669 COUNT=FROMCOUNT/TOCOUNT). Note that not all readings that can be shared
1670 have to be, for example here the to/from station name is shared but the
1671 depth gauge readings aren't:
1674 *data diving station newline fromdepth compass tape todepth
</programlisting>
1676 In addition, interleaved data can have a DIRECTION reading, which can be
"F"
1677 for a foresight or
"B" for a backsight (meaning the direction of the leg is
1682 In interleaved data, a blank line (one which contains only characters which
1683 are set as BLANK) ends the current traverse so can be used to handle
1684 branches in the survey, e.g.:
1686 *data normal station newline tape compass clino
1691 ; single leg up unexplored side passage
1696 ; and back to the main package
1702 In data styles which include a TAPE reading (i.e. NORMAL, DIVING, and CYLPOLAR
1703 data styles), TAPE may be replaced by FROMCOUNT/TOCOUNT (or COUNT in
1704 interleaved data) to allow processing of surveys performed with a Topofil
1709 In Survex
1.2.44 and later, you can use
<command>*data
</command> without any
1710 arguments to keep the currently set data style, but resetting any state. This
1711 is useful when you're entering passage tubes with branches - see the description
1712 of the
"PASSAGE" style below. (This feature was originally added in
1.2.31,
1713 but was buggy until
1.2.44 - any data up to the next
<command>*data
</command>
1714 gets quietly ignored).
1719 <VarListEntry><Term>DEFAULT
</Term>
1720 <listitem><Para>Select the default data style and ordering (NORMAL style, ordering: from to tape compass clino).
</Para></listitem>
1723 <VarListEntry><Term>NORMAL
</Term>
1724 <listitem><Para>The usual tape/compass/clino centreline survey.
1725 For non-interleaved data the allowed readings are:
1726 FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO;
1727 for interleaved data the allowed readings are:
1728 STATION DIRECTION TAPE COMPASS CLINO BACKCOMPASS BACKCLINO.
1729 The CLINO/BACKCLINO reading is not required - if it's not given, the vertical
1730 standard deviation is taken to be proportional to the tape measurement.
1731 Alternatively, individual clino readings can be given as OMIT (default
"-")
1732 which allows for data where only some clino readings are missing.
1736 *data normal from to compass clino tape
1737 1 2 172 -
03 12.61</programlisting>
1740 *data normal station newline direction tape compass clino
1746 *data normal from to compass clino fromcount tocount
1747 1 2 172 -
03 11532 11873</programlisting>
1750 *data normal station count newline direction compass clino
1753 2 11873</programlisting>
1758 <VarListEntry><Term>DIVING
</Term>
1760 An underwater survey where the vertical information is from a diver's depth
1761 gauge. This style can also be also used for an above-water survey where the
1762 altitude is measured with an altimeter. DEPTH is defined as the altitude (Z)
1763 so increases upwards by default. So for a diver's depth gauge, you'll need to
1764 use *CALIBRATE with a negative scale factor (e.g. *calibrate depth
0 -
1).
1767 <Para>For non-interleaved data the allowed readings are:
1768 FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO FROMDEPTH TODEPTH DEPTHCHANGE (the vertical
1769 can be given as readings at each station, (FROMDEPTH/TODEPTH) or as a change
1770 along the leg (DEPTHCHANGE)).
</Para>
1772 <Para>Survex
1.2.20 and later allow an optional CLINO and/or BACKCLINO reading
1773 in DIVING style. At present these extra readings are checked for syntactic
1774 validity, but are otherwise ignored. The intention is that a future version
1775 will check them against the other readings to flag up likely blunders, and
1776 average with the slope data from the depth gauge and tape reading.
</Para>
1778 <Para>For interleaved data the allowed readings are:
1779 STATION DIRECTION TAPE COMPASS BACKCOMPASS DEPTH DEPTHCHANGE.
1780 (the vertical change can be given as a reading at the station (DEPTH) or as a change along the leg (DEPTHCHANGE)).
1783 *data diving from to tape compass fromdepth todepth
1784 1 2 14.7 250 -
20.7 -
22.4</programlisting>
1787 *data diving station depth newline tape compass
1790 2 -
22.4</programlisting>
1793 *data diving from to tape compass depthchange
1794 1 2 14.7 250 -
1.7</programlisting>
1799 <VarListEntry><Term>CARTESIAN
</Term>
1801 Cartesian data style allows you to specify the (x,y,z) changes between
1802 stations. It's useful for digitising surveys where the original survey
1803 data has been lost and all that's available is a drawn up version.
1806 *data cartesian from to northing easting altitude
1807 1 2 16.1 20.4 8.7</programlisting>
1810 *data cartesian station newline northing easting altitude
1815 <!--FIXME: dx dy dz-->
1819 Cartesian data are relative to
<emphasis>true
</emphasis> North not
1820 <emphasis>magnetic
</emphasis> North (i.e. they are unaffected by
1821 <command>*calibrate declination
</command>).
1826 <VarListEntry><Term>CYLPOLAR
</Term>
1828 A CYLPOLAR style survey is very similar to a diving survey, except that the tape
1829 is always measured horizontally rather than along the slope of the leg.
1832 *data cylpolar from to tape compass fromdepth todepth
1833 1 2 9.45 311 -
13.3 -
19.0</programlisting>
1836 *data cylpolar station depth newline tape compass
1839 2 -
19.0</programlisting>
1842 *data cylpolar from to tape compass depthchange
1843 1 2 9.45 311 -
5.7</programlisting>
1847 <VarListEntry><Term>NOSURVEY
</Term>
1849 A NOSURVEY survey doesn't have any measurements - it merely indicates that
1850 there is line of sight between the pairs of stations.
1853 *data nosurvey from to
1856 9 11</programlisting>
1859 *data nosurvey station
1864 *data nosurvey station
1870 <VarListEntry><Term>PASSAGE
</Term>
1872 This survey style defines a
3D
"tube" modelling a passage in the cave.
1873 The tube uses the survey stations listed in the order listed. It's
1874 permitted to use survey stations which aren't directly linked by
1875 the centre-line survey. This can be useful - sometimes the centreline
1876 will step sideways or up/down to allow a better sight for the next
1877 leg and you can ignore the extra station. You can also define tubes
1878 along unsurveyed passages, akin to
"nosurvey" legs in the centreline
1881 <Para>This means that you need to split off side passages into separate
1882 tubes, and hence separate sections of passage data, starting with
1883 a new *data command.
</Para>
1886 Simple example of how to use this data style (note the use of ignoreall
1887 to allow a free-form text description to be given):
1890 *data passage station left right up down ignoreall
1891 1 0.1 2.3 8.0 1.4 Sticking out point on left wall
1892 2 0.0 1.9 9.0 0.5 Point on left wall
1893 3 1.0 0.7 9.0 0.8 Highest point of boulder
1896 Each
<command>*data passage
</command> data block describes a single continuous
1897 tube - to break a tube or to enter a side passage you need to have a second
1898 block. With Survex
1.2.30 and older, you had to repeat the entire
1899 <command>*data passage
</command> line to start a new tube, but in Survex
1.2.31
1900 and later, you can just use
<command>*data
</command> without any arguments.
1904 For example here the main passage is
1-
2-
3 and a side passage is
2-
4:
1907 *data passage station left right up down ignoreall
1908 1 0.1 2.3 8.0 1.4 Sticking out point on left wall
1909 2 0.0 1.9 9.0 0.5 Point on left wall opposite side passage
1910 3 1.0 0.7 9.0 0.8 Highest point of boulder
1911 ; If you're happy to require Survex
1.2.31 or later, you can just use
1912 ;
"*data" here instead.
1913 *data passage station left right up down ignoreall
1915 4 0.0 0.5 6.5 1.5 Fossil on left wall
1923 IGNORE skips a field (it may be used any number of times),
1924 and IGNOREALL may be used last to ignore the rest of the data line.
1928 LENGTH is a synonym for TAPE; BEARING for COMPASS; GRADIENT for CLINO; COUNT for COUNTER.
<!--FIXME : others?-->
1932 The units of each quantity may be set with the UNITS command.
1935 <!-- FIXME: plumbed diving legs -->
1940 Perhaps a Grade 3 survey, or when surveying with a level and stick (?)
1941 [note - UBSS use it for the old County Clare data]
1953 <Sect3><Title>DATE
</Title>
1956 <VarListEntry><Term>Syntax
</Term>
1958 <listitem><Para>*date
<year
>[.
<month
>[.
<day
>]][-
<year
>[.
<month
>[.
<day
>]]]
</Para></listitem>
1962 <VarListEntry><Term>Example
</Term>
1967 *date
2001</programlisting>
1970 *date
2000.10</programlisting>
1973 *date
1987.07.27</programlisting>
1976 *date
1985.08.12-
1985.08.13</programlisting>
1982 <VarListEntry><Term>Validity
</Term>
1984 <listitem><Para>valid at the start of a *begin/*end block.
1989 <VarListEntry><Term>Description
</Term>
1992 *date specifies the date that the survey was done. A range of dates
1993 can be specified (useful for overnight or multi-day surveying trips).
1998 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2000 <VarListEntry><Term>See Also
</Term>
2002 <listitem><Para>*begin, *instrument, *team
</Para></listitem>
2010 <Sect3><Title>DECLINATION
</Title>
2014 <VarListEntry><Term>Syntax
</Term>
2017 <Para>*declination auto
<x
> <y
> <z
></Para>
2018 <Para>*declination
<declination
> <units
></Para>
2023 <VarListEntry><Term>Description
</Term>
2028 The *declination command is the modern way to specify magnetic declinations in
2029 Survex. Magnetic declination is the difference between Magnetic North and True
2030 North. It varies over time as the Earth's magnetic field moves, and also with
2031 location. Compass bearings are measured relative to Magnetic North - adding the
2032 magnetic declination gives bearings relative to True North.
2036 Prior to
1.2.22, *calibrate declination was used instead. If you
2037 use a mixture of *calibrate declination and *declination, they interact in
2038 the natural way - whichever was set most recently is used for each compass
2039 reading (taking into account survey scope). We don't generally recommend
2040 mixing the two, but it's useful to understand how they interact if you want to
2041 combine datasets using the old and new commands, and perhaps if you have a
2042 large existing dataset and want to migrate it without having to change
2047 Note that the value specified uses the conventional sign for magnetic
2048 declination, unlike the old *calibrate declination which needed a value with
2049 the opposite sign (because *calibrate specifies a zero error), so take care
2050 when updating old data, or if you're used to the semantics of *calibrate
2055 If you have specified the output coordinate system (using *cs out) then you can
2056 use *declination auto (and we recommend that you do). This is supported since
2057 Survex
1.2.21 and automatically calculates magnetic declinations based on the
2058 IGRF (International Geomagnetic Reference Field) model. A revised version of
2059 the IGRF model is usually issued every
5 years, and calculates values using a
2060 model based on observations for years before it is issued, and on predictions
2061 for
5 years after it is issued. Survex
1.2.43 updated to using version
13 in
2066 The IGRF model takes a date and a location as inputs. Survex uses the
2067 specified date of the survey, and uses the
"x y z" coordinates specified
2068 in the *declination auto command as the location in the current input
2069 coordinate system (as set by *cs). Most users can just specify a single
2070 representative location somewhere in the area of the cave. If you're
2071 not sure what to use pick some coordinates roughly in the middle of
2072 the bounding box of the cave - it doesn't need to be a fixed point or a known
2073 refindable location, though it can be if you prefer.
2077 For each *declination auto command cavern will (since Survex
1.4.2) report
2078 the range of calculated declination values and the dates at which the ends of
2079 the range were obtained, and also the grid convergence (which doesn't vary with
2080 time). This appears in the log - if you processed the data with aven you can
2081 view this by using
"File->View Log". It looks like this:
2085 /home/ol/
1623.svx:
20: info: Declination: -
0.4° @
1977-
07-
02 /
3.8° @
2018-
07-
21, grid convergence: -
0.9°
2086 *declination auto
36670.37 83317.43 1903.97
2090 You might wonder why Survex needs a representative location instead of
2091 calculating the magnetic declination and grid convergence for the actual
2092 position of each survey station. The reason is that we need to adjust the
2093 compass bearings before we can solve the network to find survey station
2094 locations. Both magnetic declination and grid convergence don't generally vary
2095 significantly over the area of a typical cave system - if you are mapping a
2096 very large cave system, or caves over a wide area, or are working close to a
2097 magnetic pole or where the output coordinate system is rather distorted, then
2098 you can specify *declination auto several times with different representative
2099 locations for different areas of the cave system - the one currently in effect
2100 is used for each survey leg.
2104 Survex
1.2.27 and later also automatically correct for grid convergence (the
2105 difference between Grid North and True North) when *declination auto is in use,
2106 based on the same specified representative location.
2110 Generally it's best to specify a suitable output coordinate system, and use
2111 *declination auto so Survex corrects for magnetic declination and grid
2112 convergence for you. Then Aven knows how to translate coordinates to allow
2113 export to formats such as GPX and KML, and to overlay terrain data.
2117 If you don't specify an output coordinate system, but fix one or more points
2118 then Survex works implicitly in the coordinate system your fixed points were
2119 specified in. This mode of operation is provided for compatibility with
2120 datasets from before support for explicit coordinate systems was added to
2121 Survex - it's much better to specify the output coordinate system as above.
2122 But if you have a survey of a cave which isn't connected to any known fixed
2123 points then you'll need to handle it this way, either fixing an entrance
2124 to some arbitrary coordinates (probably (
0,
0,
0)) or letting Survex pick a
2125 station as the origin. If the survey was all done in a short enough period
2126 of time that the magnetic declination won't have changed significantly, you
2127 can just ignore it and Grid North in the implicit coordinate system will be
2128 Magnetic North at the time of the survey. If you want to correct for magnetic
2129 declination, you can't use *declination auto because the IGRF model needs the
2130 real world coordinates, but you can specify literal declination values for each
2131 survey using *declination
<declination
> <units
>. Then Grid North
2132 in the implicit coordinate system is True North.
2139 <VarListEntry><Term>See Also
</Term>
2141 <listitem><Para>*calibrate
</Para></listitem>
2149 <Sect3><Title>DEFAULT
</Title>
2153 <VarListEntry><Term>Syntax
</Term>
2155 <listitem><Para>*default
<settings list
>|all
</Para></listitem>
2159 <VarListEntry><Term>Description
</Term>
2162 The valid settings are CALIBRATE, DATA, and UNITS.
2166 *default restores defaults for given settings. This command is deprecated -
2167 you should instead use: *calibrate default, *data default, *units default.
2172 <VarListEntry><Term>See Also
</Term>
2174 <listitem><Para>*calibrate, *data, *units
</Para></listitem>
2182 <Sect3><Title>END
</Title>
2186 <VarListEntry><Term>Syntax
</Term>
2188 <listitem><Para>*end [
<survey
>]
</Para></listitem>
2192 <VarListEntry><Term>Validity
</Term>
2194 <listitem><Para>valid for closing a block started by *begin in the same file.
2199 <VarListEntry><Term>Description
</Term>
2202 Closes a block started by *begin.
2207 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2209 <VarListEntry><Term>See Also
</Term>
2211 <listitem><Para>*begin
</Para></listitem>
2219 <Sect3><Title>ENTRANCE
</Title>
2223 <VarListEntry><Term>Syntax
</Term>
2225 <listitem><Para>*entrance
<station
></Para></listitem>
2229 <VarListEntry><Term>Example
</Term>
2234 *entrance P163
</programlisting>
2240 <VarListEntry><Term>Description
</Term>
2243 *entrance sets the
<emphasis>entrance
</emphasis> flag for a station.
2244 This information is used by aven to allow entrances to be highlighted.
2248 (could be inferred from surface/ug join, but better to specify because
2249 of caves with no surf svy (or no underground survey)
2250 and also situations in which multiple surveys leave through an entrance)
2256 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2258 <!-- <VarListEntry><Term>See Also</Term>
2260 <listitem><Para></Para></listitem>
2269 <Sect3><Title>EQUATE
</Title>
2273 <VarListEntry><Term>Syntax
</Term>
2275 <listitem><Para>*equate
<station
> <station
>...
</Para></listitem>
2279 <VarListEntry><Term>Example
</Term>
2284 *equate chosspot
.1 triassic
.27</programlisting>
2290 <VarListEntry><Term>Description
</Term>
2293 *equate specifies that the station names in the list refer to the
2294 same physical survey station. An error is given if there is only one station
2300 I think this is preferable to using:
2303 <programlisting> a b 0.00 0 0</programlisting>
2306 as EQUATE does not add in an extra position error. It is also clearer than
2307 substituting in the original name wherever passages are linked. If you
2308 disagree, you can always use one of the other methods!
2315 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2317 <VarListEntry><Term>See Also
</Term>
2319 <listitem><Para>*infer equates
</Para></listitem>
2327 <Sect3><Title>EXPORT
</Title>
2331 <VarListEntry><Term>Syntax
</Term>
2333 <listitem><Para>*export
<station
>...
</Para></listitem>
2337 <VarListEntry><Term>Example
</Term>
2339 <!-- FIXME better example -->
2343 *export
1 6 17</programlisting>
2349 <VarListEntry><Term>Validity
</Term>
2351 <listitem><Para>valid at the start of a *begin/*end block.
2356 <VarListEntry><Term>Description
</Term>
2359 *export marks the stations named as referable to from the enclosing
2360 survey. To be able to refer to a station from a survey several levels
2361 above, it must be exported from each enclosing survey.
2366 I think this is preferable to using:
2369 <programlisting> a b 0.00 0 0</programlisting>
2372 as EQUATE does not add in an extra position error. It is also clearer than
2373 substituting in the original name wherever passages are linked. If you
2374 disagree, you can always use one of the other methods!
2381 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2383 <VarListEntry><Term>See Also
</Term>
2385 <listitem><Para>*begin, *infer exports
</Para></listitem>
2393 <Sect3><Title>FIX
</Title>
2397 <VarListEntry><Term>Syntax
</Term>
2399 <listitem><Para>*fix
<station
> [reference]
2400 [
<x
> <y
> <z
>
2401 [
<x std err
> <y std err
> <z std err
>
2402 [
<cov(x,y)
> <cov(y,z)
> <cov(z,x)
> ] ] ]
2407 <VarListEntry><Term>Example
</Term>
2412 *fix entrance
.0 32768 86723 1760</programlisting>
2415 *fix KT114_96 reference
36670.37 83317.43 1903.97</programlisting>
2421 <VarListEntry><Term>Description
</Term>
2425 *fix fixes the position of
<station
> at the given coordinates.
2426 If you haven't specified the coordinate system with
"*cs", you can
2427 omit the position and it will default to (
0,
0,
0). The standard errors default
2428 to zero (fix station exactly). cavern will give an error if you attempt to fix
2429 the same survey station twice at different coordinates, or a warning if you fix
2430 it twice with matching coordinates.
2434 You can also specify just one standard error (in which case it is assumed
2435 equal in X, Y, and Z) or two (in which case the first is taken as the
2436 standard error in X and Y, and the second as the standard error in Z).
2440 If you have covariances for the fix, you can also specify these - the
2441 order is cov(x,y) cov(y,z) cov(z,x).
2445 If you've specified a coordinate system (see
<command>*cs
</command>) then
2446 that determines the meaning of X, Y and Z (if you want to specify the
2447 units for altitude, note that using a PROJ string containing
2448 <command>+vunits
</command> allows this - e.g.
<command>+vunits=us-ft
</command>
2449 for US survey feet). If you don't specify a coordinate system, then the
2450 coordinates must be in metres. The standard deviations must always be
2451 in metres (and the covariances in metres squared).
2455 You can fix as many stations as you like - just use a *fix command for each
2456 one. Cavern will check that all stations are connected to
2457 at least one fixed point so that co-ordinates can be calculated for all
2462 By default cavern will warn about stations which have been FIX-ed but
2463 not used otherwise, as this might be due to a typo in the station
2464 name. This is unhelpful if you want to include a standard file of benchmarks,
2465 some of which won't be used. In this sort of situation, specify
"REFERENCE"
2466 after the station name in the FIX command to suppress this warning for a
2471 X is Easting, Y is Northing, and Z is altitude. This convention was chosen
2472 since on a map, the horizontal (X) axis is usually East, and the vertical
2473 axis (Y) North. The choice of altitude (rather than depth) for Z is taken
2474 from surface maps, and makes for less confusion when dealing with cave
2475 systems with more than one entrance. It also gives a right-handed
2482 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2484 <!-- <VarListEntry><Term>See Also</Term>
2486 <listitem><Para></Para></listitem>
2496 <Sect3><Title></Title>
2500 <VarListEntry><Term>Syntax</Term>
2502 <listitem><Para>*</Para></listitem>
2506 <VarListEntry><Term>Example</Term>
2517 <VarListEntry><Term>Description</Term>
2524 <VarListEntry><Term>Caveats </Term> </VarListEntry>
2526 <VarListEntry><Term>See Also</Term>
2528 <listitem><Para></Para></listitem>
2537 <Sect3><Title>FLAGS
</Title>
2541 <VarListEntry><Term>Syntax
</Term>
2543 <listitem><Para>*flags
<flags
></Para></listitem>
2547 <VarListEntry><Term>Example
</Term>
2552 *flags duplicate not surface
</programlisting>
2558 <VarListEntry><Term>Description
</Term>
2561 *flags updates the current flag settings.
2562 Flags not mentioned retain their previous state. Valid flags
2563 are DUPLICATE, SPLAY, and SURFACE, and a flag may be preceded with NOT to
2568 Survey legs marked SURFACE are hidden from plots by default, and not
2569 included in cave survey length calculations. Survey legs marked as
2570 DUPLICATE or SPLAY are also not included in cave survey length
2571 calculations; legs marked SPLAY are ignored by the extend program.
2572 DUPLICATE is intended for the case when if you have two different
2573 surveys along the same section of passage (for example to tie two
2574 surveys into a permanent survey station); SPLAY is intended for
2575 cases such as radial legs in a large chamber.
2581 <VarListEntry><Term>See Also
</Term>
2583 <listitem><Para>*begin
</Para></listitem>
2591 <Sect3><Title>INCLUDE
</Title>
2595 <VarListEntry><Term>Syntax
</Term>
2597 <listitem><Para>*include
<filename
></Para></listitem>
2601 <VarListEntry><Term>Example
</Term>
2606 *include mission
</programlisting>
2609 *include
"the pits"</programlisting>
2615 <VarListEntry><Term>Description
</Term>
2618 *include processes
<filename
> as if it were inserted at this
2619 place in the current file. (i.e. The current settings are carried
2620 into
<filename
>, and any alterations to settings in
<filename
>
2621 will be carried back again). There's one exception to this (for
2622 obscure historical reasons) which is that the survey prefix is
2623 restored upon return to the original file. Since *begin and *end
2624 nesting cannot cross files, this can only make a difference if you
2625 use the deprecated *prefix command.
2628 <Para>If
<filename
> contains spaces, it must be enclosed in quotes.
2631 <Para>An included file which does not have a complete path
2632 is resolved relative to the directory which the parent file is in
2633 (just as relative HTML links do). Cavern will try adding a
<filename>.svx
</filename>
2634 extension, and will also try translating
"\" to
"/".
2638 To help users wanting to take a dataset from a platform where filenames
2639 are case-insenstive and process it on a platform where filenames are
2640 case-sensitive, if the file isn't found cavern will try a few variations of the
2641 case. First it will try all lower case (in Survex
1.4.5 and older this was
2642 the only case variant tried), then all lower case except with the first
2643 character of the leafname upper case, and finally all upper case. These
2644 different variants are only tried if the case as given doesn't match
2645 so there's no overhead in the normal situation.
2649 One specific trick this enables which is worth noting is that if you're using
2650 Unix and someone sends you a DOS/Windows dataset with mismatched filename case,
2651 you can unzip it using
<command>unzip -L
</command> to unpack all the filenames
2652 in lower case and UNIX cavern should successfully process it.
2656 The depth to which you can nest include files may be limited by the operating
2657 system you use. Usually the limit is fairly high (
>30), but if you want to be
2658 able to process your dataset with
<Application>Survex
</Application> on any
2659 supported platform, it would be prudent not to go overboard with deeply nested
2669 <Sect3><Title>INFER
</Title>
2673 <VarListEntry><Term>Syntax
</Term>
2676 <Para>*infer plumbs on|off
</Para>
2678 <Para>*infer equates on|off
</Para>
2680 <Para>*infer exports on|off
</Para>
2686 <VarListEntry><Term>Example</Term>
2697 <VarListEntry><Term>Description
</Term>
2700 <Para>"*infer plumbs on" tells cavern to interpret gradients of +/-
90
2701 degrees as UP/DOWN (so it
2702 will not apply the clino correction to them). This is useful when
2703 the data has not been converted to have UP and DOWN in it.
2706 <para>"*infer equates on" tells cavern to interpret a leg with
2707 a tape reading of zero as a *equate. this prevents tape corrections
2708 being applied to them.
2711 <para>"*infer exports on" is necessary when you have a dataset which is
2712 partly annotated with *export. It tells cavern not to complain about
2713 missing *export commands in part of the dataset. Also stations which
2714 were used to join surveys are marked as exported in the
3d file.
2720 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2723 <VarListEntry><Term>See Also</Term>
2725 <listitem><Para>*end, *prefix</Para></listitem>
2734 <Sect3><Title>INSTRUMENT
</Title>
2738 <VarListEntry><Term>Syntax
</Term>
2740 <listitem><Para>*instrument
<instrument
> <identifier
></Para></listitem>
2744 <VarListEntry><Term>Example
</Term>
2749 *instrument compass
"CUCC 2"
2750 *instrument clino
"CUCC 2"
2751 *instrument tape
"CUCC Fisco Ranger open reel"</programlisting>
2757 <VarListEntry><Term>Validity
</Term>
2759 <listitem><Para>valid at the start of a *begin/*end block.
2764 <VarListEntry><Term>Description
</Term>
2767 *instrument specifies the particular instruments used to perform a
2773 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2775 <VarListEntry><Term>See Also
</Term>
2777 <listitem><Para>*begin, *date, *team
</Para></listitem>
2785 <Sect3><Title>PREFIX
</Title>
2789 <VarListEntry><Term>Syntax
</Term>
2791 <listitem><Para>*prefix
<survey
></Para></listitem>
2795 <VarListEntry><Term>Example
</Term>
2800 *prefix flapjack
</programlisting>
2806 <VarListEntry><Term>Description
</Term>
2809 *prefix sets the current survey.
2814 <VarListEntry><Term>Caveats
</Term>
2816 <listitem><Para>*prefix is deprecated - you should use *begin and *end
2817 instead.
</Para></listitem>
2821 <VarListEntry><Term>See Also
</Term>
2823 <listitem><Para>*begin, *end
</Para></listitem>
2831 <Sect3><Title>REF
</Title>
2835 <VarListEntry><Term>Syntax
</Term>
2837 <listitem><Para>*ref
<string
></Para></listitem>
2841 <VarListEntry><Term>Example
</Term>
2846 *ref
"survey folder 2007#12"
2853 <VarListEntry><Term>Validity
</Term>
2855 <listitem><Para>valid at the start of a *begin/*end block.
2860 <VarListEntry><Term>Description
</Term>
2863 *ref allows you to specify a reference. If the reference contains spaces, you
2864 must enclose it in double quotes. Survex doesn't try to interpret the
2865 reference in any way, so it's up to you how you use it - for example it could
2866 specify where the original survey notes can be found.
2870 *ref was added in Survex
1.2.23.
2875 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2877 <VarListEntry><Term>See Also
</Term>
2879 <listitem><Para>*begin, *date, *instrument, *team
</Para></listitem>
2887 <Sect3><Title>REQUIRE
</Title>
2891 <VarListEntry><Term>Syntax
</Term>
2893 <listitem><Para>*require
<version
></Para></listitem>
2897 <VarListEntry><Term>Example
</Term>
2902 *require
0.98</programlisting>
2908 <VarListEntry><Term>Description
</Term>
2911 *require checks that the version of cavern in use is at least
2912 <version
> and stops with an error if not.
2913 So if your dataset requires a feature
2914 introduced in a particular version, you can add a *require command and
2915 users will know what version they need to upgrade to, rather than
2916 getting an error message and having to guess what the real problem is.
2925 <Sect3><Title>SD
</Title>
2929 <VarListEntry><Term>Syntax
</Term>
2931 <listitem><Para>*sd
<quantity list
> <standard deviation
>
2936 <VarListEntry><Term>Example
</Term>
2941 *sd tape
0.15 metres
</programlisting>
2947 <VarListEntry><Term>Description
</Term>
2950 *sd sets the standard deviation of a measurement.
2954 <quantity
> is one of (each group gives alternative names for the same
2959 <listitem><para>TAPE, LENGTH
</para></listitem>
2960 <listitem><para>BACKTAPE, BACKLENGTH (added in Survex
1.2.25)
</para></listitem>
2961 <listitem><para>COMPASS, BEARING
</para></listitem>
2962 <listitem><para>BACKCOMPASS, BACKBEARING
</para></listitem>
2963 <listitem><para>CLINO, GRADIENT
</para></listitem>
2964 <listitem><para>BACKCLINO, BACKGRADIENT
</para></listitem>
2965 <listitem><para>COUNTER, COUNT
</para></listitem>
2966 <listitem><para>DEPTH
</para></listitem>
2967 <listitem><para>DECLINATION
</para></listitem>
2968 <listitem><para>DX, EASTING
</para></listitem>
2969 <listitem><para>DY, NORTHING
</para></listitem>
2970 <listitem><para>DZ, ALTITUDE
</para></listitem>
2971 <listitem><para>LEFT
</para></listitem>
2972 <listitem><para>RIGHT
</para></listitem>
2973 <listitem><para>UP, CEILING
</para></listitem>
2974 <listitem><para>DOWN, FLOOR
</para></listitem>
2975 <listitem><para>LEVEL
</para></listitem>
2976 <listitem><para>PLUMB
</para></listitem>
2977 <listitem><para>POSITION
</para></listitem>
2981 <standard deviation
> must include units and thus is typically
2982 "0.05 metres", or
"0.02 degrees". See *units below for full list
2986 <!-- FIXME mention central limit theorem -->
2988 To utilise this command fully you need to understand what a
2989 <emphasis>standard deviation
</emphasis> is.
2990 It gives a value to the 'spread' of the errors
2991 in a measurement. Assuming that these are normally distributed
2992 we can say that
95.44% of the actual lengths will fall within two
2993 standard deviations of the measured length. i.e. a tape SD of
2994 0.25 metres means that the actual length of a tape measurement
2995 is within + or -
0.5 metres of the recorded value
95.44% of the time.
2996 So if the measurement is
7.34m then the actual length is very
2997 likely to be between
6.84m and
7.84m. This example corresponds
2998 to BCRA grade
3. Note that this is just one interpretation of
2999 the BCRA standard, taking the permitted error values as
2SD
95.44%
3000 confidence limits. If you want to take the readings as being some
3001 other limit (e.g.
1SD =
68.26%) then you will need to change the BCRA3
3002 and BCRA5 files accordingly. This issue is explored in more
3003 detail in various surveying articles.
3016 <VarListEntry><Term>See Also
</Term>
3018 <listitem><Para>*units
</Para></listitem>
3026 <Sect3><Title>SET
</Title>
3030 <VarListEntry><Term>Syntax
</Term>
3032 <listitem><Para>*set
<item
> <character list
></Para></listitem>
3036 <VarListEntry><Term>Example
</Term>
3042 *set decimal ,
</programlisting>
3044 Note that you need to eliminate comma from being a blank before setting it as
3045 a decimal - otherwise the comma in
"*set decimal ," is parsed as a blank, and
3046 you set decimal to not have any characters representing it.
3052 <VarListEntry><Term>Description
</Term>
3055 *set sets the specified
<item
> to the character or characters
3056 given in
<character list
>. The example sets the decimal
3057 separator to be a comma.
3061 xAB means the character with hex value AB. Eg x20 is a space.
3065 The complete list of items that can be set, the defaults (in
3066 brackets), and the meaning of the item, is:
3072 BLANK (x09x20,) Separates fields
3076 COMMENT (;) Introduces comments
3080 DECIMAL (.) Decimal point character
3084 EOL (x0Ax0D) End of line character
3088 KEYWORD (*) Introduces keywords
3092 MINUS (-) Indicates negative number
3096 NAMES (_-) Non-alphanumeric chars permitted in station
3097 names (letters and numbers are always permitted).
3101 OMIT (-) Contents of field omitted (e.g. in plumbed legs)
3105 PLUS (+) Indicates positive number
3109 ROOT (\) Prefix in force at start of current file (use of ROOT is deprecated)
3113 SEPARATOR (.) Level separator in prefix hierarchy
3116 <!-- FIXME OPEN ({) and CLOSE (}) -->
3120 The special characters may not be alphanumeric.
3131 <Sect3><Title>SOLVE
</Title>
3135 <VarListEntry><Term>Syntax
</Term>
3137 <listitem><Para>*solve
</Para></listitem>
3141 <VarListEntry><Term>Example
</Term>
3155 <VarListEntry><Term>Description
</Term>
3158 Distributes misclosures around any loops in the survey and fixes
3159 the positions of all existing stations. This command is intended
3160 for situations where you have some new surveys adding extensions
3161 to an already drawn-up survey which you wish to avoid completely
3162 redrawing. You can read in the old data, use *SOLVE to fix it, and then
3163 read in the new data. Then old stations will be in the same
3164 positions as they are in the existing drawn up survey, even if new loops
3165 have been formed by the extensions.
3174 <Sect3><Title>TEAM
</Title>
3178 <VarListEntry><Term>Syntax
</Term>
3180 <listitem><Para>*team
<person
> [
<role
>...]
</Para></listitem>
3184 <VarListEntry><Term>Example
</Term>
3189 *team
"Nick Proctor" compass clino tape
3190 *team
"Anthony Day" notes pictures tape
3197 <VarListEntry><Term>Validity
</Term>
3199 <listitem><Para>valid at the start of a *begin/*end block.
3201 <!-- FIXME valid roles are? -->
3205 <VarListEntry><Term>Description
</Term>
3208 *team specifies the people involved in a survey and optionally what role or
3209 roles they filled during that trip. Unless the person is only identified by
3210 one name you need to put double quotes around their name.
3215 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3217 <VarListEntry><Term>See Also
</Term>
3219 <listitem><Para>*begin, *date, *instrument
</Para></listitem>
3227 <Sect3><Title>TITLE
</Title>
3231 <VarListEntry><Term>Syntax
</Term>
3233 <listitem><Para>*title
<title
></Para></listitem>
3237 <VarListEntry><Term>Example
</Term>
3241 *title Dreamtime
</programlisting>
3244 *title
"Mission Impossible"</programlisting>
3249 <VarListEntry><Term>Description
</Term>
3251 <listitem><Para>*title allows you to set the descriptive title for a survey.
3252 If the title contains spaces, you need to enclose it in quotes (
"").
3253 If there is no *title command, the title defaults to the survey name
3254 given in the *begin command.
3260 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3263 <VarListEntry><Term>See Also</Term>
3265 <listitem><Para>*end, *prefix</Para></listitem>
3274 <Sect3><Title>TRUNCATE
</Title>
3278 <VarListEntry><Term>Syntax
</Term>
3280 <listitem><Para>*truncate
<length
>|off
</Para></listitem>
3285 <VarListEntry><Term>Example</Term>
3296 <VarListEntry><Term>Description
</Term>
3298 <listitem><Para>Station names may be of any length in
<Application>Survex
</Application>, but some
3299 other (mostly older) cave surveying software only regard the first few
3300 characters of a name as significant (e.g.
"entran" and
"entrance"
3301 might be treated as the same). To facilitate using data imported from
3302 such a package
<Application>Survex
</Application> allows you to truncate names to whatever
3303 length you want (but by default truncation is off).
3306 <Para>Figures for the number of characters which are significant in various
3307 software packages: Compass currently has a limit of
12,
3308 CMAP has a limit of
6,
3309 Smaps
4 had a limit of
8,
3310 <!-- FIXME any limits for other software, winkarst for example? -->
3311 Surveyor87/
8 used
8.
3312 <Application>Survex
</Application> itself used
8 per prefix
3313 level up to version
0.41, and
12 per prefix level up to
0.73 (more recent
3314 versions removed this rather archaic restriction).
3320 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3322 <VarListEntry><Term>See Also
</Term>
3324 <listitem><Para>*case
</Para></listitem>
3332 <Sect3><Title>UNITS
</Title>
3336 <VarListEntry><Term>Syntax
</Term>
3339 *units
<quantity list
> [
<factor
>]
<unit
>
3347 <VarListEntry><Term>Example
</Term>
3352 *units tape metres
</programlisting>
3355 *units compass backcompass clino backclino grads
</programlisting>
3358 *units dx dy dz
1000 metres ; data given as kilometres
</programlisting>
3361 *units left right up down feet
</programlisting>
3367 <VarListEntry><Term>Description
</Term>
3370 <quantity
> is one of the following (grouped entries are just alternative names for the same thing):
3371 TAPE/LENGTH, BACKTAPE/BACKLENGTH (added in Survex
1.2.25), COMPASS/BEARING, BACKCOMPASS/BACKBEARING, CLINO/GRADIENT, BACKCLINO/BACKGRADIENT, COUNTER/COUNT, DEPTH, DECLINATION, DX/EASTING, DY/NORTHING, DZ/ALTITUDE, LEFT, RIGHT, UP/CEILING, DOWN/FLOOR
3374 <Para>Changes current units of all the quantities listed to [
<factor
>]
3375 <unit
>. Note that quantities can be expressed either as
3376 the instrument (e.g. COMPASS) or the measurement (e.g. BEARING).
3379 <Para><factor
> allows you to easy specify situations such as measuring
3380 distance with a diving line knotted every
10cm (*units distance
0.1 metres).
3381 If
<factor
> is omitted it defaults to
1.0. If specified, it must be
3385 <Para>Valid units for listed quantities are:
3388 <Para>TAPE/LENGTH, BACKTAPE/BACKLENGTH, COUNTER/COUNT, DEPTH, DX/EASTING, DY/NORTHING, DZ/ALTITUDE
3389 in YARDS|FEET|METRIC|METRES|METERS (default: METRES)
3392 <Para>CLINO/GRADIENT, BACKCLINO/BACKGRADIENT
3393 in DEGS|DEGREES|GRADS|MINUTES|PERCENT|PERCENTAGE (default: DEGREES)
3396 <Para>COMPASS/BEARING, BACKCOMPASS/BACKBEARING, DECLINATION
3397 in DEGS|DEGREES|GRADS|MINUTES|QUADS|QUADRANTS (default: DEGREES)
3400 <Para>(
360 degrees =
400 grads)
3404 QUADRANTS are a style of bearing used predominantly in land survey, and occasionally
3405 in survey with handheld instruments. All bearings are N or S, a numeric from
0 to
3406 90, followed by E or W. For example S34E to refer to
146 degrees, or
34 degrees in
3407 the SE quadrant. In this format, exact cardinal directions may be simply alphabetic.
3408 E.g. N is equivalent to N0E and E is equivalent to N90E. This unit was added in Survex
3413 Survex has long support MILS as an alias for GRADS. However, this seems to
3414 be a bogus definition of a
"mil" which is unique to Survex (except that Therion
3415 has since copied it) - there are several different definitions of a
"mil" but
3416 they vary from
6000 to
6400 in a full circle, not
400. Because of this we
3417 deprecated MILS in Survex
1.2.38 - you can still process data which uses them
3418 but you'll now get a warning, and we recommend you update your data.
3422 For example, if your data uses
3425 *units compass mils
</programlisting>
3427 then you need to determine what the intended units actually are. If there
3428 are
400 in a full circle, then instead use this (which will work with older
3429 Survex versions too):
3432 *units compass grads
</programlisting>
3434 If the units are actually mils, you can specify that in terms of degrees.
3435 For example, for NATO mils (
6400 in a full circle) one mil is
360/
6400
3436 degrees, and
360/
6400=
0.05625 so you can use this (which also works with older
3440 *units compass
0.05625 degrees
</programlisting>
3445 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3447 <VarListEntry><Term>See Also
</Term>
3449 <listitem><Para>*calibrate
</Para></listitem>
3461 <!-- FIXME rename to "Cookbook"? -->
3462 <Sect1><Title>Contents of
<filename>.svx
</filename> files: How do I?
</Title>
3463 <?dbhtml filename=
"svxhowto.htm">
3466 Here is some example
<Application>Survex
</Application> data (a very small cave numbered
1623/
163):
3474 5 6 9.29 271 -
28.5</programlisting>
3477 You can vary the data ordering. The default is:
3481 from-station to-station tape compass clino
3485 This data demonstrates a number of useful features of
<Application>Survex
</Application>:
3489 Legs can be measured either way round, which allows the use of
3490 techniques like
"leap-frogging" (which is where legs
3491 alternate forwards and backwards).
3495 Also notice that there is a spur in the survey (
2 to
3). You
3496 do not need to specify this specially.
3500 <Application>Survex
</Application> places few restrictions on station naming (see
"Survey
3501 Station Names" in the previous section), so you can number the stations
3502 as they were in the original survey notes. Although not apparent from
3503 this example, there is no requirement for each leg to connect to an
3504 existing station.
<Application>Survex
</Application> can accept data in any order, and will
3505 check for connectedness once all the data has been read in.
3509 Each survey is also likely to have other information associated
3510 with it, such as instrument calibrations, etc. This has been
3511 omitted from this example to keep things simple.
3515 Most caves will take more than just one survey trip to map. Commonly
3516 the numbering in each survey will begin at
1, so we need to be
3517 able to tell apart stations with the same number in different
3522 To accomplish this,
<Application>Survex
</Application> has a very flexible system of hierarchical
3523 prefixes. All you need do is give each survey a unique name or
3524 number, and enter the data like so:
3535 *end
163</programlisting>
3537 <Para><Application>Survex
</Application> will name the stations by attaching the current prefix.
3538 In this case, the stations will be named
163.1,
163.2, etc.
3541 <Para>We have a convention with the CUCC Austria data that the entrance survey
3542 station of a cave is named P
<cave number
>, P163 in this case. We
3543 can accomplish this like so:
3556 *end
163</programlisting>
3558 <Sect2><Title>Specify surface survey data
</Title>
3561 Say you have
2 underground surveys and
2 surface ones with
2 fixed reference
3562 points. You want to mark the surface surveys so that their length isn't
3563 included in length statistics, and so that Aven knows to display them
3564 differently. To do this you mark surface data with the
"surface" flag
3565 - this is set with
"*flags surface" like so:
3569 ; fixed reference points
3570 *fix fix_a
12345 56789 1234
3571 *fix fix_b
23456 67890 1111
3573 ; surface data (enclosed in *begin ... *end to stop the *flags command
3574 ; from
"leaking" out)
3583 *include cave2
</programlisting>
3586 You might also have a survey which starts on the surface and heads into a
3587 cave. This can be easily handled too - here's an example which goes in
3588 one entrance, through the cave, and out of another entrance:
3593 *title
"161b to 161c"
3594 *date
1990.08.06 ; trip
1990-
161c-
3 in
1990 logbook
3598 02 01 3.09 249 -
08.5
3599 02 03 4.13 252.5 -
26
3604 06 05 2.67 203 -
40.5
3607 08 09 2.73 063.5 +
21
3612 11 10 4.20 221.5 -
11.5
3613 11 12 5.05 215 +
03.5
3614 11 13 6.14 205 +
12.5
3618 *end BtoC
</programlisting>
3621 Note that to avoid needless complication, Survex regards each leg as
3622 being either
"surface" or
"not surface" - if a leg spans the boundary you'll
3623 have to call it one or the other. It's good surveying practice to
3624 deliberately put a station at the surface/underground interface
3625 (typically the highest closed contour or drip line) so this generally
3626 isn't an onerous restriction.
3631 <Sect2><Title>Specify the ordering and type of data
</Title>
3633 <Para>The *DATA command is used to specify the data style, and the
3634 order in which the readings are given.
</Para>
3638 <Sect2><Title>Deal with Plumbs or Legs Across Static Water
</Title>
3643 as +90, or -90, but as they are not usually measured with the
3644 clino, but with a plumb of some sort, then it is useful to distinguish
3645 them in this way so that any clino adjustment is not applied to
3649 FIXME: paste in section from mail to list
3652 Note that a similar effect can be achieved by using the "*infer plumbs" command
3653 to stop clino corrections being applied to -90 and +90 clino readings.
3658 Plumbed legs should be given using 'UP' or 'DOWN' in place of the
3659 clino reading and a dash (or a different specified 'OMIT' character)
3660 in place of the compass reading. This distinguishes
3661 them from legs measured with a compass and clino. Here's an example:
3668 5 4 10.38 - DOWN
</programlisting>
3671 U/D or +V/-V may be used instead of UP/DOWN; the check is not case
3676 Legs surveyed across the surface of a static body of water where no
3677 clino reading is taken (since the surface of the water can be assumed
3678 to be flat) can be indicated by using LEVEL in place of a clino reading.
3679 This prevents the clino correction being applied. Here's an example:
3685 3 4 1.62 091 LEVEL
</programlisting>
3689 <Sect2><Title>Specify a BCRA grade
</Title>
3691 <Para>The *SD command can be used to specify the standard deviations of the
3692 various measurements (tape, compass, clino, etc). Examples files are
3693 supplied which define BCRA Grade
3 and BCRA Grade
5 using a number of *sd
3694 commands. You can use these by simply including them at the relevant point,
3700 ; This survey is only grade
3
3705 *end somewhere
</programlisting>
3707 <Para>The default values for the standard deviations are those for
3708 BCRA grade
5. Note that it is good practice to keep the *include
3709 Grade3 within *Begin and *End commands otherwise it will apply
3710 to following survey data, which may not be what you intended.
3715 <Sect2><Title>Specify different accuracy for a leg
</Title>
3717 <Para>For example, suppose the tape on the plumbed leg in this survey
3718 is suspected of being less accurate than the rest of the survey because
3719 the length was obtained by measuring the length of the rope used to rig
3720 the pitch. We can set a higher sd for this one measurement and use a
3721 *begin/*end block to make sure this setting only applies to the one
3730 ; tape measurement was taken from the rope length
3734 5 6 9.29 271 -
28.5</programlisting>
3736 <!-- FIXME also *calibrate and *instrument? Except rope is measure with the
3740 <Sect2><Title>Enter Repeated Readings
</Title>
3742 <Para>If your survey data contains multiple versions of each leg (for example,
3743 pockettopo produces such data), then provided these are adjacent to one another
3744 Survex
1.2.17 and later will automatically average these and treat them as a
3750 <Sect2><Title>Enter Radiolocation Data
</Title>
3752 <!-- FIXME comments from David Gibson here -->
3753 <Para>This is done by using the *SD command to specify the appropriate
3754 errors for the radiolocation `survey leg' so that the loop closure
3755 algorithm knows how to distribute errors if it forms part of a loop.
3758 <Para>The best approach for a radiolocation where the underground station
3759 is vertically below the surface station is to represent it as a
3760 plumbed leg, giving suitable SDs for the length and plumb angle. The
3761 horizontal positioning of this is generally quite accurate, but the
3762 vertical positioning may be much less well known. E.g: we have a
3763 radiolocation of about
50m depth +/-
20m and horizontal accuracy of
3764 +/-
8m. Over
50m the +/-
8m is equivalent to an angle of
9 degrees, so
3765 that is the expected plumb error.
20m is the expected error in the
3766 length. To get the equivalent SD we assume that
99.74% of readings will
3767 be within
3 standard deviations of the error value. Thus we divide the
3768 expected errors by
3 to get the SD we should specify:
3769 </Para> <!-- 3 SD? or same as BCRA3.SVX, etc -->
3773 *sd length
6.67 metres
3775 surface underground
50 - down
3776 *end
</programlisting>
3779 We wrap the radiolocation leg in a *begin/*end block to make
3780 sure that the special *sd settings only apply to this one leg.
3783 <Para>For more information on the expected errors from radiolocations
3784 see Compass Points Issue
10, available online at
3785 <ulink url=
"http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm">http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm
</ulink>
3790 <Sect2><Title>Enter Diving Data
</Title>
3792 <Para>Surveys made underwater using a diver's depth gauge can be
3793 processed - use the *Data command to specify that the following data
3799 <Sect2><Title>Enter Theodolite data
</Title>
3802 Theodolite data with turned angles is not yet explicitly catered
3803 for, so for now you will need to convert it into equivalent legs in
3804 another style - normal or cylpolar are likely to be the best choices.
3808 If there is no vertical info in your theodolite data then you should
3809 use the cylpolar style and use *sd command to specify very low
3810 accuracy (high SD) in the depth so that the points will move in the
3811 vertical plane as required if the end points are fixed or the survey
3819 <Sect1><Title>General: How do I?
</Title>
3820 <?dbhtml filename=
"genhowto.htm">
3822 <Sect2><Title>Create a new survey
</Title>
3824 <Para>You simply create a text file containing the relevant survey data,
3825 using a text editor, and save it with a suitable name with a
<filename>.svx
</filename>
3827 easiest way is to look at some of the example data and use that
3828 as a template. Nearly all surveys will need a bit of basic info
3829 as well as the survey data itself: e.g. the date (*date), comments
3830 about where, what cave, a name for the survey (using *begin and *end),
3831 instrument error corrections etc. Here is a typical survey file:
3834 <Para>All the lines starting with ';' are comments, which are ignored
3835 by
<Application>Survex
</Application>. You can also see the use of 'DOWN' for plumbs, and
3836 *calibrate tape for dealing with a tape length error (in this case
3837 the end of the tape had fallen off so measurements were made from the
3841 *equate chaos
.1 triassic.pt3.8
3842 *equate chaos
.2 triassic.pt3.9
3845 *title
"Bottomless Pit of Eternal Chaos to Redemption pitch"
3847 *team
"Nick Proctor" compass clino tape
3848 *team
"Anthony Day" notes pictures tape
3849 *instrument compass
"CUCC 2"
3850 *instrument clino
"CUCC 2"
3851 ;Calibration: Cairn-Rock
071 072 071, -
22 -
22 -
22
3852 ; Rock-Cairn
252 251 252, +
21 +
21 +
21
3853 ;Calibration at
161d entrance from cairn nr entrance to
3854 ;prominent rock edge lower down. This is different from
3855 ;calibration used for thighs survey of
5 July
1996
3859 ;Tape is
20cm too short
3860 *calibrate tape +
0.2
3870 8 7 35.64 262 +
86 ;true length measured for this leg
3886 *end chaos
</programlisting>
3890 <Sect2><Title>Join surveys together
</Title>
3892 <Para>Once you have more than one survey you need to specify how they
3893 link together. To do this use *export to make the stations to be
3894 joined accessible in the enclosing survey, then *equate in the
3895 enclosing survey to join them together.
3896 <!-- FIXME example -->
3901 <Sect2><Title>Organise my surveys
</Title>
3903 <Para>This is actually a large subject. There are many ways you can
3904 organise your data using
<Application>Survex
</Application>. Take a look at the example dataset
3905 for some ideas of ways to go about it.
3908 <Sect3><Title>Fixed Points (Control Points)
</Title>
3910 <Para>The *fix command is used to specify fixed points (also know as control
3911 points). See the description of this command in the
"Cavern Commands"
3912 section of this manual.
3917 <Sect3><Title>More than one survey per trip
</Title>
3919 <Para>Suppose you have two separate bits of surveying which were done on the
3920 same trip. So the calibration details, etc. are the same for both. But you
3921 want to give a different survey name to the two sections. This is easily
3927 *calibrate compass
1.0
3928 *calibrate clino
0.5
3935 *end
</programlisting>
3941 <Sect2><Title>Add surface topography
</Title>
3943 <Para>Survex
1.2.18 added support for loading terrain data and rendering it as
3944 a transparent surface. Currently the main documentation for this is maintained
3945 as a
<ulink url=
"https://trac.survex.com/wiki/TerrainData">wiki page
</ulink>
3946 as this allows us to update it between releases.
3950 We recommend using this new code in preference, but previously the simplest
3951 approach was to generate a
<filename>.svx
</filename> file with the surface mesh
3952 in and display it with the survey data.
3956 It is possible to generate
3957 a mesh or contours overlaying your area by various means. NASA have made
3958 1 arc-second (approximately
30m) terrain data available for the USA for
3959 some years, with only
3 arc-second data available for other countries.
3960 However, starting in
2014 they're gradually making
1 arc-second data
3961 available for more countries.
3965 If you want a better resolution that this, reading heights from the
3966 contours on a map is one approach. It's laborious, but feasible for
3971 Details of several methods are given in the BCRA Cave Surveying
3972 Group magazine Compass Points issue
11, available online at
3973 <ulink url=
"http://www.chaos.org.uk/survex/cp/CP11/CPoint11.htm#Art_5">http://www.chaos.org.uk/survex/cp/CP11/CPoint11.htm#Art_5
</ulink>
3976 <Para>If you're using another program to generate a
<filename>.svx
</filename> file for the surface
3977 mesh, it's best to use the NOSURVEY data style.
3978 Simply fix all the grid intersections at the correct
3979 coordinates and height, and put legs between them using the NOSURVEY style.
3980 Here's a grid of
4 squares and
9 intersections:
3984 *fix
00 000 000 1070
3985 *fix
01 000 100 1089
3986 *fix
02 000 200 1093
3988 *fix
10 100 000 1062
3989 *fix
11 100 100 1080
3990 *fix
12 100 200 1089
3992 *fix
20 200 000 1050
3993 *fix
21 200 100 1065
3994 *fix
22 200 200 1077
3996 *data nosurvey station
4023 This is far simpler than trying to create fake tape/compass/clino legs of
4024 the right length for each line in the mesh. It's also very fast to process
4030 <Sect2><Title>Overlay a grid
</Title>
4032 <Para>Aven is able to display a grid, but this functionality isn't currently
4033 available in printouts.
4034 You can achieve a similar effect for now by creating a
<filename>.svx
</filename> file
4035 where the survey legs form a grid.
4040 <Sect2><Title>Import data from other programs
</Title>
4042 <Para><Application>Survex
</Application> supports a number of features to help with importing
4043 existing data. You can specify the ordering of items on a line using *Data
4044 (see
<Application>Survex
</Application> Keywords above), and you can specify the characters used
4045 to mean different things using *Set (see
<Application>Survex
</Application> Keywords above).
4048 <Para>The Ignore and Ignoreall options to the *Data command are often
4049 particularly useful, e.g. if you have a dataset with LRUD info or comments
4050 on the ends of lines.
4053 <Sect3><Title>Changing Meanings of Characters
</Title>
4055 <Para>e.g. if you have some data with station names containing the
4056 characters '?' and '+' (which are not permitted in a name by default)
4061 *SET NAMES ?+
</programlisting>
4064 specifies that question marks and plus signs are permitted in station names.
4065 A-Z, a-z, and
0-
9 are always permitted. '_' and '-' are also permitted by
4066 default, but aren't in this example.
4069 <Para>If your data uses a comma ',' instead of a decimal point, then
4074 *SET DECIMAL ,
</programlisting>
4076 <Para>to specify that ',' is now the decimal separator instead of '.'.
4080 <Para>Note that there are plenty of ways you can use this facility to
4081 completely confuse the software, as it may not be able to work out what is
4082 going on, or it may simply be ambiguous. It can cope with some ambiguity (e.g.
4083 the '-' character is used both for 'MINUS' and for 'OMIT'), but there are
4084 limits. If you have a dataset that you can not make <Application>Survex</Application>
4085 understand, then send it to us, and we will see what can be done.
4092 Nobody seems to have the CfH convertor...
4093 but it's probably no longer useful anyway
4095 <Sect3><Title>Other Converters</Title>
4097 <Para>We have an Excel 5 macro for converting The Lotus 123 spreadsheets
4098 used by the German survey software Cad Für Höhlen into
4099 <Application>Survex</Application> data files. Other converters may also come to be available.
4100 These will normally be available via the
4101 <ulink url="https://survex.com/"><Application>Survex</Application> Web pages</ulink>.
4109 <Sect2><Title>Export data from
<Application>Survex
</Application></Title>
4111 <Para>See Rosetta Stal in the Related Tools section of the Survex web
4112 site. This is a utility written by Taco van Ieperen and Gary Petrie.
4113 Note though that this only supports a subset of the svx format,
4114 and only work on Microsoft Windows. The Survex support is limited
4115 and doesn't understand the more recently added commands.
</Para>
4119 <Sect2><Title>See errors and warnings that have gone off the screen
</Title>
4121 <Para>When you run
<Application>Survex
</Application> it will process the specified survey data
4122 files in order, reporting any warnings and errors. If there are no
4123 errors, the output files are written and various statistics about the
4124 survey are displayed. If there are a lot of warnings or errors, they can
4125 scroll off the screen and it's not always possible to scroll back to
4129 <Para>The easiest way to see all the text is to use
<command>cavern
4130 --log
</command> to redirect output to a
<filename>.log
</filename> file,
4131 which you can then inspect with a text editor.
4134 <!-- <command>cavern cavename > tmpfile</command> -->
4138 <Sect2><Title>Create an Extended Elevation
</Title>
4140 <Para>Use the Extend program. This takes
<filename>.3d
</filename> files and
4141 'flattens' them. See 'Extend' for details.
4149 <Sect1><Title>Appendices</Title>
4150 <?dbhtml filename="appendix.htm">
4152 <Para>Files provided
4155 <Para>Command specification
4160 <Sect1><Title>Working with Larry Fish's Compass
</Title>
4161 <?dbhtml filename=
"compass.htm">
4164 Survex can read Compass survey data - it supports survey data files and
4165 project files (.DAT and .MAK files), closed data files (.CLP), and processed
4166 survey data (.PLT and .PLF files). Survex
1.4.6 made significant improvements to
4167 this support so we recommend using this version or newer if you're working with
4171 <Sect2><Title>Compass .DAT support
</Title>
4173 A Compass .DAT file contains raw survey data. You can process a .DAT file
4174 with cavern or aven as if it were a .svx file.
4178 You can even use
<command>*include compassfile.dat
</command> in a
4179 <filename>.svx
</filename> file and it'll work, which allows combining
4180 separate cave survey projects maintained in Survex and Compass.
4184 One point to note when doing so (this tripped us up!) is that station names
4185 in DAT files are case sensitive and so Survex reads DAT files with the
4186 equivalent of
<command>*case preserve
</command>. The default in SVX files is
4187 <command>*case lower
</command>. So this won't work
4191 *include datfilewhichusesCE1.dat
</programlisting>
4193 because the CE1 in the *fix is actually interpreted as ce1. The solution
4194 is to turn on preserving of case while you fix the point like so:
4201 *include datfilewhichusesCE1.dat
</programlisting>
4203 If you want to be able to refer to the fixed point from Survex data too
4204 then you can add in a *equate to achieve that:
4212 *include datfilewhichusesCE1.dat
4213 *include svxfilewhichusesce1.svx
</programlisting>
4215 Or if you're just wanting to link a Compass survey to a Survex one, you
4216 can use a *equate with *case preserve on:
4223 *include datfilewhichusesCE1.dat
4224 *include svxfilewhichusesce1.svx
</programlisting>
4228 Survex understands most DAT file features. Known current limitations and
4233 The cave name, survey short name, survey comment and survey team
4234 information are currently ignored (because this information isn't
4235 currently saved in the
.3d file even for .svx files).
4238 Survey date January
1st
1901 is treated as
"no date specified", since
4239 this is the date Compass stores in this situation, and it seems very
4240 unlikely to occur in real data.
4243 Passage dimensions are currently ignored.
4246 Shot flag C is currently ignored.
4249 Shot flag L is mapped to Survex's
"duplicate" leg flag.
4252 Shot flag P is mapped to Survex's
"surface" leg flag. The Compass
4253 documentation describes shot flag P as
"Exclude this shot from
4254 plotting", but the suggested use for it is for surface data, and
4255 shots flagged P
"[do] not support passage modeling". Even if it's
4256 actually being used for a different purpose, Survex programs don't show
4257 surface legs by default so the end effect is at least to not plot as
4261 Shot flag S is mapped to Survex's
"splay" leg flag.
4264 Surveys which indicate a depth gauge was used for azimuth readings are
4265 now marked as STYLE_DIVING in the
3d file.
4272 <Sect2><Title>Compass .MAK support
</Title>
4275 A Compass .MAK file defines a survey project to process, and specifies one or
4276 more .DAT files to process, along with coordinate systems and fixed points.
4277 You can process a .MAK file with cavern or aven as if it were a .svx file.
4281 Survex understands most MAK file features. Known current limitations and
4286 Survex handles the UTM zone and datum provided the combination can be
4287 expressed as an EPSG code (lack of any EPSG codes for a datum suggests
4288 it's obsolete; lack of a code for a particular datum+zone combination
4289 suggests the zone is outside of the defined area of use of the datum).
4290 Example Compass files we've seen use
"North American 1927" outside of
4291 where it's defined for use, presumably because some users fail to change
4292 the datum from Compass' default. To enable reading such files we return
4293 a PROJ4 string of the form
"+proj=utm ..." for
"North American 1927" and
4294 "North American 1983" for UTM zones which don't have an EPSG code.
4295 Please let us know if support for additional cases which aren't
4296 currently supported would be useful to you.
4299 The @ command which specifes a base location to calculate magnetic
4300 declinations at is handled, provided the datum and UTM zone are
4301 supported (see previous bullet point). The UTM convergence angle
4302 specified as part of this command is ignored as Survex knows how to
4306 Link stations are ignored. These have two uses in Compass. They were
4307 a way to allow processing large surveys on computers from last century
4308 which had limited memory. Survex can easily handle even the largest
4309 surveys on current hardware and ignoring them is not a problem in this
4313 The other use is they provide a way to process surveys together
4314 which use the same station names for different stations. In this
4315 case we recommend writing a .svx file to replace the MAK file which
4316 wraps the
<command>*include
</command> of each DAT file in
4317 <command>*begin survey1
</command>/
<command>*end survey1
</command>, etc so that
4318 stations have unique qualified names. Then the link stations can
4319 be implementing using e.g.
<command>*equate survey1.XX1 survey2.XX1
</command>.
4320 This example from the Compass documentation:
4323 #FILE1.DAT; /no links
4325 #FILE3.DAT,A16,B14;
</programlisting>
4327 would look like this:
4336 *equate file1.A22 file2.A22
4340 *equate file1.A16 file3.A16
4341 *equate file2.B14 file3.B14
</programlisting>
4343 Note that the .svx version is able to more precisely represent what's actually
4344 required here - in the MAK version
"you must carry A16 into FILE2 even though
4345 FILE2 doesn't need it for its own processing". If you want the exact analog of
4346 the MAK version you can change the A16 equate to:
4349 *equate file1.A16 file2.A16 file3.A16
</programlisting>
4353 The following commands (and any other unknown commands) are currently
4355 % (Convergence angle (file-level)),
4356 * (Convergence angle (non file-level)),
4357 ! (Project parameters)
4363 <Sect2><Title>Compass .CLP support
</Title>
4365 A Compass .CLP file contains raw survey data after adjusting for loop closure.
4366 The actual format is otherwise identical to a Compass .DAT file, and Survex
4367 1.4.6 and later support processing a .CLP file with cavern or aven as if it
4368 were a .svx file (the extra support is to recognise the .CLP extension, and
4369 to not apply the instrument corrections a second time).
4373 You can even use
<command>*include compassfile.clp
</command> in a
4374 <filename>.svx
</filename> file and it'll work, which allows combining
4375 separate cave survey projects maintained in Survex and Compass.
4379 Usually it is preferable to process the survey data without loop closure
4380 adjustments (i.e. .DAT) so that when new data is added errors get
4381 distributed appropriately across old and new data, but it might be
4382 useful to use the .CLP file if you want to keep existing stations at the same
4383 adjusted positions, for example to be able to draw extensions on an existing
4384 drawn-up survey which was processed with Compass.
4388 Another possible reason to use the data from a .CLP file is if that's all
4389 you have because the original .DAT file has been lost.
4393 <Sect2><Title>Compass .PLF/.PLT support
</Title>
4395 A Compass .PLT file contains processed survey data. The extension .PLF is
4396 also used for
"special feature files" which have essentially the same format.
4397 You can load these files with
<command>aven
</command> as if they were
.3d
4398 files, and similarly for other Survex tools which expect a
.3d file such as
4399 <command>survexport
</command>,
<command>extend
</command>,
4400 <command>diffpos
</command>,
<command>3dtopos
</command> and
4401 <command>dump3d
</command>. (This support is actually provided by Survex's img
4402 library, so other programs which use this library should also be able to read
4403 Compass .PLT files without much extra work.)
4407 Survex understands most PLT file features. Known current limitations and
4412 Survey date January
1st
1901 is treated as
"no date specified", since
4413 this is the date Compass stores in this situation, and it seems very
4414 unlikely to occur in real data.
4417 Passage dimensions are translated to passage tubes, but Survex may
4418 interpret them differently from Compass.
4421 Shot flag C is currently ignored.
4424 Shot flag L is mapped to Survex's
"duplicate" leg flag.
4427 Shot flag P and plot command d are mapped to Survex's
"surface" leg
4428 flag. The Compass documentation describes shot flag P as
"Exclude this
4429 shot from plotting", but the suggested use for it is for surface data,
4430 and shots flagged P
"[do] not support passage modeling". Even if it's
4431 actually being used for a different purpose, Survex programs don't show
4432 surface legs by default so the end effect is at least to not plot as
4433 intended. Stations are flagged as surface and/or underground based
4434 on whether they are at the ends of legs flagged surface or non-surface
4435 (a station at the boundary can be flagged as both).
4438 Shot flag S is mapped to Survex's
"splay" leg flag. A station at the
4439 far end of a shot flagged S gets the
"station on wall" flag set since
4440 the Compass PLT format specification says:
4442 The shot is a
"splay" shot, which is a shot from a station to the
4443 wall to define the passage shape.
4447 Stations with
"distance from entrance" of zero are flagged as entrances.
4450 Stations which are present in multiple surveys are flagged as exported
4451 (like when
<command>*infer exports
</command> is in effect in .svx files).
4454 Stations listed as fixed points are flagged as fixed points.
4457 If a PLT file only uses one datum and UTM zone combination and it is
4458 supported (the same combinations are supported as for MAK files) then
4459 they are converted to the appropriate EPSG code or PROJ4 string and this
4460 is reported as the coordinate system. Please let us know if support for
4461 additional cases which aren't currently supported would be useful to you.
4462 Files with multiple datums could be handled too, but we'd need to convert
4463 coordinates to a common coordinate system in the img library, which would
4464 need it to depend on PROJ. Please let us know if support for mixed
4465 datums would be useful to you.
4474 <Sect1><Title>Mailing List
</Title>
4475 <?dbhtml filename=
"maillist.htm">
4477 <Para>The best way to contact the authors and other Survex users is the
4478 Survex mailing list - for details visit:
4479 <ulink url=
"https://survex.com/maillist.html">https://survex.com/maillist.html
</ulink>
4482 <Para>We'd be delighted to hear how you get on with
<Application>Survex
</Application> and
4483 welcome comments and suggestions for improvements.
</Para>
4486 And we'd love you to contribute your skills to help make
<Application>Survex
</Application> even
4487 better. Point out areas of the documentation which could be made clearer, or
4488 sections which are missing entirely. Download test releases, try them out, and
4489 let us know if you find problems or have suggestions for improvements.
4490 If there's no translation to your language, you could provide one.
4491 Or if you're a developer,
<emphasis>"Say it with code"</emphasis>. There's
4492 plenty to do, so feel free to join in.
4497 <Sect1><Title>Future Developments
</Title>
4498 <?dbhtml filename=
"future.htm">
4501 Now that
<Application>Survex
</Application> has reached version
1.0, we are continuing progress
4502 towards version
2, in a series of steps, evolving out of
4503 Survex
1.0. The GUI framework is being based on aven, with
4504 the printer drivers and other utility programs being pulled in
4505 and integrated into the menus.
</Para>
4507 <Para>Aven is built on
<Application>wxWidgets
</Application>, which means that it can easily support
4508 Unix, Microsoft Windows, and macOS.
</Para>
4510 <Para>More information on our plans is on the
<ulink
4511 url=
"https://survex.com/">web site
</ulink>.