source: git/doc/manual.sgml @ 8afa264

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 8afa264 was 58e3c13, checked in by Olly Betts <olly@…>, 8 years ago

Fix broken SGML markup

  • Property mode set to 100644
File size: 104.2 KB
RevLine 
[e6aa3b1]1<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
[ce92903]2<!ENTITY man.aven SYSTEM "aven.sgml">
3<!ENTITY man.3dtopos SYSTEM "3dtopos.sgml">
4<!ENTITY man.cad3d SYSTEM "cad3d.sgml">
5<!ENTITY man.cavern SYSTEM "cavern.sgml">
6<!ENTITY man.diffpos SYSTEM "diffpos.sgml">
7<!ENTITY man.extend SYSTEM "extend.sgml">
8<!ENTITY man.sorterr SYSTEM "sorterr.sgml">
[40647f5]9]>
[6eadc5b]10
[6aef4f1]11<!--
[a6d094f]12FIXME:
[2463f16]13
[e74904e]143dfile title:
[6af6d51]15defaults to a list of the leafnames of the <filename>.svx</filename> files specified on the
[e74904e]16command line (with any paths and extensions removed).
[f9dc4a0]17.
[e74904e]18e.g.: cavern entrance.svx \data\2ndpart.svx
[f9dc4a0]19.
[e74904e]20would give a surveytitle of 'entrance 2ndpart'.
[f9dc4a0]21.
22but this may change...
[e74904e]23
[6aef4f1]24FIXME todo:
[c1573d8]25mark-up of Windows Windows NT etc?
[6aef4f1]26section on "design philosophy"
[3b5acb5]27
28level sump fudge:
29
30*begin
31*data cartesian from to dx dy dz
32*sd dx dy 100 metres
33*sd dz 0.001 metres
34; upstream - downstream
35nuiping.gowiththeflow.129 dachao.upstream.105 0 0 0 ; last number is drop in height across the sump
36*end
37
[64d37a3]38``Quick start'' section
39
40- install (by OS): unpacking, configuration (language, where support files live)
41
42- lead people through entering and processing
[3162ed8]43a sample survey.  Take examples from surveying books and real surveys.
44
[0706076]45
[e6aa3b1]46<Para>The other really important commands apart from *BEGIN, *END, and
47*INCLUDE are *EQUATE and *FIX.
48</Para>
49
50<Para>*EQUATE is used to join surveys together, e.g.
51</Para>
52
53<programlisting>*equate entrance.6 adrian.1</programlisting>
54
55<Para>
56indicates that station 6 of the entrance survey was used as
57the station 1 of the Adrian's Route survey.
58</Para>
59
[a6d094f]60<Para>*FIX is for fixing control points - for example:
[e6aa3b1]61</Para>
62
63<programlisting>
64*fix 161.entrance.1    0  0  1780</programlisting>
65
66<Para>fixes the 1st point of the 'entrance' survey at the coordinates
670 (east-west), 0 (north-south), 1780 (altitude).
68</Para>
69
[21c226e]70
71<term>node</term>
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
74a 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
762-node is a typical station along a passage with a survey leg coming
77into it, and one going out.  A 3-node is a station with three legs
78joining it, e.g. at a T-junction. And so on.
79</para>
80
[6aef4f1]81-->
82
[ce92903]83<article Status="draft" id="index">
[6eadc5b]84 <articleinfo>
[52dad0e]85  <Title><Application>Survex</Application> <!--VERSION-->1.2.24 Manual</Title>
[40647f5]86  <AuthorGroup>
87   <Author>
[38335b7]88    <FirstName>Olly</FirstName>
89    <SurName>Betts</SurName>
[40647f5]90    <AuthorBlurb><Para>
[6af6d51]91      Olly Betts wrote most of <Application>Survex</Application>.
[40647f5]92    </Para></AuthorBlurb>
[fbc41c2]93    <Affiliation>
[6af6d51]94     <Address><Email>olly@survex.com</Email></Address>
[fbc41c2]95    </Affiliation>
[40647f5]96   </Author>
97   <Author>
[38335b7]98    <SurName>Wookey</SurName>
[40647f5]99    <AuthorBlurb><Para>
[fbc41c2]100      Wookey is a small furry creature.
[40647f5]101    </Para></AuthorBlurb>
[fbc41c2]102    <Affiliation>
[6af6d51]103     <Address><Email>wookey@survex.com</Email></Address>
[fbc41c2]104    </Affiliation>
[40647f5]105   </Author>
106  </AuthorGroup>
[fbc41c2]107  <copyright>
[ad05888]108   <year>1998-2015</year>
[6af6d51]109   <holder role="mailto:olly@survex.com">Olly Betts</holder>
[fbc41c2]110  </copyright>
[40647f5]111  <Abstract>
112   <Para>
[6af6d51]113    This is the manual for <Application>Survex</Application> - an open-source software package for
[40647f5]114    cave surveyors.
[c1573d8]115   </Para>
[40647f5]116  </Abstract>
[6eadc5b]117 </articleinfo>
[40647f5]118
[c1573d8]119<Sect1><Title>Introduction</Title>
[0d62afe]120<?dbhtml filename="intro.htm">
[40647f5]121
[21c226e]122<Para>
[6af6d51]123This section describes what <Application>Survex</Application> is, and outlines the scope of this
[21c226e]124manual.
125</Para>
126
[6af6d51]127<Sect2><Title>About <Application>Survex</Application></Title>
[21c226e]128
[6af6d51]129<Para><Application>Survex</Application> is a multi-platform open-source cave surveying
[6e420ba]130package.
[aa3ed76]131Version 1.2 runs on UNIX, Microsoft Windows, and Mac OS X.
132We're investigating support for phones and tablets.
[a6d094f]133</Para>
[40647f5]134
[c1573d8]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
[6af6d51]137computers used are donated.  We aim to ensure that <Application>Survex</Application> is
[57a5ebb]138feasible to use on low-spec machines.  Obviously it won't be as
139responsive, but we intend it to be usable.
140Please help us to achieve this by giving us some feedback
[6af6d51]141if you use <Application>Survex</Application> on a slow machine.</Para>
[6aef4f1]142
[6af6d51]143<Para><Application>Survex</Application> is capable of processing extremely complex caves very
[c1eff09]144quickly and has a very effective, real-time cave viewer which allows
[0706076]145you to rotate, zoom, and pan the cave using mouse or keyboard. We have
[6af6d51]146tested it extensively using <Acronym>CUCC</Acronym> and <Acronym>ARGE</Acronym>'s surveys of the caves
[1352bb9]147under the Loser Plateau in Austria (over 25,000 survey legs, and over
148140km of underground survey data). This can all be processed in around
[a3f8737]14910 seconds on a low-end netbook.
[0706076]150Survex is also used by many other survey projects around the world,
[c2832c8]151including the
[27b8b59]152<ulink url="http://www.oucc.org.uk/draenen/draenenmain.htm"
[c2832c8]153>Ogof Draenen</ulink> survey, the
154<ulink url="http://www.easegill.org.uk/">Easegill</ulink> resurvey project,
[38335b7]155the <Acronym>OFD</Acronym> survey, the
[27b8b59]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"
[38335b7]158><Acronym>OUCC</Acronym> Picos expeditions</ulink>, and the
[27b8b59]159<ulink url="http://www.hongmeigui.net/">Hong Meigui China
[21c226e]160expeditions</ulink>. <!-- FIXME more? --></Para>
[0706076]161
[6af6d51]162<Para><Application>Survex</Application> is still actively being worked on.  Version 1.0 was
[21c226e]163complete in some sense, but development continues - initially in reshaping
[0706076]164Survex into a more integrated GUI package.</Para>
[6aef4f1]165
[c1573d8]166<Para>We encourage feedback from users on important features or problems,
[77a3d7a]167which will help to direct future development.  See the "Mailing List" section
168of this manual for the best way to contact us.</Para>
[21c226e]169
170</Sect2>
[40647f5]171
[0706076]172<!--
[6af6d51]173<Para>Because <Application>Survex</Application> is still being actively developed, this document
[fbc41c2]174has an unfortunate tendency to lag slightly behind the capabilities of the
175software. The latest version is now available on the web at <ulink
[6af6d51]176url="http://survex.com/">http://survex.com/</ulink> - check there for latest info.
[c1573d8]177</Para>
[0706076]178-->
[647407d]179
[c359bfd]180<!--
[647407d]181<Sect2><Title>Other Documentation</Title>
182
[e6aa3b1]183<variablelist>
184<varlistentry>
185<term>NEWS or NEWS.txt</term>
186<listitem><Para>a list of changes of interest to
[6af6d51]187<Application>Survex</Application> users, broken down by version number.  Consult this file
[c1eff09]188when upgrading to find out what has changed since the version you were
189using previously.
[e6aa3b1]190</Para></listitem>
191</varlistentry>
[647407d]192
[e6aa3b1]193<varlistentry>
194<term>ChangeLog or CHANGES.txt</term>
195<listitem><Para>a much more detailed list of changes, aimed at developers
196rather than end users.
197</Para></listitem>
198</varlistentry>
[647407d]199
[e6aa3b1]200<varlistentry>
201<term>BUGS or BUGS.txt</term>
202<listitem><Para>a list of known bugs.
203</Para></listitem>
204</varlistentry>
[647407d]205
[e6aa3b1]206<varlistentry>
207<term>TODO or TODO.txt</term>
208<listitem><Para>planned changes and enhancements.
209</Para></listitem>
210</varlistentry>
[647407d]211
[6eadc5b]212FIXME: merge INSTALL* into here, then process separately and textify
213to produce INSTALL*
214
[e6aa3b1]215<varlistentry>
216<term>INSTALL or INSTALL.txt</term>
[6af6d51]217<listitem><Para>instructions for installing <Application>Survex</Application>.  The
[23d2a0e]218Microsoft Windows version comes packaged up with an installation wizard,
219so this file doesn't exist there (you just run the package and follow
220the on-screen instructions).
[e6aa3b1]221</Para></listitem>
222</varlistentry>
223</variablelist>
[ff003b3]224
[647407d]225</Sect2>
[c359bfd]226-->
[647407d]227
[21c226e]228<Sect2><Title>About this Manual</Title>
229
230<Para>
231If there's a part of this manual you find hard to understand, please do
232let us know.  We already know Survex well, so it can be hard for us
233to spot areas where the manual doesn't given enough information, or
234doesn't explain things clearly enough to follow when you don't know what's
235going on.  It's helpful is you can suggest a better wording, but don't worry
236if you can't, just explain the problem as precisely as you can.
237</Para>
238
239<Para>
240The master version of this manual is an <acronym>SGML</acronym>
241document written using the <ulink url="http://www.docbook.org/">docbook
242<acronym>DTD</acronym></ulink>,
243and automatically converted to a number of other formats.  If
244you are going to send us <emphasis>major</emphasis> changes, it's much easier
245to include them if you work from this master.  You can get it
246from the source archive (docs/manual.sgml) or from <ulink
[495f86e]247url="http://survex.com/docs.html">the Survex website</ulink>.
[21c226e]248</Para>
249
250<Sect3><Title>Terminology</Title>
[e6aa3b1]251
252<Para>Throughout this document we use British terminology for
253surveying.</Para>
254
255<variablelist>
256<varlistentry>
257<term>station</term>
258<listitem><para>a point in the cave that you survey from and/or to
259</para></listitem></varlistentry>
260
261<varlistentry>
262<term>leg</term>
263<listitem><para>a line joining two stations
264</para></listitem></varlistentry>
265
266<varlistentry>
267<term>survey</term>
268<listitem><para>a group of legs surveyed on the same trip
269</para></listitem></varlistentry>
270
271</variablelist>
272
[21c226e]273</Sect3>
274
[e6aa3b1]275</Sect2>
276
[21c226e]277<!-- FIXME: Further sources of info: website, mailing lists, other docs -->
278
[e189be2]279</Sect1>
[40647f5]280
[c1573d8]281<Sect1><Title>Getting Started</Title>
[0d62afe]282<?dbhtml filename="getstart.htm">
[40647f5]283
[c1573d8]284<Para>This section covers how to obtain the software, and how to unpack and
[6eadc5b]285install it, and how to configure it.</Para>
[40647f5]286
[6af6d51]287<Sect2><Title>Obtaining <Application>Survex</Application></Title>
[c1573d8]288
[6af6d51]289<Para>The latest version is available from the <Application>Survex</Application> website:
290<ulink url="http://survex.com/">http://survex.com/</ulink>.  It is also
[77a3d7a]291freely redistributable, so you welcome to get a copy from someone else
292who has already downloaded it.</Para>
[21c226e]293
[3d56564]294<Para>If you want some sample data to experiment with, you can download some
295from the Survex website too:
296<ulink url="http://survex.com/software/sample.tar.gz">http://survex.com/software/sample.tar.gz</ulink></Para>
297
[6eadc5b]298</Sect2>
299
[6af6d51]300<Sect2><Title>Installing <Application>Survex</Application></Title>
[6eadc5b]301
[c1573d8]302<Para>The details of installation depend greatly on what platform you
303are using, so there is a separate section below for each platform.</Para>
304
[6af6d51]305<Sect3><Title>Linux</Title>
[c1573d8]306
[229c6ca]307<Para>
[6af6d51]308We supply pre-compiled versions for x86 Linux machines in RPM format
[558779a]309(suitable for Redhat, Mandrake, and some other distributions).
310Survex Debian packages are available from Debian mirror sites in
311the usual way.
[229c6ca]312</Para>
313
[e6aa3b1]314<Para>
315You'll need root access to install these prebuilt packages.
316If you don't have root access you will need to build from source
317(see the next section).
318</Para>
319
[b462168]320<!-- FIXME Add Gnome file association note for Linux/Unix
[6af6d51]321<Para>On Microsoft Windows, <Application>Survex</Application> installs with
[b462168]322suitable file associations so that you can drive it from the GUI.
[6af6d51]323On UNIX you need to drive <Application>Survex</Application> from a command-line
[b462168]324prompt (or set some a filemanager or graphics shell).
325</Para>
326-->
327
[ce92903]328</Sect3>
329
[6af6d51]330<Sect3><Title>Other versions of UNIX</Title>
[0706076]331
[6af6d51]332<Para>For other UNIX versions you'll need to get the source code
[7a0710c]333and compile it on your system.  Unpack the sources and read
334the file called INSTALL in the top level for details about building
335from source.
[229c6ca]336</Para>
[6e0ec04]337
[e189be2]338</Sect3>
[c1573d8]339
[aa3ed76]340<Sect3><Title>Microsoft Windows</Title>
[c1573d8]341
[3162ed8]342<Para>
[a6d094f]343This version comes packaged with an installation wizard.  Just
[eb48e2b]344run the downloaded package and it will lead you through the
[aa3ed76]345installation process.  If you want the file associations to be
346set up for all user, run the installer as administrator, or as a
347user with administrator rights.
[3162ed8]348</Para>
[c1573d8]349
[3162ed8]350<Para>
[aa3ed76]351The survey viewer that's part of <Application>Survex</Application> is called
352aven, and uses OpenGL for 3d rendering.
[b4b840a]353</Para>
354
355<Para>
356If you find that 3D rendering is sometimes very slow (e.g. one user reported
357very slow performance when running full screen, while running in a window
358was fine) then try installing the OpenGL driver supplied by the manufacturer
359of your graphics card rather than the driver Microsoft supply.
[3b5acb5]360</Para>
[c1573d8]361
[1b92879]362<Para>
363The installer creates a Survex group in the Programs sub-menu of the
364Start menu containing the following items:
[3162ed8]365</Para>
366
367<ItemizedList>
[9e507547]368
[3162ed8]369<ListItem><Para>Aven</Para></ListItem>
370
[1b92879]371<ListItem><Para>Documentation</Para></ListItem>
[3162ed8]372
373<ListItem><Para>Uninstall Survex</Para></ListItem>
374
375</ItemizedList>
376
377<Para>
[6af6d51]378Icons are installed for <filename>.svx</filename>, <filename>.3d</filename>, <filename>.err</filename>, and <filename>.pos</filename> files, and also for
[eb48e2b]379Compass Plot files (<filename>.plt</filename> and <filename>.plf</filename>)
380(which Survex can read). <!-- FIXME XYZ -->
[6af6d51]381Double-clicking on a <filename>.svx</filename> file loads it for editing.  To process it to
382produce a <filename>.3d</filename> file, right click and choose "Process" from the menu.
383Double-clicking the resultant <filename>.3d</filename> file views it in aven.
384All the <Application>Survex</Application> file types can be right clicked on to give a menu of
[b4b840a]385possible actions. 
[3162ed8]386</Para>
387
[c460f15]388<VariableList>
[6af6d51]389<VarListEntry><Term><filename>.svx</filename></Term>
[c460f15]390<ListItem>
391  <VariableList>
392  <VarListEntry><Term>Process</Term>
393  <ListItem><Para>
[76debf4]394  Process file with aven to produce <filename>.3d</filename> file (and <filename>.err</filename> file)
[c460f15]395  </Para></ListItem>
396  </VarListEntry>
397  </VariableList>
398</ListItem>
399</VarListEntry>
400   
[6af6d51]401<VarListEntry><Term><filename>.3d</filename></Term>
[c460f15]402<ListItem>
403  <VariableList>
404  <VarListEntry><Term>Open</Term>
405  <ListItem><Para>
406  Load file into Aven
407  </Para></ListItem>
408  </VarListEntry>
409  <VarListEntry><Term>Print</Term>
410  <ListItem><Para>
411  Send to the printer
412  </Para></ListItem>
413  </VarListEntry>
414  <VarListEntry><Term>Extend</Term>
415  <ListItem><Para>
416  Produce extended elevation
417  </Para></ListItem>
418  </VarListEntry>
419  <VarListEntry><Term>Convert to DXF</Term>
420  <ListItem><Para>
[eb48e2b]421  Convert to a DXF file (suitable for importing into many CAD packages)
[c460f15]422  </Para></ListItem>
423  </VarListEntry>
424  <VarListEntry><Term>Convert for hand plotting</Term>
425  <ListItem><Para>
[6af6d51]426  Produce a <filename>.pos</filename> file listing all the stations and their coordinates
[c460f15]427  </Para></ListItem>
428  </VarListEntry>
429  </VariableList>
430</ListItem>
[ce92903]431</VarListEntry>
[c460f15]432
[6af6d51]433<VarListEntry><Term><filename>.err</filename></Term>
[c460f15]434<ListItem>
435  <VariableList>
436  <VarListEntry><Term>Open</Term>
437  <ListItem><Para>
438  Load file into Notepad
439  </Para></ListItem>
440  </VarListEntry>
441  <VarListEntry><Term>Sort by Error</Term>
442  <ListItem><Para>
[6af6d51]443  Sort <filename>.err</filename> file by the error in each traverse
[c460f15]444  </Para></ListItem>
445  </VarListEntry>
446  <VarListEntry><Term>Sort by Horizontal Error</Term>
447  <ListItem><Para>
[6af6d51]448  Sort <filename>.err</filename> file by the horizontal error in each traverse
[c460f15]449  </Para></ListItem>
450  </VarListEntry>
451  <VarListEntry><Term>Sort by Vertical Error</Term>
452  <ListItem><Para>
[6af6d51]453  Sort <filename>.err</filename> file by the vertical error in each traverse
[c460f15]454  </Para></ListItem>
455  </VarListEntry>
456  <VarListEntry><Term>Sort by Percentage Error</Term>
457  <ListItem><Para>
[6af6d51]458  Sort <filename>.err</filename> file by the percentage error in each traverse
[c460f15]459  </Para></ListItem>
460  </VarListEntry>
461  <VarListEntry><Term>Sort by Error per Leg</Term>
462  <ListItem><Para>
[6af6d51]463  Sort <filename>.err</filename> file by the error per leg in each traverse
[c460f15]464  </Para></ListItem>
465  </VarListEntry>
466  </VariableList>
467</ListItem>
468</VarListEntry>
469</VariableList>
[3162ed8]470
[67fffdf]471</Sect3>
[9e507547]472
[e189be2]473</Sect2>
[40647f5]474
[6eadc5b]475<Sect2><Title>Configuration</Title>
[375f7f6]476
[63dc4eb]477<Sect3><Title>Selecting Your Preferred Language</Title>
[e189be2]478
[e6aa3b1]479<Para>Survex has extensive internationalisation capabilities.  The
[1b92879]480language used for messages from Survex and most of the library calls
481it uses can be changed.  By default this is picked up from the
482language the operating system is set to use (from "Regional Settings"
483in Control Panel on Microsoft Windows, from the
[6af6d51]484<systemitem>LANG</systemitem> environment variable on UNIX
[6e420ba]485If no setting
[6af6d51]486is found, or <Application>Survex</Application> hasn't been translated into the
[1b92879]487requested language, UK English is used.</Para>
[40647f5]488
[e6aa3b1]489<Para>
[1b92879]490However you may want to override the language manually -
491for example if Survex isn't available in your native language
[63dc4eb]492you'll want to choose the supported language you understand best.
[e6aa3b1]493</Para>
[40647f5]494
[e6aa3b1]495<Para>
496To do this, you set the
497<systemitem>SURVEXLANG</systemitem> environment variable.  Here's a list
[63dc4eb]498of the codes currently supported:</Para>
[40647f5]499
[e6aa3b1]500<informaltable frame="all">
[c1573d8]501<tgroup cols="2">
502<thead>
[38335b7]503<row><entry>Code</entry><entry>Language</entry></row>
[c1573d8]504</thead>
505<tbody>
[38335b7]506<row><entry>en</entry><entry>International English</entry></row>
507<row><entry>en_US</entry><entry>US English</entry></row>
508<row><entry>bg</entry><entry>Bulgarian</entry></row>
509<row><entry>ca</entry><entry>Catalan</entry></row>
510<row><entry>de</entry><entry>German</entry></row>
511<row><entry>de_CH</entry><entry>Swiss German</entry></row>
512<row><entry>el</entry><entry>Greek</entry></row>
513<row><entry>es</entry><entry>Spanish</entry></row>
514<row><entry>fr</entry><entry>French</entry></row>
515<row><entry>hu</entry><entry>Hungarian</entry></row>
516<row><entry>id</entry><entry>Indonesian</entry></row>
517<row><entry>it</entry><entry>Italian</entry></row>
518<row><entry>pl</entry><entry>Polish</entry></row>
519<row><entry>pt</entry><entry>Portuguese</entry></row>
520<row><entry>pt_BR</entry><entry>Brazillian Portuguese</entry></row>
521<row><entry>ro</entry><entry>Romanian</entry></row>
522<row><entry>ru</entry><entry>Russian</entry></row>
523<row><entry>sk</entry><entry>Slovak</entry></row>
524<row><entry>zh_CN</entry><entry>Chinese (Simplified)</entry></row>
[c1573d8]525</tbody>
[e189be2]526</tgroup>
[c1573d8]527</informaltable>
[40647f5]528
[e6aa3b1]529<Para>Here are examples of how to set this environment variable to give
530messages in French (language code fr):</Para>
[40647f5]531
532<VariableList>
[d7b3fd3]533 <VarListEntry><Term>Microsoft Windows</Term>
534   <ListItem><Para>
[aa3ed76]535For MS Windows proceed as follows (this description was written from
536MS Windows 2000, but it should be fairly similar in other versions): Open the
537Start Menu, navigate to the Settings sub-menu, and
[af1e622]538open Control Panel.  Open System (picture of a computer) and click on the
539Advanced tab.  Choose `Environmental Variables', and create a new one: name
540<systemitem>SURVEXLANG</systemitem>, value <systemitem>fr</systemitem>.
541Click OK and the new value should be effective immediately.
[d7b3fd3]542   </Para></ListItem>
[40647f5]543 </VarListEntry>
[6af6d51]544 <VarListEntry><Term>UNIX - csh/tcsh</Term>
[e6aa3b1]545   <ListItem><Para><userinput>setenv SURVEXLANG fr</userinput></Para></ListItem>
[40647f5]546 </VarListEntry>
[6af6d51]547 <VarListEntry><Term>UNIX - sh/bash</Term>
[e6aa3b1]548   <ListItem><Para><userinput>SURVEXLANG=fr ; export SURVEXLANG</userinput></Para></ListItem>
[40647f5]549 </VarListEntry>
550</VariableList>
551
[6af6d51]552<Para>If <Application>Survex</Application> isn't available in your language, you could
[e6aa3b1]553help out by providing a translation.  The initial translation is
554likely to be about a day's work; after that translations for
555new or changed messages are occasionally required.  Contact us for details
556if you're interested.</Para>
[40647f5]557
[6eadc5b]558</Sect3>
559
[1a50c3c]560</Sect2>
561
[e189be2]562</Sect1>
563
[6eadc5b]564<!-- FIXME
565
566type in .svx file
567
[4e8d288]568run cavern (through aven)
[6eadc5b]569
[6e420ba]570run aven
[6eadc5b]571
[4e8d288]572how to print/export etc
[6eadc5b]573
574-->
575
[eb48e2b]576<!-- FIXME perhaps move this after data files section? -->
[6eadc5b]577<Sect1><Title>Survex Programs</Title>
[0d62afe]578<?dbhtml filename="cmdline.htm">
[51c0677]579
[6eadc5b]580<Sect2><Title>Standard Options</Title>
[51c0677]581
[6af6d51]582<Para>All <Application>Survex</Application> programs respond to the following command line options:
[e189be2]583</Para>
[51c0677]584
585<VariableList>
586
587<VarListEntry><Term>--help</Term><listitem><Para>
[6eadc5b]588display option summary and exit
[51c0677]589</Para></listitem></VarListEntry>
590
591<VarListEntry><Term>--version</Term><listitem><Para>
592output version information and exit
593</Para></listitem></VarListEntry>
594
595</VariableList>
596
[6eadc5b]597</Sect2>
598
599<Sect2><Title>Short and Long Options</Title>
600
[e6aa3b1]601<Para>
602Options have two forms: short (a dash followed by a single letter e.g.
[21904d3]603<command>cavern -q</command>) and long (two dashes followed by one or more words e.g.
604<command>cavern --quiet</command>).  The long form is generally easier to
[e6aa3b1]605remember, while the short form is quicker to type.  Options are often
606available in both forms.
[e189be2]607</Para>
[51c0677]608
[e6aa3b1]609<Note><Para>Command line options are case sensitive, so "-B" and "-b"
610are different (this didn't used to be the case before Survex 0.90).  Case
611sensitivity doubles the number of available short options (and is also the
[6af6d51]612norm on UNIX).
[e6aa3b1]613</Para></Note>
[6eadc5b]614</Sect2>
[40647f5]615
[6eadc5b]616<Sect2><Title>Filenames on the Command Line</Title>
[40647f5]617
[e6aa3b1]618<Para>Filenames with spaces can be processed (provided your operating system
[6af6d51]619supports them - UNIX does, and so do recent versions of Microsoft
[e6aa3b1]620Windows).  You need to enclose the filename in quotes like so:
621<userinput>cavern "Spider Cave"</userinput>
622</Para>
[e189be2]623
[6af6d51]624<Para>A file specified on the command line of any of the <Application>Survex</Application> suite
[6eadc5b]625of programs will be looked for as specified.  If it is not found, then the
626file is looked for with the appropriate extension appended.  So
627<userinput>cavern survey</userinput> will look first for
628<filename>survey</filename>, then for <filename>survey.svx</filename>.
[1a50c3c]629</Para>
[40647f5]630
[e189be2]631</Sect2>
632
[6eadc5b]633<Sect2><title>Command Reference</title>
[e189be2]634
[6eadc5b]635<refentry id="cavern">
[0d62afe]636<?dbhtml filename="cavern.htm">
[6eadc5b]637&man.cavern;
638</refentry>
[27b8b59]639<refentry id="aven">
[0d62afe]640<?dbhtml filename="aven.htm">
[27b8b59]641&man.aven;
642</refentry>
[6eadc5b]643<refentry id="x3dtopos">
[0d62afe]644<?dbhtml filename="3dtopos.htm">
[6eadc5b]645&man.3dtopos;
646</refentry>
647<refentry id="cad3d">
[0d62afe]648<?dbhtml filename="cad3d.htm">
[6eadc5b]649&man.cad3d;
650</refentry>
651<refentry id="diffpos">
[0d62afe]652<?dbhtml filename="diffpos.htm">
[6eadc5b]653&man.diffpos;
654</refentry>
655<refentry id="extend">
[0d62afe]656<?dbhtml filename="extend.htm">
[6eadc5b]657&man.extend;
658</refentry>
659<refentry id="sorterr">
[0d62afe]660<?dbhtml filename="sorterr.htm">
[6eadc5b]661&man.sorterr;
662</refentry>
[e189be2]663
664</Sect2>
[40647f5]665
[e189be2]666</Sect1>
667
[6af6d51]668<Sect1><Title><Application>Survex</Application> data files</Title>
[0d62afe]669<?dbhtml filename="datafile.htm">
[c1573d8]670
[ff003b3]671<Para>Survey data is entered in the form of text files. You can use any
672text editor you like for this, so long as it has the capability of
[1a50c3c]673writing a plain ASCII text file. The data format is very flexible;
[eb48e2b]674unlike some other cave surveying software, Survex does not require
675survey legs to be rearranged to suit the computer, and the ordering
676of instrument readings on each line is fully specifiable.  So you can enter
[1a50c3c]677your data much as it appears on the survey notes, which is important
[eb48e2b]678in reducing the opportunities for transcription errors.
[1a50c3c]679</Para>
680
[191536f]681<Para>
[a7e3295]682Also all the special characters are user-definable - for example,
[191536f]683the separators can be spaces and tabs, or commas (e.g. when exporting from a
684spreadsheet), etc; the decimal point can be a slash (for clarity), a comma
[1a50c3c]685(as used in continental Europe), or anything else you care to choose.
686This flexibility
[ff003b3]687means that it should be possible to read in data from almost any sort of
[191536f]688survey data file without much work.
[e189be2]689</Para>
[c1573d8]690
[6af6d51]691<Para><Application>Survex</Application> places no restrictions on you in terms of the ordering
692of survey legs. You can enter or process data in any order and <Application>Survex</Application> will
[c1573d8]693read it all in before determining how it is connected. You can also use the
694hierarchical naming so that you do not need to worry about using the same
695station name twice.
[e189be2]696</Para>
[c1573d8]697
[1a50c3c]698<!-- FIXME don't encourage separate processing -->
[3d5fb53]699<Para>The usual arrangement is to have one file which lists all the others
[38335b7]700that are included (e.g., <filename>161.svx</filename>). Then
701<command>cavern 161</command> will process all your data. To just process a
702section use the filename for that section, e.g. <command>cavern dtime</command>
[c1573d8]703will process the dreamtime file/section of Kaninchenh&ouml;hle.  To
[1a50c3c]704help you out, if all legs in a survey are connected to one another
705but the survey has no fixed points, cavern
[c1573d8]706will 'invent' a fixed point and print a warning message to this
707effect.
[e189be2]708</Para>
[c1573d8]709
[a7e3295]710<Para>
711It is up to you what data you put in which files.  You
[40647f5]712can have one file per trip, or per area of the cave, or just one
713file for the whole cave if you like.
[a7e3295]714On a large survey project it makes sense to group related surveys in the
715same file or directory.
[e189be2]716</Para>
[9e507547]717<!-- FIXME: wook sez:
718
719 Point out in documentation that file structure and survey structure don't
720 have to be the same.  And in particular that folder/directory names can be
721 different.
722
723Which is partly covered above, though the last bit isn't...
724-->
[40647f5]725
[eb48e2b]726<!-- FIXME "Anatomy of a Survey" section -->
[e189be2]727<Sect2><Title>Readings</Title>
[c1573d8]728
[a7e3295]729<Para>Blank lines (i.e. lines consisting solely of BLANK characters)
[6aef4f1]730are ignored. The last line in the file need not be terminated by
[40647f5]731an end of line character. All fields on a line must be separated
[a7e3295]732by at least one BLANK character. An OMIT character
[40647f5]733(default '-') indicates that a field is unused. If the field is
734not optional, then an error is given.
[e189be2]735</Para>
[40647f5]736
[e189be2]737</Sect2>
738
739<Sect2><Title>Survey Station Names</Title>
[40647f5]740
[6af6d51]741<Para><Application>Survex</Application> has a powerful system for naming stations.  It
[eb48e2b]742uses a hierarchy of survey names, similar to the nested folders
743your computer stores files in.
744So point 6 in the entrance survey of Kaninchenh&ouml;hle
[a4458fd5]745(cave number 161) is referred to as: 161.entrance.6
746</Para>
747
748<Para>This seems a natural way to refer to station names.  It also
749means that it is very easy to include more levels, for example if you
750want to plot all the caves in the area you just list them all in
[eb48e2b]751another file, specifying a new prefix.  So to group 3 nearby caves
752on the Loser Plateau you would use a file like
[a4458fd5]753this:
754</Para>
755
756<programlisting>
757*begin Loser
758*include 161
759*include 2YrGest
760*include 145
761*end Loser</programlisting>
762
763<Para>
764The entrance series point mentioned above would now be referred
765to as: Loser.161.entrance.6
766</Para>
767
768<!--
769<Para>This may seem a tad complex but is really very natural once you
770get the hang of it.
771</Para>
772-->
773<Para>You do not have to use this system at all, and can just give all
774stations unique identifiers if you like:
775</Para>
776
777<Para>1, 2, 3, 4, 5, ... 1381, 1382
778</Para>
779
780<Para>or
781</Para>
782
783<Para>AA06, AA07, P34, ZZ6, etc.
784</Para>
785
786<!-- FIXME:
787<Para>However you'll loose the ability to handle subsurveys if you do.
788</Para>
789-->
790
791<Para>Station and survey names may contain any alphanumeric characters and
[a7e3295]792additionally any characters in NAMES (default `_' and `-'). Alphabetic
[c1573d8]793characters may be forced to upper or lower case by using the *case
794command. Station names may be any length - if you want to only treat
[375f7f6]795the first few characters as significant you can get cavern to truncate
[c1573d8]796the names using the *truncate command.
[e189be2]797</Para>
[c1573d8]798
[44b4d84]799<Sect3><Title>Anonymous Stations</Title>
800
801<Para>
802Survex supports the concept of anonymous survey stations.  That is
803survey stations without a name.  Each time an anonymous station name is
804used it represents a different point.  Currently three types of anonymous
805station are supported, referred to by one, two or three separator characters
806- with the default separator of '.', that means '.', '..', and '...' are
807anonymous stations.  Their meanings are:</Para>
808
809<VariableList>
810<VarListEntry><Term>Single separator ('.' by default)</Term>
811<ListItem><Para>
812An anonymous non-wall point at the end of an implicit splay.
813</Para></ListItem></VarListEntry>
814
815<VarListEntry><Term>Double separator ('..' by default)</Term>
816<ListItem><Para>
817An anoymous wall point at the end of an implicit splay.
818</Para></ListItem></VarListEntry>
819
820<VarListEntry><Term>Triple separator ('...' by default)</Term>
821<ListItem><Para>
822an anoymous point with no implicit flags on the leg (intended for cases like
823a disto leg along a continuing passage).
824</Para></ListItem></VarListEntry>
[58e3c13]825</VariableList>
[44b4d84]826
827<Para>
828You can map '-' to '..' (for compatibility with data from pocket topo) using
829the command:
830</Para>
831
832<programlisting>
833*alias station - ..
834</programlisting>
835
836<Para>Support for anonymous stations and for '*alias station - ..' was added in
837Survex 1.2.7.</Para>
838
839</Sect3>
840
[e189be2]841</Sect2>
842
843<Sect2><Title>Numeric fields</Title>
[c1573d8]844
845<Para>[&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;integer part&gt; [ &lt;DECIMAL&gt;
[40647f5]846[ &lt;decimal fraction&gt; ] ]
[e189be2]847</Para>
848
[40647f5]849<Para>
850or [&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;DECIMAL&gt; &lt;dec fraction&gt;
[e189be2]851</Para>
852
[63dc4eb]853<Para><!-- FIXME: put informal description first -->
[a7e3295]854i.e. optional PLUS or MINUS sign in front, with
855optional DECIMAL character (default '.'), which may be
[40647f5]856embedded, leading or trailing. No spaces are allowed between the
857various elements.
[e189be2]858</Para>
859
[40647f5]860<Para>
[0706076]861All of these are valid examples: +47, 23, -22, +4.5, 1.3, -0.7, +.15, .4,
[40647f5]862-.05
[e189be2]863</Para>
[40647f5]864
[e189be2]865</Sect2>
866
867<Sect2><Title>Accuracy</Title>
[c1573d8]868
[ff003b3]869<Para>Accuracy assessments may be provided or defaulted for any survey
870leg. These determine the distribution of loop closure errors over the
[c1573d8]871legs in the loop. See *SD for more information.
[e189be2]872</Para>
873
874</Sect2>
[40647f5]875
876<!--
[e189be2]877<Sect2><Title>Survey Coordinate Range</Title>
[40647f5]878
[e189be2]879<Para>
[40647f5]880If we store distances to nearest 10um (0.01mm) in 4 bytes, this
881gives a range of ~20 km. This method is currently not used, but
882has several advantages (data storage space [double uses 8 bytes
883- with my C compiler], speed (unless your FP chip works in parallel
[c1573d8]884with your CPU [e.g. the new Acorn FPU for the ARM], and numerical
[40647f5]885accuracy [compared to using floats at least]) and so may be adopted
886in future). Nearest 0.1mm gives -200 km, which is enough for most
887people, but may mean rounding errors become significant.
[e189be2]888</Para>
889
[40647f5]890<Para>
[6aef4f1]891I will have to do some sums...
[e189be2]892</Para>
893
894</Sect2>
895
[40647f5]896-->
897
[f9dc4a0]898<Sect2><Title>Cavern Commands</Title>
[c1573d8]899
[6af6d51]900<Para>Commands in <filename>.svx</filename> files are introduced by an asterisk
[38335b7]901(by default - this can be changed using the <command>set</command> command).
[e189be2]902</Para>
[c1573d8]903
904<Para>The commands are documented in a common format:
[e189be2]905</Para>
[c1573d8]906
[a7e3295]907<!-- FIXME: make this a RefGroup (or whatever that's called) of RefEntry-s? -->
[c1573d8]908<itemizedlist>
[e189be2]909<listitem><para>Command Name</para></listitem>
910<listitem><para>Syntax</para></listitem>
911<listitem><para>Example</para></listitem>
[ea52d7e]912<listitem><para>Validity</para></listitem>
[1a50c3c]913<!-- FIXME
914anywhere, in a block, at start of a block, after a begin (for *end)
915-->
[e189be2]916<listitem><para>Description</para></listitem>
917<listitem><para>Caveats</para></listitem>
918<listitem><para>See Also</para></listitem>
[1a50c3c]919<!-- FIXME
920"Usefulness" - or status maybe?
921deprecated, esoteric (*set), useful, vital
922-->
[c1573d8]923</itemizedlist>
924
[dcbcae0]925<Sect3><Title>ALIAS</Title>
926
927<VariableList>
928
929<VarListEntry><Term>Syntax</Term>
930
931<listitem><Para>*alias station &lt;alias&gt; [&lt;target&gt;]</Para></listitem>
932
933</VarListEntry>
934
935<VarListEntry><Term>Example</Term>
936
937<listitem>
938<Para>
939<programlisting>
940*begin parsons_nose
941*alias station - ..
9421 2 12.21 073 -12
9432 -  4.33 011 +02
9442 -  1.64 180 +03
9452 3  6.77 098 -04
946*end parsons_nose</programlisting>
947</Para>
948</listitem>
949
950</VarListEntry>
951
952<VarListEntry><Term>Description</Term>
953
954<listitem><Para>*alias allows you to map a station name which appears in
955the survey data to a different name internally.  At present, you can only
956create an alias of '-' to '..', which is intended to support the pocket topo
957style notation of '-' being a splay to an anonymous point on the cave wall.
958And you can unalias '-' with '*alias station -'.
959</Para>
960
961<Para>
962Aliases are scoped by *begin/*end blocks - when a *end is reached, the aliases
963in force at the corresponding begin are restored.
964</Para>
965
966<Para>
967*alias was added in Survex 1.2.7.
968</Para></listitem>
969
970</VarListEntry>
971
972<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
973
974<VarListEntry><Term>See Also</Term>
975
976<listitem><Para>*begin, *end</Para></listitem>
977
978</VarListEntry>
979
980</VariableList>
981
982</Sect3>
983
[e189be2]984<Sect3><Title>BEGIN</Title>
[c1573d8]985
986<VariableList>
987
[e189be2]988<VarListEntry><Term>Syntax</Term>
[c1573d8]989
[ea52d7e]990<listitem><Para>*begin [&lt;survey&gt;]</Para></listitem>
[c1573d8]991
[e189be2]992</VarListEntry>
993
994<VarListEntry><Term>Example</Term>
[c1573d8]995
996<listitem>
[0706076]997<Para>
[c1573d8]998<programlisting>
999*begin littlebit
10001 2 10.23 106 -02
10012 3  1.56 092 +10
1002*end littlebit</programlisting>
1003
1004<programlisting>
1005; length of leg across shaft estimated
1006*begin
1007*sd tape 2 metres
10089 10 6.   031 -07
1009*end</programlisting>
[0706076]1010</Para>
[e189be2]1011</listitem>
1012
1013</VarListEntry>
1014
1015<VarListEntry><Term>Description</Term>
[c1573d8]1016
[ea52d7e]1017<listitem><Para>*begin stores the current values of the current settings
1018such as instrument calibration, data format, and so on.
1019These stored values are restored after the corresponding *end.
1020If a survey name is given, this is used inside the *begin/*end block,
1021and the corresponding *end should have the same survey name.
1022*begin/*end blocks may be nested to indefinite depth.
1023</Para></listitem>
[e189be2]1024
1025</VarListEntry>
[c1573d8]1026
[e189be2]1027<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
[c1573d8]1028
[e189be2]1029<VarListEntry><Term>See Also</Term>
[c1573d8]1030
[e189be2]1031<listitem><Para>*end, *prefix</Para></listitem>
1032
1033</VarListEntry>
[c1573d8]1034
1035</VariableList>
1036
[e189be2]1037</Sect3>
1038
[0706076]1039<Sect3><Title>CALIBRATE</Title>
[c1573d8]1040
[0706076]1041<VariableList>
1042
1043<VarListEntry><Term>Syntax</Term>
1044
1045<listitem>
[a7e3295]1046<Para>*calibrate &lt;quantity list&gt; &lt;zero error&gt; [&lt;scale&gt;]
[0706076]1047</Para>
[88569fe]1048<Para>*calibrate &lt;quantity list&gt; &lt;zero error&gt; &lt;units&gt; [&lt;scale&gt;]
1049</Para>
[0706076]1050<Para>*calibrate default
1051</Para>
1052</listitem>
1053
1054</VarListEntry>
1055
1056<VarListEntry><Term>Example</Term>
1057
1058<listitem>
1059<Para>
1060<programlisting>
1061*calibrate tape +0.3
1062</programlisting>
1063</Para>
1064</listitem>
1065
1066</VarListEntry>
1067
1068<VarListEntry><Term>Description</Term>
1069
1070<listitem>
[9e507547]1071
[be1a437]1072<Para>
[0706076]1073*calibrate is used to specify instrument calibrations.
[e189be2]1074</Para>
[c1573d8]1075
[be1a437]1076<Para>
1077&lt;quantity&gt; is one of TAPE|COMPASS|CLINO|COUNTER|DEPTH|DECLINATION|X|Y|Z
[e189be2]1078</Para>
[c1573d8]1079
[be1a437]1080<Para>
1081Several quantities can be given in &lt;quantity list&gt;
1082</Para>
1083
1084<Para>
[ca7fb22]1085You need to be careful about the sign of the ZeroError. The value of
[3e3bb50]1086ZeroError is what the instrument would read when measuring a
[ca7fb22]1087reading which should be zero.  So for example, if your tape measure
1088has the end missing, and you are using the 30cm mark to take all
1089measurements from, then a zero distance would be measured as 30cm and
1090you would correct this with:
[e189be2]1091</Para>
[c1573d8]1092
[be1a437]1093<programlisting>*CALIBRATE tape +0.3</programlisting>
1094
1095<Para>If you tape was too long, starting at -20cm (it does happen!)
1096then you can correct it with:
[e189be2]1097</Para>
[c1573d8]1098
[be1a437]1099<programlisting>*CALIBRATE tape -0.2</programlisting>
1100
[0706076]1101<Para>Note: ZeroError is irrelevant for Topofil counters and depth
1102gauges since pairs of readings are subtracted.
[be1a437]1103</Para>
1104
[88569fe]1105<Para>
1106In the first form in the synopsis above, the zero error is measured by the
1107instrument itself (e.g. reading off the number where a truncated tape now ends)
1108and any scale factor specified applies to it, like so:
1109</Para>
1110
1111<Para>
1112Value = ( Reading - ZeroError ) * Scale    (Scale defaults to 1.0)
1113</Para>
1114
1115<Para>
1116In the second form above (supported since Survex 1.2.21), the zero error has
1117been measured externally (e.g. measuring how much too long your tape is with
1118a ruler) - the units of the zero error are explicitly specified and any scale
1119factor isn't applied to it:
1120</Para>
1121
1122<Para>
1123Value = ( Reading * Scale ) - ZeroError    (Scale defaults to 1.0)
1124</Para>
1125
1126<Para>
1127If the scale factor is 1.0, then the two forms are equivalent, though they
1128still allow you to diffentiate between how the zero error has been determined.
1129</Para>
1130
[41e98ad]1131<Para>
[58c7b459]1132The magnetic declination is the difference between true north and magnetic
1133north.  This varies both by location and over time.  You can just use
1134*calibrate compass to correct for any zero error and the declination in one,
1135but it's generally preferable to keep the compass zero error and the magnetic
1136declination separate.
1137</Para>
1138
[be1a437]1139<Para>
[8a471e0]1140In earlier Survex versions, you specified the magnetic declination using
1141*calibrate declination.  Now you can specify it using the *declination command
1142- either by giving an explicit value (since Survex 1.2.22), or by specifying a
1143location to use along with the survey date to calculate a value from the IGRF
1144model (since Survex 1.2.21).  You can still use *calibrate declination, but the
1145new command is preferred if you can assume a new enough version of Survex is
1146available.
[58c7b459]1147</Para>
1148
[41e98ad]1149<Para>
[58c7b459]1150Cavern calculates the true bearing as follows:
[be1a437]1151</Para>
1152
1153<Para>
1154(magnetic bearing) = ((reading)-(compass zero err)) * (compass
1155scale factor)
1156</Para>
1157
1158<Para>
1159(true bearing) = ((bearing)-(declination zero err))
1160</Para>
1161
1162<Para>
1163The scale factor for DECLINATION must be 1.0, otherwise an error
[22188f2]1164is given.
[be1a437]1165</Para>
1166
[22188f2]1167<Para>
1168Magnetic declinations are conventionally positive when magnetic north is east of
[58c7b459]1169true north.  With *declination, you specify the declination with the conventional
1170sign, but with *calibrate declination you need to reverse the sign when
1171specifying the declination correction to use - for example, for an area where
1172the magnetic declination is 5 degrees, you should use:
[22188f2]1173</Para>
1174
1175<programlisting>*CALIBRATE DECLINATION -5</programlisting>
1176
[be1a437]1177<Para>
1178The default is all quantities calibrated to scale factor 1.0,
1179zero error 0.0
1180</Para>
1181
[0706076]1182</listitem>
1183
1184</VarListEntry>
1185
1186<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1187
1188<VarListEntry><Term>See Also</Term>
1189
[58c7b459]1190<listitem><Para>*declination, *units</Para></listitem>
[0706076]1191
1192</VarListEntry>
1193
1194</VariableList>
1195
[be1a437]1196</Sect3>
1197
1198<Sect3><Title>CASE</Title>
1199
1200<VariableList>
1201
1202<VarListEntry><Term>Syntax</Term>
1203
[c57e9da]1204<listitem><para>*case preserve|toupper|tolower</para></listitem>
[be1a437]1205
1206</VarListEntry>
1207
1208<VarListEntry><Term>Example</Term>
1209
1210<listitem>
[0706076]1211<Para>
[be1a437]1212<programlisting>
1213*begin bobsbit
1214; Bob insists on using case sensitive station names
[c57e9da]1215*case preserve
[be1a437]12161 2   10.23 106 -02
12172 2a   1.56 092 +10
12182 2A   3.12 034 +02
12192 3    8.64 239 -01
1220*end bobsbit</programlisting>
[0706076]1221</Para>
[be1a437]1222</listitem>
1223
1224</VarListEntry>
1225
1226<VarListEntry><Term>Description</Term>
1227
1228<listitem><Para>*case determines how the case of letters in survey names is
1229handled.  By default all names are forced to lower case (which gives a case
1230insensitive match, but you can tell cavern to force to upper case, or leave
1231the case as is (in which case '2a' and '2A' will be regarded as different).
1232</Para></listitem>
1233
1234</VarListEntry>
1235
1236<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1237
[e6fdc7c]1238<VarListEntry><Term>See Also</Term>
[be1a437]1239
[e6fdc7c]1240<listitem><Para>*truncate</Para></listitem>
[be1a437]1241
1242</VarListEntry>
1243
1244</VariableList>
1245
1246<!-- FIXME - work this text in here or elsewhere
[c1573d8]1247
1248What I mean (though failed to express very well) is that a dataset without
1249this information isn't the same dataset (in general anyway).  For example:
1250
1251A1 a2 10.32 140 -05
1252a2 a3  4.91 041 -01
1253a1 a3  7.01 206  02
1254
1255is either a traverse of 3 legs or a (probably badly misclosed) loop.  If
1256these names are on the original survey notes, the surveyors ought to say
1257whether "A1" is the same as "a1" (although the usual case for using this
1258feature is probably for importing data from elsewhere).  Similarly for
1259truncation.  Whether a clino of +/-90 degrees (or +/-100 grad, etc) is
1260interpreted as a plumb is something that should have been noted in the cave
1261(unless it's implicit because it's standard practice for a survey project).
1262
1263It's a similar issue to calibration data in many ways.  You can argue it's
1264not part of "the survey", but without it the survey won't be the same shape,
1265and it's not useful to process the same survey with different settings for
1266compass calibration or name case sensitivity.
1267
1268>Clearly that is unhelpfully strict, but it is
1269>important to be semantically clear about what is 'data' and what is 'commands
1270>or meta-data' which describe what to do with/how to interpret that data.
1271
1272Think of the lines starting with a "*" as "command or meta-data".
1273
[3d5fb53]1274>The most-correct solution to this is (I believe) Martin Heller's idea about
[c1573d8]1275>including 'rules' in the datastream, but that's too big a subject for right
1276>now.
1277>
1278>The reason '-C' was made into a command-line option, was that it made very
1279>little sense to change it part way though a dataset. What exactly happens if
[375f7f6]1280>you suddenly tell cavern to become case-sensitive halfway through a run?
[c1573d8]1281
1282-C has always had 3 settings - "leave case alone", "force to lower", and
1283"force to upper".  It doesn't really mean "case sensitivity" but rather
1284something like "case processing".  So you can usefully change it during a
1285run.  So if my dataset treats "NoTableChamber" (so named because it was
1286lacking in furniture) as different from "NotableChamber" (which was notable
1287for other reasons) I can process it with a dataset from someone else which
1288needs to be treated as case insensitive like so:
1289
1290*begin my_cave
1291*include my_dataset
1292*end my_cave
1293
1294*equate my_cave.NoTableChamber.14 your_cave.linkpassage.13
1295
1296*begin your_cave
1297*case tolower
1298*include your_dataset
1299*end your_cave
1300
1301You may be thinking of -U<n>, which used to mean "only compare the first n
1302characters of station names", but that doesn't allow arbitrary datasets to
1303be processed together.
1304
1305So we changed it to mean "truncate station names to n characters", and
1306allowed it to be changed at any point, rather than being set once for the
1307whole run.
1308
1309-->
1310
[e189be2]1311</Sect3>
[f63df3e]1312
1313<Sect3><Title>COPYRIGHT</Title>
1314
1315<VariableList>
1316
1317<VarListEntry><Term>Syntax</Term>
1318
1319<listitem><Para>*copyright &lt;date&gt; &lt;text&gt;</Para></listitem>
1320
1321</VarListEntry>
1322
1323<VarListEntry><Term>Example</Term>
1324
1325<listitem>
[0706076]1326<Para>
[f63df3e]1327<programlisting>
1328*begin littlebit
1329*copyright 1983 CUCC
13301 2 10.23 106 -02
13312 3  1.56 092 +10
1332*end littlebit</programlisting>
[0706076]1333</Para>
[f63df3e]1334</listitem>
1335
1336</VarListEntry>
1337
[ea52d7e]1338<VarListEntry><Term>Validity</Term>
1339
1340<listitem><Para>valid at the start of a *begin/*end block.
1341</Para></listitem>
1342
1343</VarListEntry>
1344
[f63df3e]1345<VarListEntry><Term>Description</Term>
1346
[58c7b459]1347<listitem><Para>*copyright allows the copyright information to be
[f63df3e]1348stored in a way that can be automatically collated.
1349</Para></listitem>
1350
1351</VarListEntry>
1352
1353<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1354
1355<VarListEntry><Term>See Also</Term>
1356
[0706076]1357<listitem><Para>*begin</Para></listitem>
[f63df3e]1358
1359</VarListEntry>
1360
1361</VariableList>
1362
1363</Sect3>
[e189be2]1364
[abd0310]1365<Sect3><Title>CS</Title>
1366
1367<VariableList>
1368
1369<VarListEntry><Term>Syntax</Term>
1370
[ad5bd05]1371<listitem><Para>*cs [out] &lt;coordinate system&gt;</Para></listitem>
[abd0310]1372
1373</VarListEntry>
1374
1375<VarListEntry><Term>Example</Term>
1376
1377<listitem>
1378<Para>
1379<programlisting>
1380*cs UTM60S
1381*fix beehive 313800 5427953 20</programlisting>
1382</Para>
[ad5bd05]1383
1384<Para>
1385<programlisting>
1386; Output in the coordinate system used in the Totes Gebirge in Austria
[935824f]1387*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>
[ad5bd05]1388</Para>
[abd0310]1389</listitem>
1390
1391</VarListEntry>
1392
1393<VarListEntry><Term>Description</Term>
1394
[ad5bd05]1395<listitem><Para>*cs allows the coordinate systems used for fixed points and for
1396processed survey data to be specified.
[abd0310]1397</Para>
1398
1399<Para>
[b102633]1400*cs was added in Survex 1.2.14, but handling of fixed points specified with
1401latitude and longitude didn't work until 1.2.21.  And *fix with standard
1402deviations specified also didn't work until 1.2.21.
1403</Para>
1404
1405<Para>
1406The currently supported coordinate systems are:
[ad5bd05]1407</Para>
1408
[16734b2]1409<Para>CUSTOM followed by a PROJ4 string (like in the example above).</Para>
1410
[ddd24f28]1411<Para>EPSG: followed by a positive integer code.  EPSG codes cover most
1412coordinate systems in use, and PROJ supports many of these.  The website
1413<ulink url="http://epsg.io/">http://epsg.io/</ulink> is a useful resource for
1414finding the EPSG code you want.  Supported since Survex 1.2.15.</Para>
1415
1416<Para>ESRI: followed by a positive integer code.  ESRI codes are used by
1417ArcGIS to specify coordinate systems (in a similar way to EPSG codes), and PROJ
1418supports many of them.  Supported since Survex 1.2.15.</Para>
1419
1420<Para>EUR79Z30 for UTM zone 30, EUR79 datum.  Supported since Survex 1.2.15.
1421</Para>
1422
[5598e2c]1423<Para>IJTSK for the modified version of the Czechoslovak S-JTSK system where
1424the axes point East and North.  Supported since Survex 1.2.15.</Para>
1425
1426<Para>IJTSK03 for a variant of IJTSK.  Supported since Survex 1.2.15.</Para>
1427
[10af28e]1428<Para>JTSK for the Czechoslovak S-JTSK system.  The axes on this point West
1429and South, so it's not support as an output coordinate system.
1430Supported since Survex 1.2.16.</Para>
1431
1432<Para>JTSK03 for a variant of JTSK.  Supported since Survex 1.2.16.</Para>
1433
[16734b2]1434<Para>LONG-LAT for longitude/latitude.  The WGS84 datum is assumed.  Supported
1435since Survex 1.2.15.</Para>
1436
[a4cd4eea]1437<Para>OSGB: followed by a two letter code for the UK Ordnance Survey National
1438Grid.  The first letter should be 'H', 'N', 'O', 'S' or 'T'; the second any
1439letter except 'I'.  Supported since Survex 1.2.15.</Para>
1440
[2076d59]1441<Para>S-MERC for the "Web Mercator" spherical mercator projection, used by
1442online map sites like OpenStreetMap, Google maps, Bing maps, etc.  Supported
1443since Survex 1.2.15.
1444</Para>
1445
[16734b2]1446<Para>UTM followed by a zone number (1-60), optionally followed by "N" or "S"
1447(default is North).  The WGS84 datum is assumed.</Para>
1448
[ad5bd05]1449<Para>
1450By default, Survex works in an unspecified coordinate system (and this was the
1451only option before *cs was added).  However, it's useful for coordinate system
1452which the processed survey data is in to be specified if you want to use the
1453processed data in ways which required knowing the coordinate system (such as
1454exporting a list of entrances for use in a GPS).  You can now do this by using
1455"*cs out".
1456</Para>
1457
1458<Para>
1459It is also useful to be able to take coordinates for fixed points in whatever
1460coordinate system you receive them in and put them directly into Survex, rather
1461than having to convert with an external tool.  For example, you may have your
1462GPS set to show coordinates in UTM with the WGS84 datum, even though you want
1463the processed data to be in some local coordinate system.  And someone else
1464may provide GPS coordinates in yet another coordinate system.  You just need
1465to set the appropriate coordinate system with "*cs" before each group of "*fix"
1466commands in a particular coordinate system.
1467</Para>
1468
1469<Para>
1470If you're going to make use of "*cs", then the coordinate system must be
1471specified for everything, so a coordinate system must be in effect for all
1472"*fix" commands, and you must set the output coordinate system before any
1473points are fixed.
1474</Para>
1475
1476<Para>
1477Also, if "*cs" is in use, then you can't omit the coordinates in a "*fix"
1478command, and a fixed point won't be invented if none exists.
1479</Para>
1480
1481<Para>
1482If you use "*cs out" more than once, the second and subsequent commands are
1483silently ignored - this makes it possible to combine two datasets with
1484different "*cs out" settings without having to modify either of them.
1485</Para>
1486
1487<Para>
1488Something to be aware of with "*cs" is that altitudes are currently assumed to
1489be "height above the ellipsoid", whereas GPS units typically give you "height
1490above sea level", or more accurately "height above a particular geoid".  This
1491is something we're looking at how best to address, but you shouldn't need to
1492worry about it if your fixed points are in the same coordinate system as your
1493output, or if they all use the same ellipsoid.  For a more detailed discussion
1494of this, please see: http://expo.survex.com/handbook/survey/coord.htm
1495</Para>
1496</listitem>
[abd0310]1497
1498</VarListEntry>
1499
1500<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1501
1502<VarListEntry><Term>See Also</Term>
1503
1504<listitem><Para>*fix</Para></listitem>
1505
1506</VarListEntry>
1507
1508</VariableList>
1509
1510</Sect3>
[ea52d7e]1511<Sect3><Title>DATA</Title>
1512
1513<VariableList>
1514
1515<VarListEntry><Term>Syntax</Term>
[40647f5]1516
[c746b4d]1517<listitem><Para>*data &lt;style&gt; &lt;ordering&gt;</Para></listitem>
[6114207]1518<!-- BACKCOMPASS BACKCLINO -->
[ea52d7e]1519</VarListEntry>
1520
1521<VarListEntry><Term>Example</Term>
1522
1523<listitem>
[40647f5]1524<Para>
[ea52d7e]1525<programlisting>
1526*data normal from to compass tape clino</programlisting>
[e189be2]1527</Para>
[c746b4d]1528
1529<Para>
1530<programlisting>
1531*data normal station ignoreall newline compass tape clino</programlisting>
1532</Para>
[ea52d7e]1533</listitem>
1534
1535</VarListEntry>
[e189be2]1536
[ea52d7e]1537<VarListEntry><Term>Description</Term>
[e189be2]1538
[ea52d7e]1539<listitem><Para>
[b458119]1540&lt;style&gt; = DEFAULT|NORMAL|DIVING|CARTESIAN|TOPOFIL|CYLPOLAR|NOSURVEY|PASSAGE
[e189be2]1541</Para>
1542
[40647f5]1543<Para>
[6114207]1544&lt;ordering&gt; = ordered list of instruments - which are valid depends on the
1545style.
1546</Para>
1547
[107b8bd]1548<Para>
1549In Survex 1.0.2 and later, TOPOFIL is simply a synonym for NORMAL, left in to
1550allow older data to be processed without modification.  Use the name NORMAL
1551by preference.
1552</Para>
1553
[6114207]1554<Para>
1555There are two variants of each style - interleaved and non-interleaved.
1556Non-interleaved is "one line per leg", interleaved has a line for the data
1557shared between two legs (e.g. STATION=FROM/TO, DEPTH=FROMDEPTH/TODEPTH,
1558COUNT=FROMCOUNT/TOCOUNT).  Note that not all interleavable readings have to
1559be interleaved - for example:
1560
1561<programlisting>
1562*data diving station newline fromdepth compass tape todepth</programlisting>
1563
1564In addition, interleaved data can have a DIRECTION reading, which can be "F"
1565for a foresight or "B" for a backsight.
[e189be2]1566</Para>
1567
[107b8bd]1568<Para>
1569In NORMAL, DIVING, and CYLPOLAR data styles, TAPE may be replaced by
1570FROMCOUNT/TOCOUNT (or COUNT in interleaved data) to allow processing of surveys
1571performed with a Topofil instead of a tape.
1572</Para>
1573
[c746b4d]1574<VariableList>
[e189be2]1575
[c746b4d]1576<VarListEntry><Term>DEFAULT</Term>
[6114207]1577<listitem><Para>Select the default data style and ordering (NORMAL style, ordering: from to tape compass clino).</Para></listitem>
[c746b4d]1578</VarListEntry>
[e189be2]1579
[c746b4d]1580<VarListEntry><Term>NORMAL</Term>
[6114207]1581<listitem><Para>The usual tape/compass/clino centreline survey.
[b14f44f]1582For non-interleaved data the allowed readings are:
1583FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO;
1584for interleaved data the allowed readings are:
1585STATION DIRECTION TAPE COMPASS CLINO BACKCOMPASS BACKCLINO.
1586The CLINO/BACKCLINO reading is not required - if it's not given, the vertical
1587standard deviation is taken to be proportional to the tape measurement.
1588Alternatively, individual clino readings can be given as OMIT (default "-")
1589which allows for data where only some clino readings are missing.
[6114207]1590E.g.:
1591
1592<programlisting>
1593*data normal from to compass clino tape
15941 2 172 -03 12.61</programlisting>
1595
1596<programlisting>
1597*data normal station newline direction tape compass clino
15981
1599 F 12.61 172 -03
16002</programlisting>
1601
[13ba257]1602<programlisting>
[107b8bd]1603*data normal from to compass clino fromcount tocount
[13ba257]16041 2 172 -03 11532 11873</programlisting>
1605
1606<programlisting>
[107b8bd]1607*data normal station count newline direction compass clino
[13ba257]16081 11532
1609 F 172 -03
16102 11873</programlisting>
1611 
1612</Para></listitem>
1613</VarListEntry>
1614
[c746b4d]1615<VarListEntry><Term>DIVING</Term>
1616<listitem><Para>
[eb48e2b]1617An underwater survey where the vertical information is from a diver's depth
[1ff6864]1618gauge.  This style can also be also used for an above-water survey where the
1619altitude is measured with an altimeter.  DEPTH is defined as the altitude (Z)
1620so increases upwards by default.  So for a diver's depth gauge, you'll need to
[b14f44f]1621use *CALIBRATE with a negative scale factor (e.g. *calibrate depth 0 -1).
1622</Para>
1623
1624<Para>For non-interleaved data the allowed readings are:
[aacc3e6]1625FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO FROMDEPTH TODEPTH DEPTHCHANGE (the vertical
[b14f44f]1626can be given as readings at each station, (FROMDEPTH/TODEPTH) or as a change
1627along the leg (DEPTHCHANGE)).</Para>
1628
[aacc3e6]1629<Para>Survex 1.2.20 and later allow an optional CLINO and/or BACKCLINO reading
1630in DIVING style.  At present these extra readings are checked for syntactic
1631validity, but are otherwise ignored.  The intention is that a future version
1632will check them against the other readings to flag up likely blunders, and
1633average with the slope data from the depth gauge and tape reading.</Para>
1634
[b14f44f]1635<Para>For interleaved data the allowed readings are:
1636STATION DIRECTION TAPE COMPASS BACKCOMPASS DEPTH DEPTHCHANGE.
1637(the vertical change can be given as a reading at the station (DEPTH) or as a change along the leg (DEPTHCHANGE)).
[6114207]1638
1639<programlisting>
1640*data diving from to tape compass fromdepth todepth
16411 2 14.7 250 -20.7 -22.4</programlisting>
1642
1643<programlisting>
1644*data diving station depth newline tape compass
16451 -20.7
1646 14.7 250
16472 -22.4</programlisting>
1648
1649<programlisting>
1650*data diving from to tape compass depthchange
16511 2 14.7 250 -1.7</programlisting>
[b14f44f]1652</Para>
1653</listitem>
[c746b4d]1654</VarListEntry>
1655
1656<VarListEntry><Term>CARTESIAN</Term>
1657<listitem><Para>
[6114207]1658Cartesian data style allows you to specify the (x,y,z) changes between
1659stations.  It's useful for digitising surveys where the original survey
1660data has been lost and all that's available is a drawn up version.
1661
1662<programlisting>
1663*data cartesian from to northing easting altitude
16641 2 16.1 20.4 8.7</programlisting>
1665
1666<programlisting>
1667*data cartesian station newline northing easting altitude
16681
1669 16.1 20.4 8.7
16702</programlisting>
1671
[e74904e]1672<!--FIXME: dx dy dz-->
[e189be2]1673</Para>
1674
[e74904e]1675<Note><Para>
1676Cartesian data are relative to <emphasis>true</emphasis> North not
1677<emphasis>magnetic</emphasis> North (i.e. they are unaffected by
1678<command>*calibrate declination</command>).
1679</Para></Note>
[ce92903]1680</listitem>
[c746b4d]1681</VarListEntry>
[e74904e]1682
[13ba257]1683<VarListEntry><Term>CYLPOLAR</Term>
[c746b4d]1684<listitem><Para>
[b14f44f]1685A CYLPOLAR style survey is very similar to a diving survey, except that the tape
[13ba257]1686is always measured horizontally rather than along the slope of the leg.
[6114207]1687
1688<programlisting>
[13ba257]1689*data cypolar from to tape compass fromdepth todepth
16901 2 9.45 311 -13.3 -19.0</programlisting>
[6114207]1691
1692<programlisting>
[13ba257]1693*data cylpolar station depth newline tape compass
16941 -13.3
1695 9.45 311
16962 -19.0</programlisting>
[e189be2]1697
[13ba257]1698<programlisting>
1699*data cylpolar from to tape compass depthchange
17001 2 9.45 311 -5.7</programlisting>
[c746b4d]1701</Para></listitem>
1702</VarListEntry>
[9e507547]1703
[c746b4d]1704<VarListEntry><Term>NOSURVEY</Term>
1705<listitem><Para>
[6114207]1706A NOSURVEY survey doesn't have any measurements - it merely indicates that
[13ba257]1707there is line of sight between the pairs of stations.
1708
1709<programlisting>
1710*data nosurvey from to
17111 7
17125 7
17139 11</programlisting>
1714
1715<programlisting>
1716*data nosurvey station
17171
17187
17195
1720
1721*data nosurvey station
17229
172311</programlisting>
[c746b4d]1724</Para></listitem>
1725</VarListEntry>
[e189be2]1726
[b458119]1727<VarListEntry><Term>PASSAGE</Term>
1728<listitem><Para>
1729This survey style defines a 3D "tube" modelling a passage in the cave.
1730The tube uses the survey stations listed in the order listed.  It's
1731permitted to use survey stations which aren't directly linked by
1732the centre-line survey.  This can be useful - sometimes the centreline
1733will step sideways or up/down to allow a better sight for the next
1734leg and you can ignore the extra station.  You can also define tubes
1735along unsurveyed passages, akin to "nosurvey" legs in the centreline
1736data.</Para>
1737
1738<Para>This means that you need to split off side passages into seperate
1739tubes, and hence separate sections of passage data, starting with
1740a new *data command.</Para>
1741
[40647f5]1742<Para>
[b458119]1743Simple example of how to use this data style (note the use of ignoreall
1744to allow a free-form text description to be given):
1745
1746<programlisting>
1747*data passage station left right up down ignoreall
17481  0.1 2.3 8.0 1.4  Sticking out point on left wall
17492  0.0 1.9 9.0 0.5  Point on left wall
17503  1.0 0.7 9.0 0.8  Highest point of boulder
1751</programlisting>
[e189be2]1752</Para>
[ce92903]1753</listitem>
[b458119]1754</VarListEntry>
[c746b4d]1755</VariableList>
[e189be2]1756
[40647f5]1757<Para>
[c746b4d]1758IGNORE skips a field (it may be used any number of times),
[13ba257]1759and IGNOREALL may be used last to ignore the rest of the data line.
[e189be2]1760</Para>
1761
[c746b4d]1762<Para>
1763LENGTH is a synonym for TAPE; BEARING for COMPASS; GRADIENT for CLINO; COUNT for COUNTER.<!--FIXME : others?-->
1764</Para>
1765
[e74904e]1766<Para>
1767The units of each quantity may be set with the UNITS command.
1768</Para>
1769
1770<!-- FIXME: plumbed diving legs -->
1771
1772<!--FIXME:
1773<Para>
[f3ed07f]1774Uses for CYLPOLAR:
1775Perhaps a Grade 3 survey, or when surveying with a level and stick (?)
1776[note - UBSS use it for the old County Clare data]
[e74904e]1777</Para>
1778-->
1779
[ea52d7e]1780</listitem>
1781
1782</VarListEntry>
1783
1784</VariableList>
1785
[e189be2]1786</Sect3>
1787
[e74904e]1788<Sect3><Title>DATE</Title>
1789<VariableList>
1790
1791<VarListEntry><Term>Syntax</Term>
1792
1793<listitem><Para>*date &lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]][-&lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]]]</Para></listitem>
1794
1795</VarListEntry>
1796
1797<VarListEntry><Term>Example</Term>
1798
1799<listitem>
1800<Para>
1801<programlisting>
1802*date 2001</programlisting>
1803
1804<programlisting>
1805*date 2000.10</programlisting>
1806
1807<programlisting>
1808*date 1987.07.27</programlisting>
1809
1810<programlisting>
1811*date 1985.08.12-1985.08.13</programlisting>
1812</Para>
1813</listitem>
1814
1815</VarListEntry>
1816
1817<VarListEntry><Term>Validity</Term>
1818
1819<listitem><Para>valid at the start of a *begin/*end block.
1820</Para></listitem>
1821
1822</VarListEntry>
1823
1824<VarListEntry><Term>Description</Term>
1825
1826<listitem><Para>
1827*date specifies the date that the survey was done.  A range of dates
1828can be specified (useful for overnight or multi-day surveying trips).
1829</Para></listitem>
1830
1831</VarListEntry>
1832
1833<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1834
1835<VarListEntry><Term>See Also</Term>
1836
1837<listitem><Para>*begin, *instrument, *team</Para></listitem>
1838
1839</VarListEntry>
1840
1841</VariableList>
1842
1843</Sect3>
1844
[58c7b459]1845<Sect3><Title>DECLINATION</Title>
1846
1847<VariableList>
1848
1849<VarListEntry><Term>Syntax</Term>
1850
1851<listitem>
1852<Para>*declination &lt;declination&gt; &lt;units&gt;</Para>
1853<Para>*declination &lt;auto&gt; &lt;x&gt; &lt;y&gt; &lt;z&gt;</Para>
1854</listitem>
1855
1856</VarListEntry>
1857
1858<VarListEntry><Term>Description</Term>
1859
[41e98ad]1860<listitem>
1861
[58c7b459]1862<Para>
1863This command allows the magnetic declination to be specified.  This is added to
1864compass readings to give bearings relative to true North.
1865</Para>
1866
1867<Para>
1868The first form above specifies an explicit value for the magnetic declination,
1869while the second tells cavern to use the IGRF (International Geomagnetic
1870Reference Field) model to calculate a value for the declination at the
1871specified coordinates on the date of each survey.  The coordinates are
1872interpreted as being in the current coordinate system (as set with *cs).
1873</Para>
1874
1875<Para>
[d3df772]1876This command was added in Survex 1.2.21 - in earlier versions you can set a
[58c7b459]1877fixed declination value using <programlisting>*calibrate declination
1878&lt;value&gt;</programlisting> (but note that &lt;value&gt; needs to have the
1879opposite sign to that conventionally used for the declination, while this
1880command take the declination with the conventional sign.
1881</Para>
1882
[41e98ad]1883</listitem>
1884
[58c7b459]1885</VarListEntry>
1886
1887<VarListEntry><Term>See Also</Term>
1888
1889<listitem><Para>*calibrate</Para></listitem>
1890
1891</VarListEntry>
1892
1893</VariableList>
1894
1895</Sect3>
1896
[ea52d7e]1897<Sect3><Title>DEFAULT</Title>
[e189be2]1898
[ea52d7e]1899<VariableList>
1900
1901<VarListEntry><Term>Syntax</Term>
1902
1903<listitem><Para>*default &lt;settings list&gt;|all</Para></listitem>
1904
1905</VarListEntry>
1906
1907<VarListEntry><Term>Description</Term>
1908
1909<listitem><Para>
1910The valid settings are CALIBRATE, DATA, and UNITS.
[e189be2]1911</Para>
1912
[40647f5]1913<Para>
[ea52d7e]1914*default restores defaults for given settings.  This command is deprecated -
1915you should instead use: *calibrate default, *data default, *units default.
1916</Para></listitem>
1917
1918</VarListEntry>
1919
1920<VarListEntry><Term>See Also</Term>
1921
1922<listitem><Para>*calibrate, *data, *units</Para></listitem>
1923
1924</VarListEntry>
1925
1926</VariableList>
1927
1928</Sect3>
1929
1930<Sect3><Title>END</Title>
1931
1932<VariableList>
1933
1934<VarListEntry><Term>Syntax</Term>
1935
1936<listitem><Para>*end [&lt;survey&gt;]</Para></listitem>
1937
1938</VarListEntry>
1939
1940<VarListEntry><Term>Validity</Term>
1941
1942<listitem><Para>valid for closing a block started by *begin in the same file.
1943</Para></listitem>
1944
1945</VarListEntry>
1946
1947<VarListEntry><Term>Description</Term>
1948
1949<listitem><Para>
1950Closes a block started by *begin.
1951</Para></listitem>
1952
1953</VarListEntry>
1954
1955<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1956
1957<VarListEntry><Term>See Also</Term>
1958
1959<listitem><Para>*begin</Para></listitem>
1960
1961</VarListEntry>
1962
1963</VariableList>
[e189be2]1964
1965</Sect3>
1966
[ea52d7e]1967<Sect3><Title>ENTRANCE</Title>
1968
1969<VariableList>
1970
1971<VarListEntry><Term>Syntax</Term>
1972
1973<listitem><Para>*entrance &lt;station&gt;</Para></listitem>
1974
1975</VarListEntry>
1976
1977<VarListEntry><Term>Example</Term>
[e189be2]1978
[ea52d7e]1979<listitem>
[40647f5]1980<Para>
[ea52d7e]1981<programlisting>
1982*entrance P163</programlisting>
1983</Para>
1984</listitem>
1985
1986</VarListEntry>
1987
1988<VarListEntry><Term>Description</Term>
1989
1990<listitem><Para>
1991*entrance sets the <emphasis>entrance</emphasis> flag for a station.
1992This information is used by aven to allow entrances to be highlighted.
[e74904e]1993</Para>
1994
1995<!-- FIXME:
1996(could be inferred from surface/ug join, but better to specify because
1997of caves with no surf svy (or no underground survey)
1998and also situations in which multiple surveys leave through an entrance)
1999-->
2000</listitem>
[ea52d7e]2001
2002</VarListEntry>
2003
2004<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2005
2006<!-- <VarListEntry><Term>See Also</Term>
2007
2008<listitem><Para></Para></listitem>
2009
2010</VarListEntry>
2011-->
2012
2013</VariableList>
2014
[e189be2]2015</Sect3>
2016
[ea52d7e]2017<Sect3><Title>EQUATE</Title>
2018
2019<VariableList>
2020
2021<VarListEntry><Term>Syntax</Term>
2022
2023<listitem><Para>*equate &lt;station&gt; &lt;station&gt;...</Para></listitem>
[e189be2]2024
[ea52d7e]2025</VarListEntry>
2026
2027<VarListEntry><Term>Example</Term>
2028
2029<listitem>
[40647f5]2030<Para>
[ea52d7e]2031<programlisting>
2032*equate chosspot.1 triassic.27</programlisting>
[e189be2]2033</Para>
[ea52d7e]2034</listitem>
2035
2036</VarListEntry>
[e189be2]2037
[ea52d7e]2038<VarListEntry><Term>Description</Term>
2039
2040<listitem><Para>
2041*equate specifies that the station names in the list refer to the
2042same physical survey station. An error is given if there is only one station
2043listed.
2044</Para>
2045
2046<!-- FIXME:
[40647f5]2047<Para>
[ea52d7e]2048I think this is preferable to using:
[e189be2]2049</Para>
[6aef4f1]2050
2051<programlisting> a b 0.00   0   0</programlisting>
2052
[e189be2]2053<Para>
[6aef4f1]2054as EQUATE does not add in an extra position error. It is also clearer than
2055substituting in the original name wherever passages are linked. If you
2056disagree, you can always use one of the other methods!
[e189be2]2057</Para>
[ea52d7e]2058-->
2059</listitem>
2060
2061</VarListEntry>
2062
2063<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2064
[eb48e2b]2065<VarListEntry><Term>See Also</Term>
[ea52d7e]2066
[eb48e2b]2067<listitem><Para>*infer equates</Para></listitem>
[ea52d7e]2068
2069</VarListEntry>
2070
2071</VariableList>
[e189be2]2072
2073</Sect3>
[6aef4f1]2074
[6048971]2075<Sect3><Title>EXPORT</Title>
[9e507547]2076
[6048971]2077<VariableList>
2078
2079<VarListEntry><Term>Syntax</Term>
2080
2081<listitem><Para>*export &lt;station&gt;...</Para></listitem>
2082
2083</VarListEntry>
2084
2085<VarListEntry><Term>Example</Term>
2086
[e74904e]2087<!-- FIXME better example -->
[6048971]2088<listitem>
[9e507547]2089<Para>
[6048971]2090<programlisting>
2091*export 1 6 17</programlisting>
[9e507547]2092</Para>
[6048971]2093</listitem>
[9e507547]2094
[6048971]2095</VarListEntry>
2096
2097<VarListEntry><Term>Validity</Term>
2098
2099<listitem><Para>valid at the start of a *begin/*end block.
2100</Para></listitem>
2101
2102</VarListEntry>
2103
2104<VarListEntry><Term>Description</Term>
2105
2106<listitem><Para>
2107*export marks the stations named as referable to from the enclosing
2108survey.  To be able to refer to a station from a survey several levels
[4f0b498]2109above, it must be exported from each enclosing survey.
[6048971]2110</Para>
2111
2112<!-- FIXME:
[9e507547]2113<Para>
[6048971]2114I think this is preferable to using:
[9e507547]2115</Para>
2116
[6048971]2117<programlisting> a b 0.00   0   0</programlisting>
2118
2119<Para>
2120as EQUATE does not add in an extra position error. It is also clearer than
2121substituting in the original name wherever passages are linked. If you
2122disagree, you can always use one of the other methods!
2123</Para>
2124-->
2125</listitem>
2126
2127</VarListEntry>
2128
2129<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2130
2131<VarListEntry><Term>See Also</Term>
2132
[eb48e2b]2133<listitem><Para>*begin, *infer exports</Para></listitem>
[6048971]2134
2135</VarListEntry>
2136
2137</VariableList>
2138
[9e507547]2139</Sect3>
2140
[6048971]2141<Sect3><Title>FIX</Title>
2142
2143<VariableList>
2144
2145<VarListEntry><Term>Syntax</Term>
2146
2147<listitem><Para>*fix &lt;station&gt; [reference]
[dab6a62]2148 [ &lt;x&gt; &lt;y&gt; &lt;z&gt;
2149   [ &lt;x std err&gt; &lt;y std err&gt; &lt;z std err&gt;
[6048971]2150     [ &lt;cov(x,y)&gt; &lt;cov(y,z)&gt; &lt;cov(z,x)&gt; ] ] ]
2151</Para></listitem>
[e189be2]2152
[6048971]2153</VarListEntry>
[e189be2]2154
[6048971]2155<VarListEntry><Term>Example</Term>
[e189be2]2156
[6048971]2157<listitem>
[40647f5]2158<Para>
[6048971]2159<programlisting>
2160*fix entrance.0 32768 86723 1760</programlisting>
2161
2162<programlisting>
2163*fix KT114_96 reference 36670.37 83317.43 1903.97</programlisting>
[e189be2]2164</Para>
[6048971]2165</listitem>
2166
2167</VarListEntry>
2168
2169<VarListEntry><Term>Description</Term>
[e189be2]2170
[6048971]2171<listitem>
[40647f5]2172<Para>
[a7e3295]2173*fix fixes the position of &lt;station&gt; at the given coordinates.
[ad5bd05]2174If you haven't specified the coordinate system with "*cs", you can
2175omit the position and it will default to (0,0,0).  The standard errors default
2176to zero (fix station exactly).  cavern will give an error if you attempt to fix
2177the same survey station twice at different coordinates, or a warning if you fix
2178it twice with matching coordinates.
[e189be2]2179</Para>
2180
[2109b07]2181<Para>
2182You can also specify just one standard error (in which case it is assumed
2183equal in X, Y, and Z) or two (in which case the first is taken as the
2184standard error in X and Y, and the second as the standard error in Z).
2185</Para>
2186
[dab6a62]2187<Para>
2188If you have covariances for the fix, you can also specify these - the
[f9dc4a0]2189order is cov(x,y) cov(y,z) cov(z,x).
2190</Para>
2191
2192<Para>
2193You can fix as many stations as you like - just use a *fix command for each
2194one.  Cavern will check that all stations are connected to
2195at least one fixed point so that co-ordinates can be calculated for all
2196stations.
[dab6a62]2197</Para>
2198
2199<Para>
2200By default cavern will warn about stations which have been FIX-ed but
2201not used otherwise.  This is unhelpful if you want to include a
2202standard file of benchmarks, some of which won't be used.
2203In this sort of situation, specify "REFERENCE" after the station name
2204in the FIX command to suppress this warning for a particular station.
[2109b07]2205</Para>
2206
[e74904e]2207<Note><Para>
[fe16ba3]2208X is Easting, Y is Northing, and Z is altitude.  This convention was chosen
2209since on a map, the horizontal (X) axis is usually East, and the vertical
2210axis (Y) North.  The choice of altitude (rather than depth) for Z is taken
2211from surface maps, and makes for less confusion when dealing with cave
2212systems with more than one entrance.  It also gives a right-handed
2213set of axes.
[e74904e]2214</Para></Note>
[6048971]2215
[ce92903]2216</listitem>
[6048971]2217</VarListEntry>
2218
2219<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2220
2221<!-- <VarListEntry><Term>See Also</Term>
2222
2223<listitem><Para></Para></listitem>
2224
2225</VarListEntry>
2226-->
2227
2228</VariableList>
2229
[e189be2]2230</Sect3>
2231
[6048971]2232<!--
2233<Sect3><Title></Title>
2234
2235<VariableList>
2236
2237<VarListEntry><Term>Syntax</Term>
[9e507547]2238
[6048971]2239<listitem><Para>*</Para></listitem>
2240
2241</VarListEntry>
2242
2243<VarListEntry><Term>Example</Term>
2244
2245<listitem>
2246<Para>
2247<programlisting>
2248*</programlisting>
2249</Para>
2250</listitem>
2251
2252</VarListEntry>
2253
2254<VarListEntry><Term>Description</Term>
2255
2256<listitem><Para>
2257</Para></listitem>
2258
2259</VarListEntry>
2260
2261<VarListEntry><Term>Caveats </Term> </VarListEntry>
2262
2263<VarListEntry><Term>See Also</Term>
2264
2265<listitem><Para></Para></listitem>
2266
2267</VarListEntry>
2268
2269</VariableList>
2270
2271</Sect3>
2272-->
2273
2274<Sect3><Title>FLAGS</Title>
2275
2276<VariableList>
2277
2278<VarListEntry><Term>Syntax</Term>
2279
2280<listitem><Para>*flags &lt;flags&gt;</Para></listitem>
2281
2282</VarListEntry>
2283
2284<VarListEntry><Term>Example</Term>
2285
2286<listitem>
[9e507547]2287<Para>
[6048971]2288<programlisting>
2289*flags duplicate not surface</programlisting>
[9e507547]2290</Para>
[6048971]2291</listitem>
2292
2293</VarListEntry>
2294
2295<VarListEntry><Term>Description</Term>
[9e507547]2296
[6048971]2297<listitem><Para>
2298*flags updates the current flag settings.
2299Flags not mentioned retain their previous state.  Valid flags
[3162ed8]2300are DUPLICATE, SPLAY, and SURFACE, and a flag may be preceded with NOT to
[9e507547]2301turn it off.
2302</Para>
2303
2304<Para>
2305Survey legs marked SURFACE are hidden from plots by default, and not
2306included in cave survey length calculations.  Survey legs marked as
[3162ed8]2307DUPLICATE or SPLAY are also not included in cave survey length
2308calculations; legs marked SPLAY are ignored by the extend program.
2309DUPLICATE is intended for the case when if you have two different
2310surveys along the same section of passage (for example to tie two
2311surveys into a permanent survey station); SPLAY is intended for
2312cases such as radial legs in a large chamber.
[9e507547]2313</Para>
[6048971]2314</listitem>
2315
2316</VarListEntry>
2317
2318<VarListEntry><Term>See Also</Term>
2319
2320<listitem><Para>*begin</Para></listitem>
2321
2322</VarListEntry>
2323
2324</VariableList>
[9e507547]2325
2326</Sect3>
2327
[6048971]2328<Sect3><Title>INCLUDE</Title>
2329
2330<VariableList>
2331
2332<VarListEntry><Term>Syntax</Term>
2333
2334<listitem><Para>*include &lt;filename&gt;</Para></listitem>
2335
2336</VarListEntry>
2337
2338<VarListEntry><Term>Example</Term>
[e189be2]2339
[6048971]2340<listitem>
[40647f5]2341<Para>
[6048971]2342<programlisting>
2343*include mission</programlisting>
2344
2345<programlisting>
2346*include "the pits"</programlisting>
[e189be2]2347</Para>
[6048971]2348</listitem>
[40647f5]2349
[6048971]2350</VarListEntry>
2351
2352<VarListEntry><Term>Description</Term>
2353
2354<listitem><Para>
2355*include processes &lt;filename&gt; as if it were inserted at this
[c1573d8]2356place in the current file. (i.e. The current settings are carried
[40647f5]2357into &lt;filename&gt;, and any alterations to settings in &lt;filename&gt;
[f9dc4a0]2358will be carried back again).  There's one exception to this (for
2359obscure historical reasons) which is that the survey prefix is
[cb69f36]2360restored upon return to the original file.  Since *begin and *end
[f9dc4a0]2361nesting cannot cross files, this can only make a difference if you
2362use the deprecated *prefix command.
2363</Para>
2364
2365<Para>If &lt;filename&gt; contains spaces, it must be enclosed in quotes.
[6048971]2366</Para>
[e189be2]2367
[6048971]2368<Para>An included file which does not have a complete path
[9e507547]2369is resolved relative to the directory which the parent file is in
[6af6d51]2370(just as relative HTML links do).  Cavern will try adding a <filename>.svx</filename>
[6e420ba]2371extension, and will also try translating "\" to "/".
2372And as a last
[9e507547]2373resort, it will try a lower case version of the filename (so if you
2374use Unix and someone sends you a DOS/Windows dataset with mismatched
[6af6d51]2375case, unzip it with "unzip -L" and UNIX cavern will process it).
[6048971]2376</Para>
[51c0677]2377
[f9dc4a0]2378<Para>
[63dc4eb]2379The depth to which you can nest
2380include files may be limited by the operating system
[f9dc4a0]2381you use.  Usually the limit is fairly high (>30), but if you want to be able to
[6af6d51]2382process your dataset with <Application>Survex</Application> on any supported platform, it
[f9dc4a0]2383would be prudent not to go overboard with nested include files.
2384</Para>
2385</listitem>
[6048971]2386</VarListEntry>
2387
2388</VariableList>
[40647f5]2389
[e189be2]2390</Sect3>
2391
[be1a437]2392<Sect3><Title>INFER</Title>
2393
2394<VariableList>
2395
2396<VarListEntry><Term>Syntax</Term>
2397
[3404462]2398<listitem>
2399<Para>*infer plumbs on|off</Para>
[be1a437]2400
[3404462]2401<Para>*infer equates on|off</Para>
[eb48e2b]2402
2403<Para>*infer exports on|off</Para>
[3404462]2404</listitem>
[be374fc]2405
[be1a437]2406</VarListEntry>
2407
2408<!--
2409<VarListEntry><Term>Example</Term>
2410
2411<listitem>
2412<programlisting>
2413</programlisting>
2414
2415</listitem>
2416
2417</VarListEntry>
2418-->
2419
2420<VarListEntry><Term>Description</Term>
2421
[3404462]2422<listitem>
2423<Para>"*infer plumbs on" tells cavern to interpret gradients of +/- 90
[be1a437]2424degrees as UP/DOWN (so it
2425will not apply the clino correction to them). This is useful when
2426the data has not been converted to have UP and DOWN in it.
2427</Para>
2428
[eb48e2b]2429<para>"*infer equates on" tells cavern to interpret a leg with
2430a tape reading of zero as a *equate.  this prevents tape corrections
[be374fc]2431being applied to them.
[eb48e2b]2432</para>
2433
2434<para>"*infer exports on" is necessary when you have a dataset which is
2435partly annotated with *export.  It tells cavern not to complain about
2436missing *export commands in part of the dataset.  Also stations which
2437were used to join surveys are marked as exported in the 3d file.
2438</para>
[be374fc]2439</listitem>
2440
[be1a437]2441</VarListEntry>
2442
2443<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2444
2445<!--
2446<VarListEntry><Term>See Also</Term>
2447
2448<listitem><Para>*end, *prefix</Para></listitem>
2449
2450</VarListEntry>
2451-->
2452
2453</VariableList>
2454
2455</Sect3>
2456
[e74904e]2457<Sect3><Title>INSTRUMENT</Title>
2458
2459<VariableList>
2460
2461<VarListEntry><Term>Syntax</Term>
2462
2463<listitem><Para>*instrument &lt;instrument&gt; &lt;identifier&gt;</Para></listitem>
2464
2465</VarListEntry>
2466
2467<VarListEntry><Term>Example</Term>
2468
2469<listitem>
2470<Para>
2471<programlisting>
2472*instrument compass "CUCC 2"
2473*instrument clino "CUCC 2"
2474*instrument tape "CUCC Fisco Ranger open reel"</programlisting>
2475</Para>
2476</listitem>
2477
2478</VarListEntry>
2479
2480<VarListEntry><Term>Validity</Term>
2481
2482<listitem><Para>valid at the start of a *begin/*end block.
2483</Para></listitem>
2484
2485</VarListEntry>
2486
2487<VarListEntry><Term>Description</Term>
2488
2489<listitem><Para>
2490*instrument specifies the particular instruments used to perform a
2491survey.
2492</Para></listitem>
2493
2494</VarListEntry>
2495
2496<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2497
2498<VarListEntry><Term>See Also</Term>
2499
2500<listitem><Para>*begin, *date, *team</Para></listitem>
2501
2502</VarListEntry>
2503
2504</VariableList>
2505
2506</Sect3>
2507
[6048971]2508<Sect3><Title>PREFIX</Title>
[e189be2]2509
[6048971]2510<VariableList>
2511
2512<VarListEntry><Term>Syntax</Term>
2513
2514<listitem><Para>*prefix &lt;survey&gt;</Para></listitem>
2515
2516</VarListEntry>
2517
2518<VarListEntry><Term>Example</Term>
2519
2520<listitem>
[40647f5]2521<Para>
[6048971]2522<programlisting>
2523*prefix flapjack</programlisting>
[e189be2]2524</Para>
[6048971]2525</listitem>
2526
2527</VarListEntry>
2528
2529<VarListEntry><Term>Description</Term>
2530
2531<listitem><Para>
2532*prefix sets the current survey.
2533</Para></listitem>
2534
2535</VarListEntry>
2536
2537<VarListEntry><Term>Caveats </Term>
2538
2539<listitem><Para>*prefix is deprecated - you should use *begin and *end
2540instead.</Para></listitem>
2541
2542</VarListEntry>
2543
2544<VarListEntry><Term>See Also</Term>
2545
2546<listitem><Para>*begin, *end</Para></listitem>
2547
2548</VarListEntry>
2549
2550</VariableList>
[e189be2]2551
2552</Sect3>
2553
[ce15637]2554<Sect3><Title>REF</Title>
2555
2556<VariableList>
2557
2558<VarListEntry><Term>Syntax</Term>
2559
2560<listitem><Para>*ref &lt;string&gt;</Para></listitem>
2561
2562</VarListEntry>
2563
2564<VarListEntry><Term>Example</Term>
2565
2566<listitem>
2567<Para>
2568<programlisting>
2569*ref "survey folder 2007#12"
[58e3c13]2570</programlisting>
[ce15637]2571</Para>
2572</listitem>
2573
2574</VarListEntry>
2575
2576<VarListEntry><Term>Validity</Term>
2577
2578<listitem><Para>valid at the start of a *begin/*end block.
2579</Para></listitem>
2580
2581</VarListEntry>
2582
2583<VarListEntry><Term>Description</Term>
2584
2585<listitem><Para>
[399acd6]2586*ref allows you to specify a reference.  If the reference contains spaces, you
2587must enclose it in double quotes.  Survex doesn't try to interpret the
2588reference in any way, so it's up to you how you use it - for example it could
2589specify where the original survey notes can be found.
[ce15637]2590</Para>
2591
2592<Para>
2593*ref was added in Survex 1.2.23.
2594</Para></listitem>
2595
2596</VarListEntry>
2597
2598<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2599
2600<VarListEntry><Term>See Also</Term>
2601
2602<listitem><Para>*begin, *date, *instrument, *team</Para></listitem>
2603
2604</VarListEntry>
2605
2606</VariableList>
2607
2608</Sect3>
2609
[6048971]2610<Sect3><Title>REQUIRE</Title>
[9e507547]2611
[6048971]2612<VariableList>
2613
2614<VarListEntry><Term>Syntax</Term>
2615
2616<listitem><Para>*require &lt;version&gt;</Para></listitem>
2617
2618</VarListEntry>
2619
2620<VarListEntry><Term>Example</Term>
2621
2622<listitem>
[9e507547]2623<Para>
[6048971]2624<programlisting>
2625*require 0.98</programlisting>
2626</Para>
2627</listitem>
2628
2629</VarListEntry>
2630
2631<VarListEntry><Term>Description</Term>
2632
2633<listitem><Para>
2634*require checks that the version of cavern in use is at least
2635&lt;version&gt; and stops with an error if not.
2636So if your dataset requires a feature
[9e507547]2637introduced in a particular version, you can add a *require command and
2638users will know what version they need to upgrade to, rather than
2639getting an error message and having to guess what the real problem is.
[6048971]2640</Para></listitem>
2641
2642</VarListEntry>
2643
2644</VariableList>
[9e507547]2645
2646</Sect3>
2647
[6048971]2648<Sect3><Title>SD</Title>
2649
2650<VariableList>
2651
2652<VarListEntry><Term>Syntax</Term>
[e189be2]2653
[6048971]2654<listitem><Para>*sd &lt;quantity list&gt; &lt;standard deviation&gt;
2655</Para></listitem>
2656
2657</VarListEntry>
2658
2659<VarListEntry><Term>Example</Term>
2660
2661<listitem>
[40647f5]2662<Para>
[6048971]2663<programlisting>
2664*sd tape 0.15 metres</programlisting>
[e189be2]2665</Para>
[6048971]2666</listitem>
[e189be2]2667
[6048971]2668</VarListEntry>
2669
2670<VarListEntry><Term>Description</Term>
2671
2672<listitem><Para>
2673*sd sets the standard deviation of a measurement.
[e189be2]2674</Para>
2675
[40647f5]2676<Para>
[bfd5706]2677&lt;quantity&gt; is one of (each group gives alternative names for the same
2678quantity):
[e189be2]2679</Para>
2680
[bfd5706]2681<ItemizedList>
2682    <listitem><para>TAPE, LENGTH</para></listitem>
2683    <listitem><para>COMPASS, BEARING</para></listitem>
2684    <listitem><para>BACKCOMPASS, BACKBEARING</para></listitem>
2685    <listitem><para>CLINO, GRADIENT</para></listitem>
2686    <listitem><para>BACKCLINO, BACKGRADIENT</para></listitem>
2687    <listitem><para>COUNTER, COUNT</para></listitem>
2688    <listitem><para>DEPTH</para></listitem>
2689    <listitem><para>DECLINATION</para></listitem>
2690    <listitem><para>DX, EASTING</para></listitem>
2691    <listitem><para>DY, NORTHING</para></listitem>
2692    <listitem><para>DZ, ALTITUDE</para></listitem>
2693    <listitem><para>LEFT</para></listitem>
2694    <listitem><para>RIGHT</para></listitem>
2695    <listitem><para>UP, CEILING</para></listitem>
2696    <listitem><para>DOWN, FLOOR</para></listitem>
2697    <listitem><para>LEVEL</para></listitem>
2698    <listitem><para>PLUMB</para></listitem>
2699    <listitem><para>POSITION</para></listitem>
2700</ItemizedList>
2701
[40647f5]2702<Para>
2703&lt;standard deviation&gt; must include units and thus is typically
[63dc4eb]2704"0.05 metres", or "0.02 degrees". See *units below for full list
[6048971]2705of valid units.
[e189be2]2706</Para>
2707
[6048971]2708<!-- FIXME mention central limit theorem -->
[40647f5]2709<Para>
[6048971]2710To utilise this command fully you need to understand what a
2711<emphasis>standard deviation</emphasis> is.
2712It gives a value to the 'spread' of the errors
[c1573d8]2713in a measurement. Assuming that these are normally distributed
[770157e]2714we can say that 95.44% of the actual lengths will fall within two
[40647f5]2715standard deviations of the measured length. i.e. a tape SD of
[770157e]27160.25 metres means that the actual length of a tape measurement
2717is within + or - 0.5 metres of the recorded value 95.44% of the time.
[40647f5]2718So if the measurement is 7.34m then the actual length is very
[6048971]2719likely to be between 6.84m and 7.84m. This example corresponds
[40647f5]2720to BCRA grade 3. Note that this is just one interpretation of
[770157e]2721the BCRA standard, taking the permitted error values as 2SD 95.44%
[40647f5]2722confidence limits. If you want to take the readings as being some
[6048971]2723other limit (e.g. 1SD = 68.26%) then you will need to change the BCRA3
[c1573d8]2724and BCRA5 files accordingly. This issue is explored in more
[40647f5]2725detail in various surveying articles.
[6048971]2726<!--
27272.565 sd 99%
27282.5   sd 98.76%
27292     sd 95.44%
27301     sd 68.26%
2731.97   sd 66.67%
27321.15  sd 75%
2733-->
2734</Para></listitem>
2735
2736</VarListEntry>
2737
2738<VarListEntry><Term>See Also</Term>
2739
2740<listitem><Para>*units</Para></listitem>
2741
2742</VarListEntry>
2743
2744</VariableList>
[e189be2]2745
2746</Sect3>
2747
[6048971]2748<Sect3><Title>SET</Title>
[e189be2]2749
[6048971]2750<VariableList>
[e189be2]2751
[6048971]2752<VarListEntry><Term>Syntax</Term>
2753
2754<listitem><Para>*set &lt;item&gt; &lt;character list&gt;</Para></listitem>
2755
2756</VarListEntry>
2757
2758<VarListEntry><Term>Example</Term>
2759
2760<listitem>
[40647f5]2761<Para>
[6048971]2762<programlisting>
[21c226e]2763*set blank x09x20
[6048971]2764*set decimal ,</programlisting>
[21c226e]2765
2766Note that you need to eliminate comma from being a blank before setting it as
2767a decimal - otherwise the comma in "*set decimal ," is parsed as a blank, and
2768you set decimal to not have any characters representing it.
[e189be2]2769</Para>
[6048971]2770</listitem>
[e189be2]2771
[6048971]2772</VarListEntry>
2773
2774<VarListEntry><Term>Description</Term>
2775
2776<listitem><Para>
2777*set sets the specified &lt;item&gt; to the character or characters
[40647f5]2778given in &lt;character list&gt;. The example sets the decimal
[11f9067]2779separator to be a comma.
2780</Para>
2781
2782<Para>
2783xAB means the character with hex value AB. Eg x20 is a space.
[e189be2]2784</Para>
2785
[40647f5]2786<Para>
[11f9067]2787The complete list of items that can be set, the defaults (in
[40647f5]2788brackets), and the meaning of the item, is:
[e189be2]2789</Para>
2790
[6048971]2791<ItemizedList>
2792
2793<ListItem><Para>
[11f9067]2794BLANK (x09x20,) Separates fields
[6048971]2795</Para></ListItem>
[e189be2]2796
[6048971]2797<ListItem><Para>
[40647f5]2798COMMENT (;) Introduces comments
[6048971]2799</Para></ListItem>
[e189be2]2800
[6048971]2801<ListItem><Para>
[40647f5]2802DECIMAL (.) Decimal point character
[6048971]2803</Para></ListItem>
[e189be2]2804
[6048971]2805<ListItem><Para>
2806EOL (x0Ax0D) End of line character
2807</Para></ListItem>
[e189be2]2808
[6048971]2809<ListItem><Para>
[40647f5]2810KEYWORD (*) Introduces keywords
[6048971]2811</Para></ListItem>
[e189be2]2812
[6048971]2813<ListItem><Para>
[40647f5]2814MINUS (-) Indicates negative number
[6048971]2815</Para></ListItem>
[e189be2]2816
[6048971]2817<ListItem><Para>
[f3ac7d4]2818NAMES (_-) Non-alphanumeric chars permitted in station
2819names (letters and numbers are always permitted).
[6048971]2820</Para></ListItem>
[e189be2]2821
[6048971]2822<ListItem><Para>
[c1573d8]2823OMIT (-) Contents of field omitted (e.g. in plumbed legs)
[6048971]2824</Para></ListItem>
[e189be2]2825
[6048971]2826<ListItem><Para>
[40647f5]2827PLUS (+) Indicates positive number
[6048971]2828</Para></ListItem>
[e189be2]2829
[6048971]2830<ListItem><Para>
[b15eeda]2831ROOT (\) Prefix in force at start of current file (use of ROOT is deprecated)
[6048971]2832</Para></ListItem>
[e189be2]2833
[6048971]2834<ListItem><Para>
[40647f5]2835SEPARATOR (.) Level separator in prefix hierarchy
[6048971]2836</Para></ListItem>
2837
[eb48e2b]2838<!-- FIXME OPEN ({) and CLOSE (}) -->
[6048971]2839</ItemizedList>
[e189be2]2840
[40647f5]2841<Para>
2842The special characters may not be alphanumeric.
[e189be2]2843</Para>
[40647f5]2844
[6048971]2845</listitem>
[e189be2]2846
[6048971]2847</VarListEntry>
[e189be2]2848
[6048971]2849</VariableList>
[e189be2]2850
2851</Sect3>
2852
2853<Sect3><Title>SOLVE</Title>
[40647f5]2854
[6048971]2855<VariableList>
2856
2857<VarListEntry><Term>Syntax</Term>
2858
2859<listitem><Para>*solve</Para></listitem>
2860
2861</VarListEntry>
2862
2863<VarListEntry><Term>Example</Term>
2864
2865<listitem>
[40647f5]2866<Para>
[6048971]2867<programlisting>
2868*include 1997data
2869*solve
2870*include 1998data
2871</programlisting>
[e189be2]2872</Para>
[6048971]2873</listitem>
2874
2875</VarListEntry>
2876
2877<VarListEntry><Term>Description</Term>
2878
2879<listitem><Para>
2880Distributes misclosures around any loops in the survey and fixes
2881the positions of all existing stations.  This command is intended
2882for situations where you have some new surveys adding extensions
2883to an already drawn-up survey which you wish to avoid completely
2884redrawing. You can read in the old data, use *SOLVE to fix it, and then
2885read in the new data.  Then old stations will be in the same
[63dc4eb]2886positions as they are in the existing drawn up survey, even if new loops
[6048971]2887have been formed by the extensions.
2888</Para></listitem>
2889
2890</VarListEntry>
2891
2892</VariableList>
[40647f5]2893
[e189be2]2894</Sect3>
2895
[e74904e]2896<Sect3><Title>TEAM</Title>
[be1a437]2897
2898<VariableList>
2899
2900<VarListEntry><Term>Syntax</Term>
2901
[e74904e]2902<listitem><Para>*team &lt;person&gt; &lt;role&gt;...</Para></listitem>
[be1a437]2903
2904</VarListEntry>
2905
2906<VarListEntry><Term>Example</Term>
2907
2908<listitem>
[e74904e]2909<Para>
[be1a437]2910<programlisting>
[e74904e]2911*team "Nick Proctor" compass clino tape
2912*team "Anthony Day" notes pictures tape
[be1a437]2913</programlisting>
[e74904e]2914</Para>
[be1a437]2915</listitem>
2916
2917</VarListEntry>
[e74904e]2918
2919<VarListEntry><Term>Validity</Term>
2920
2921<listitem><Para>valid at the start of a *begin/*end block.
2922</Para></listitem>
[eb48e2b]2923<!-- FIXME valid roles are? -->
[e74904e]2924
2925</VarListEntry>
[be1a437]2926
2927<VarListEntry><Term>Description</Term>
2928
[e74904e]2929<listitem><Para>
2930*team specifies the people involved in a survey and what role they
2931filled during that trip.
2932</Para></listitem>
2933
2934</VarListEntry>
2935
2936<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2937
2938<VarListEntry><Term>See Also</Term>
2939
2940<listitem><Para>*begin, *date, *instrument</Para></listitem>
2941
2942</VarListEntry>
2943
2944</VariableList>
[be1a437]2945
[e74904e]2946</Sect3>
2947
2948<Sect3><Title>TITLE</Title>
2949
2950<VariableList>
2951
2952<VarListEntry><Term>Syntax</Term>
2953
2954<listitem><Para>*title &lt;title&gt;</Para></listitem>
2955
2956</VarListEntry>
2957
2958<VarListEntry><Term>Example</Term>
2959
2960<listitem>
2961<programlisting>
2962*title Dreamtime</programlisting>
2963
2964<programlisting>
2965*title "Mission Impossible"</programlisting>
2966</listitem>
2967
2968</VarListEntry>
2969
2970<VarListEntry><Term>Description</Term>
2971
2972<listitem><Para>*title allows you to set the descriptive title for a survey.
2973If the title contains spaces, you need to enclose it in quotes ("").
2974If there is no *title command, the title defaults to the survey name
2975given in the *begin command.
[be1a437]2976</Para>
2977</listitem>
2978
2979</VarListEntry>
2980
2981<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2982
2983<!--
2984<VarListEntry><Term>See Also</Term>
2985
2986<listitem><Para>*end, *prefix</Para></listitem>
2987
2988</VarListEntry>
2989-->
2990
2991</VariableList>
2992
2993</Sect3>
2994
2995<Sect3><Title>TRUNCATE</Title>
2996
2997<VariableList>
2998
2999<VarListEntry><Term>Syntax</Term>
3000
3001<listitem><Para>*truncate &lt;length&gt;|off</Para></listitem>
3002
3003</VarListEntry>
3004
[e74904e]3005<!-- FIXME:
[be1a437]3006<VarListEntry><Term>Example</Term>
3007
3008<listitem>
3009<programlisting>
3010</programlisting>
3011
3012</listitem>
3013
3014</VarListEntry>
3015-->
3016
3017<VarListEntry><Term>Description</Term>
3018
[6af6d51]3019<listitem><Para>Station names may be of any length in <Application>Survex</Application>, but some
[be1a437]3020other (mostly older) cave surveying software only regard the first few
3021characters of a name as significant (e.g. "entran" and "entrance"
3022might be treated as the same).  To facilitate using data imported from
[6af6d51]3023such a package <Application>Survex</Application> allows you to truncate names to whatever
[eb48e2b]3024length you want (but by default truncation is off).
[be1a437]3025</Para>
3026
[f9dc4a0]3027<Para>Figures for the number of characters which are significant in various
[a4458fd5]3028software packages: Compass currently has a limit of 12,
[f9dc4a0]3029CMAP has a limit of 6,
[b554a4b]3030Smaps 4 had a limit of 8,
[eb48e2b]3031<!-- FIXME any limits for other software, winkarst for example? -->
3032Surveyor87/8 used 8.
[6af6d51]3033<Application>Survex</Application> itself used 8 per prefix
[be1a437]3034level up to version 0.41, and 12 per prefix level up to 0.73 (more recent
3035versions removed this rather archaic restriction).
3036</Para>
3037</listitem>
3038
3039</VarListEntry>
3040
3041<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3042
3043<VarListEntry><Term>See Also</Term>
3044
[e6fdc7c]3045<listitem><Para>*case</Para></listitem>
[be1a437]3046
3047</VarListEntry>
3048
3049</VariableList>
3050
3051</Sect3>
3052
[e74904e]3053<Sect3><Title>UNITS</Title>
[c1573d8]3054
[e74904e]3055<VariableList>
[9e507547]3056
[e74904e]3057<VarListEntry><Term>Syntax</Term>
3058
3059<listitem><Para>
3060*units &lt;quantity list&gt; [&lt;factor&gt;] &lt;unit&gt;
[e189be2]3061</Para>
[e74904e]3062<Para>
3063*units default
3064</Para></listitem>
3065
3066</VarListEntry>
3067
3068<VarListEntry><Term>Example</Term>
[c1573d8]3069
[e74904e]3070<listitem>
3071<Para>
3072<programlisting>
3073*units tape metres</programlisting>
3074
3075<programlisting>
[b14f44f]3076*units compass backcompass clino backclino grads</programlisting>
[e74904e]3077
3078<programlisting>
3079*units dx dy dz 1000 metres ; data given as kilometres</programlisting>
[b5283af]3080
3081<programlisting>
3082*units left right up down feet</programlisting>
[e189be2]3083</Para>
[e74904e]3084</listitem>
[c1573d8]3085
[e74904e]3086</VarListEntry>
3087
3088<VarListEntry><Term>Description</Term>
3089
3090<listitem><Para>
[b5283af]3091&lt;quantity&gt; is one of the following (grouped entries are just alternative names for the same thing):
3092TAPE/LENGTH, COMPASS/BEARING, BACKCOMPASS/BACKBEARING, CLINO/GRADIENT, BACKCLINO/BACKGRADIENT, COUNTER/COUNT, DEPTH, DECLINATION, DX/EASTING, DY/NORTHING, DZ/ALTITUDE, LEFT, RIGHT, UP/CEILING, DOWN/FLOOR
[e189be2]3093</Para>
[c1573d8]3094
3095<Para>Changes current units of all the quantities listed to [&lt;factor&gt;]
[40647f5]3096&lt;unit&gt;. Note that quantities can be expressed either as
[fa42426]3097the instrument (e.g. COMPASS) or the measurement (e.g. BEARING).
[e189be2]3098</Para>
[c1573d8]3099
[fa42426]3100<Para>&lt;factor&gt; allows you to easy specify situations such as measuring
3101distance with a diving line knotted every 10cm (*units distance 0.1 metres).
3102If &lt;factor&gt; is omitted it defaults to 1.0.  If specified, it must be
3103non-zero.
[e189be2]3104</Para>
[c1573d8]3105
3106<Para>Valid units for listed quantities are:
[e189be2]3107</Para>
[c1573d8]3108
[b5283af]3109<Para>TAPE/LENGTH, COUNTER/COUNT, DEPTH, DX/EASTING, DY/NORTHING, DZ/ALTITUDE
3110in YARDS|FEET|METRIC|METRES|METERS (default: METRES)
[e189be2]3111</Para>
[c1573d8]3112
[b5283af]3113<Para>CLINO/GRADIENT, BACKCLINO/BACKGRADIENT
3114in DEG|DEGREES|GRADS|MILS|PERCENT|PERCENTAGE (default: DEGREES)
[e74904e]3115</Para>
3116
[b5283af]3117<Para>COMPASS/BEARING, BACKCOMPASS/BACKBEARING, DECLINATION
3118in DEG|DEGREES|GRADS|MILS|MINUTES (default: DEGREES)
[e74904e]3119</Para>
3120
3121<Para>(360 degrees = 400 grads (also known as Mils))
3122</Para>
[b5283af]3123</listitem>
[e74904e]3124
3125</VarListEntry>
3126
3127<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3128
3129<VarListEntry><Term>See Also</Term>
3130
3131<listitem><Para>*calibrate</Para></listitem>
3132
3133</VarListEntry>
3134
3135</VariableList>
[c1573d8]3136
[e189be2]3137</Sect3>
3138
3139</Sect2>
3140
3141</Sect1>
3142
[63dc4eb]3143<!-- FIXME rename to "Cookbook"? -->
[6af6d51]3144<Sect1><Title>Contents of <filename>.svx</filename> files: How do I?</Title>
[0d62afe]3145<?dbhtml filename="svxhowto.htm">
[c1573d8]3146
[40647f5]3147<Para>
[6af6d51]3148Here is some example <Application>Survex</Application> data (a very small cave numbered 1623/163):
[e189be2]3149</Para>
[fbc41c2]3150
3151<programlisting>
[40647f5]31522 1 26.60 222  17.5
31532 3 10.85 014   7
31542 4  7.89 254 -11
31554 5  2.98  - DOWN
[fbc41c2]31565 6  9.29 271 -28.5</programlisting>
3157
[40647f5]3158<Para>
3159You can vary the data ordering.  The default is:
[e189be2]3160</Para>
3161
[40647f5]3162<Para>
3163from-station to-station tape compass clino
[e189be2]3164</Para>
3165
[40647f5]3166<Para>
[6af6d51]3167This data demonstrates a number of useful features of <Application>Survex</Application>:
[e189be2]3168</Para>
3169
[40647f5]3170<Para>
3171Legs can be measured either way round, which allows the use of
[b462168]3172techniques like "leap-frogging" (which is where legs
3173alternate forwards and backwards).
[e189be2]3174</Para>
3175
[40647f5]3176<Para>
3177Also notice that there is a spur in the survey (2 to 3).  You
[6aef4f1]3178do not need to specify this specially.
[e189be2]3179</Para>
3180
[40647f5]3181<Para>
[6af6d51]3182<Application>Survex</Application> places few restrictions on station naming (see "Survey
[ff003b3]3183Station Names" in the previous section), so you can number the stations
3184as they were in the original survey notes.  Although not apparent from
3185this example, there is no requirement for each leg to connect to an
[6af6d51]3186existing station.  <Application>Survex</Application> can accept data in any order, and will
[ff003b3]3187check for connectedness once all the data has been read in.
[e189be2]3188</Para>
3189
[40647f5]3190<Para>
3191Each survey is also likely to have other information associated
3192with it, such as instrument calibrations, etc.  This has been
3193omitted from this example to keep things simple.
[e189be2]3194</Para>
3195
[40647f5]3196<Para>
3197Most caves will take more than just one survey trip to map.  Commonly
3198the numbering in each survey will begin at 1, so we need to be
3199able to tell apart stations with the same number in different
3200surveys.
[e189be2]3201</Para>
3202
[40647f5]3203<Para>
[6af6d51]3204To accomplish this, <Application>Survex</Application> has a very flexible system of hierarchical
[40647f5]3205prefixes.  All you need do is give each survey a unique name or
3206number, and enter the data like so:
[e189be2]3207</Para>
[fbc41c2]3208
3209<programlisting>
[40647f5]3210*begin 163
[e74904e]3211*export 1
[40647f5]32122 1 26.60 222  17.5
32132 3 10.85 014   7
32142 4  7.89 254 -11
32154 5  2.98  - DOWN
32165 6  9.29 271 -28.5
[fbc41c2]3217*end 163</programlisting>
3218
[6af6d51]3219<Para><Application>Survex</Application> will name the stations by attaching the current prefix.
[fbc41c2]3220In this case, the stations will be named 163.1, 163.2, etc.
[e189be2]3221</Para>
[fbc41c2]3222
[ff003b3]3223<Para>We have a convention with the CUCC Austria data that the entrance survey
3224station of a cave is named P&lt;cave number&gt;, P163 in this case. We
[fbc41c2]3225can accomplish this like so:
[e189be2]3226</Para>
[fbc41c2]3227
3228<programlisting>
[b15eeda]3229*equate P163 163.1
[e74904e]3230*entrance P163
[40647f5]3231*begin 163
[e74904e]3232*export 1
[40647f5]32332 1 26.60 222  17.5
32342 3 10.85 014   7
32352 4  7.89 254 -11
32364 5  2.98  - DOWN
32375 6  9.29 271 -28.5
[fbc41c2]3238*end 163</programlisting>
3239
[b462168]3240<Sect2><Title>Specify surface survey data</Title>
3241
3242<Para>
3243Say you have 2 underground surveys and 2 surface ones with 2 fixed reference
3244points.  You want to mark the surface surveys so that their length isn't
3245included in length statistics, and so that Aven knows to display them
3246differently.  To do this you mark surface data with the "surface" flag
3247- this is set with "*flags surface" like so:
[ce92903]3248</Para>
[b462168]3249
3250<programlisting>
3251; fixed reference points
3252*fix fix_a 12345 56789 1234
3253*fix fix_b 23456 67890 1111                                                     
3254                                                                               
3255; surface data (enclosed in *begin ... *end to stop the *flags command
3256; from "leaking" out)
3257*begin
3258*flags surface
3259*include surface1
3260*include surface2
3261*end                                                                           
3262                                                                               
3263; underground data
3264*include cave1
3265*include cave2</programlisting>
3266
3267<Para>
3268You might also have a survey which starts on the surface and heads into a
3269cave.  This can be easily handled too - here's an example which goes in
3270one entrance, through the cave, and out of another entrance:
3271</Para>
3272
3273<programlisting>
3274*begin BtoC
3275*title "161b to 161c"
3276*date 1990.08.06 ; trip 1990-161c-3 in 1990 logbook
3277
3278*begin
3279*flags surface
328002    01      3.09   249    -08.5
328102    03      4.13   252.5  -26
3282*end
3283
328404    03      6.00   020    +37
328504    05      3.07   329    -31
328606    05      2.67   203    -40.5
328706    07      2.20   014    +04
328807    08      2.98   032    +04
328908    09      2.73   063.5  +21
329009    10     12.35   059    +15
3291
3292*begin
3293*flags surface
329411    10      4.20   221.5  -11.5
329511    12      5.05   215    +03.5
329611    13      6.14   205    +12.5
329713    14     15.40   221    -14
3298*end
3299
3300*end BtoC</programlisting>
3301
3302<Para>
3303Note that to avoid needless complication, Survex regards each leg as
3304being either "surface" or "not surface" - if a leg spans the boundary you'll
3305have to call it one or the other.  It's good surveying practice to
3306deliberately put a station at the surface/underground interface
3307(typically the highest closed contour or drip line) so this generally
3308isn't an onerous restriction.
3309</Para>
3310
3311</Sect2>
3312
[e189be2]3313<Sect2><Title>Specify the ordering and type of data</Title>
3314
[e74904e]3315<Para>The *DATA command is used to specify the data style, and the
3316order in which the readings are given.</Para>
[e189be2]3317
3318</Sect2>
3319
[1a50c3c]3320<Sect2><Title>Deal with Plumbs or Legs Across Static Water</Title>
[e189be2]3321
[1a50c3c]3322<!-- FIXME
[40647f5]3323<Para>
[1a50c3c]3324They can be given
[40647f5]3325as +90, or -90, but as they are not usually measured with the
3326clino, but with a plumb of some sort, then it is useful to distinguish
3327them in this way so that any clino adjustment is not applied to
3328these values.
[e189be2]3329</Para>
3330
[63dc4eb]3331FIXME: paste in section from mail to list
3332
[40647f5]3333<Para>
[4eba0d9]3334Note that a similar effect can be achieved by using the "*infer plumbs" command
3335to stop clino corrections being applied to -90 and +90 clino readings.
[e189be2]3336</Para>
[1a50c3c]3337-->
[e189be2]3338
[40647f5]3339<Para>
[eb48e2b]3340Plumbed legs should be given using 'UP' or 'DOWN' in place of the
[1a50c3c]3341clino reading and a dash (or a different specified 'OMIT' character)
3342in place of the compass reading.  This distinguishes
3343them from legs measured with a compass and clino.  Here's an example:
[e189be2]3344</Para>
[fbc41c2]3345
3346<programlisting>
[40647f5]33471 2 21.54 - UP
33483 2 7.36 017 +17
33493 4 1.62 091 +08
[fbc41c2]33505 4 10.38 - DOWN</programlisting>
3351
[e189be2]3352<Para>
[eb48e2b]3353U/D or +V/-V may be used instead of UP/DOWN; the check is not case
[1a50c3c]3354sensitive.
[e189be2]3355</Para>
3356
[4eba0d9]3357<Para>
3358Legs surveyed across the surface of a static body of water where no
3359clino reading is taken (since the surface of the water can be assumed
3360to be flat) can be indicated by using LEVEL in place of a clino reading.
[1a50c3c]3361This prevents the clino correction being applied.  Here's an example:
[4eba0d9]3362</Para>
3363
3364<programlisting>
33651 2 11.37 190 -12
33663 2  7.36 017 LEVEL
33673 4  1.62 091 LEVEL</programlisting>
3368
[e189be2]3369</Sect2>
[fbc41c2]3370
[e189be2]3371<Sect2><Title>Specify a BCRA grade</Title>
[40647f5]3372
[fbc41c2]3373<Para>The *SD command can be used to specify the standard deviations of the
3374various measurements (tape, compass, clino, etc).  Examples files are
3375supplied which define BCRA Grade 3 and BCRA Grade 5 using a number of *sd
[eb48e2b]3376commands. You can use these by simply including them at the relevant point,
3377as follows:
[e189be2]3378</Para>
[fbc41c2]3379
3380<programlisting>
[40647f5]3381*begin somewhere
3382; This survey is only grade 3
3383*include grade3
33842 1 26.60 222  17.5
33852 3 10.85 014   7
3386; etc
[fbc41c2]3387*end somewhere</programlisting>
3388
3389<Para>The default values for the standard deviations are those for
[6aef4f1]3390BCRA grade 5. Note that it is good practice to keep the *include
[c1573d8]3391Grade3 within *Begin and *End commands otherwise it will apply
[40647f5]3392to following survey data, which may not be what you intended.
[e189be2]3393</Para>
3394
3395</Sect2>
[40647f5]3396
[e189be2]3397<Sect2><Title>Specify different accuracy for a leg</Title>
[fbc41c2]3398
[c1573d8]3399<Para>For example, suppose the tape on the plumbed leg in this survey
[1a50c3c]3400is suspected of being less accurate than the rest of the survey because
3401the length was obtained by measuring the length of the rope used to rig
3402the pitch.  We can set a higher sd for this one measurement and use a
3403*begin/*end block to make sure this setting only applies to the one
3404leg:
[e189be2]3405</Para>
[fbc41c2]3406
3407<programlisting>
[40647f5]34082 1 26.60 222  17.5
34092 3 10.85 014   7
34102 4  7.89 254 -11
3411*begin
[1a50c3c]3412; tape measurement was taken from the rope length
[40647f5]3413*sd tape 0.5 metres
[1a50c3c]34144 5  34.50 - DOWN
[40647f5]3415*end
[1a50c3c]34165 6  9.29 271 -28.5</programlisting>
[fbc41c2]3417
[eb48e2b]3418<!-- FIXME also *calibrate and *instrument? Except rope is measure with the
3419tape... -->
[e189be2]3420</Sect2>
3421
[fbf7fa0]3422<Sect2><Title>Enter Repeated Readings</Title>
3423
3424<Para>If your survey data contains multiple versions of each leg (for example,
3425pockettopo produces such data), then provided these are adjacent to one another
3426Survex 1.2.17 and later will automatically average these and treat them as a
3427single leg.
3428</Para>
3429
3430</Sect2>
3431
[ff003b3]3432<Sect2><Title>Enter Radiolocation Data</Title>
[fbc41c2]3433
[a4458fd5]3434<!-- FIXME comments from David Gibson here -->
[5b5a89f]3435<Para>This is done by using the *SD command to specify the appropriate
3436errors for the radiolocation `survey leg' so that the loop closure
3437algorithm knows how to distribute errors if it forms part of a loop.
3438</Para>
3439
3440<Para>The best approach for a radiolocation where the underground station
3441is vertically below the surface station is to represent it as a
3442plumbed leg, giving suitable SDs for the length and plumb angle. The
3443horizontal positioning of this is generally quite accurate, but the
3444vertical positioning may be much less well known. E.g: we have a
3445radiolocation of about 50m depth +/- 20m and horizontal accuracy of
3446+/- 8m. Over 50m the +/-8m is equivalent to an angle of 9 degrees, so
3447that is the expected plumb error. 20m is the expected error in the
[e74904e]3448length. To get the equivalent SD we assume that 99.74% of readings will
[5b5a89f]3449be within 3 standard deviations of the error value. Thus we divide the
3450expected errors by 3 to get the SD we should specify:
[eb48e2b]3451</Para> <!-- 3 SD? or same as BCRA3.SVX, etc -->
[fbc41c2]3452
3453<programlisting>
[5b5a89f]3454*begin
[e74904e]3455*sd length 6.67 metres
[5b5a89f]3456*sd plumb 3 degrees
3457surface underground 50 - down
[e74904e]3458*end</programlisting>
[5b5a89f]3459
3460<Para>
[e74904e]3461We wrap the radiolocation leg in a *begin/*end block to make
[5b5a89f]3462sure that the special *sd settings only apply to this one leg.
3463</Para>
[fbc41c2]3464
3465<Para>For more information on the expected errors from radiolocations
[b462168]3466see Compass Points Issue 10, available online at
3467<ulink url="http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm">http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm</ulink>
[e189be2]3468</Para>
3469
3470</Sect2>
[fbc41c2]3471
[e189be2]3472<Sect2><Title>Enter Diving Data</Title>
[fbc41c2]3473
[0706076]3474<Para>Surveys made underwater using a diver's depth gauge can be
3475processed - use the *Data command to specify that the following data
3476is of this type.
[e189be2]3477</Para>
3478
3479</Sect2>
[fbc41c2]3480
[e189be2]3481<Sect2><Title>Enter Theodolite data</Title>
[fbc41c2]3482
[e74904e]3483<Para>
3484Theodolite data with turned angles is not yet explicitly catered
3485for, so for now you will need to convert it into equivalent legs in
3486another style - normal or cylpolar are likely to be the best choices.
3487</Para>
3488
3489<Para>
3490If there is no vertical info in your theodolite data then you should
3491use the cylpolar style and use *sd command to specify very low
3492accuracy (high SD) in the depth so that the points will move in the
3493vertical plane as required if the end points are fixed or the survey
3494is part of a loop.
[e189be2]3495</Para>
3496
3497</Sect2>
3498
3499</Sect1>
[fbc41c2]3500
[e189be2]3501<Sect1><Title>General: How do I?</Title>
[0d62afe]3502<?dbhtml filename="genhowto.htm">
[fbc41c2]3503
[e189be2]3504<Sect2><Title>Create a new survey</Title>
[fbc41c2]3505
3506<Para>You simply create a text file containing the relevant survey data,
[6af6d51]3507using a text editor, and save it with a suitable name with a <filename>.svx</filename>
[e6aa3b1]3508extension. The
[40647f5]3509easiest way is to look at some of the example data and use that
3510as a template. Nearly all surveys will need a bit of basic info
[e6aa3b1]3511as well as the survey data itself: e.g. the date (*date), comments
3512about where, what cave, a name for the survey (using *begin and *end),
3513instrument error corrections etc. Here is a typical survey file:
[e189be2]3514</Para>
[fbc41c2]3515
3516<Para>All the lines starting with ';' are comments, which are ignored
[6af6d51]3517by <Application>Survex</Application>. You can also see the use of 'DOWN' for plumbs, and
[b462168]3518*calibrate tape for dealing with a tape length error (in this case
3519the end of the tape had fallen off so measurements were made from the
352020cm point).</Para>
[40647f5]3521
[fbc41c2]3522<programlisting>
[e74904e]3523*equate chaos.1 triassic.pt3.8
3524*equate chaos.2 triassic.pt3.9
3525
3526*begin chaos
3527*title "Bottomless Pit of Eternal Chaos to Redemption pitch"
3528*date 1996.07.11
3529*team "Nick Proctor" compass clino tape
3530*team "Anthony Day" notes pictures tape
3531*instrument compass "CUCC 2"
3532*instrument clino "CUCC 2"
[40647f5]3533;Calibration: Cairn-Rock 071 072 071,  -22 -22 -22
3534;       Rock-Cairn 252 251 252,  +21 +21 +21
3535;Calibration at 161d entrance from cairn nr entrance to
3536;prominent rock edge lower down. This is different from
3537;calibration used for thighs survey of 5 July 1996
[e74904e]3538
3539*export 1 2
3540
[40647f5]3541;Tape is 20cm too short
3542*calibrate tape +0.2
[e74904e]3543
[40647f5]35441 2 9.48 208 +08
35452 3 9.30 179 -23
35463 4 2.17 057 +09
35475 4 10.13 263 +78
35485 6 2.10 171 -73
35497 6 7.93 291 +75
[e74904e]3550*begin
[40647f5]3551*calibrate tape 0
35528 7 35.64 262 +86 ;true length measured for this leg
[e74904e]3553*end
[40647f5]35548 9 24.90 - DOWN
355510 9 8.61 031 -43
355610 11 2.53 008 -34
355711 12 2.70 286 -20
355813 12 5.36 135 +23
355914 13 1.52 119 -12
356015 14 2.00 036 +13
356116 15 2.10 103 +12
356217 16 1.40 068 -07
356317 18 1.53 285 -42
356419 18 5.20 057 -36
356519 20 2.41 161 -67
356620 21 27.47 - DOWN
356721 22 9.30 192 -29
[fbc41c2]3568*end chaos</programlisting>
[40647f5]3569
[e189be2]3570</Sect2>
3571
3572<Sect2><Title>Join surveys together</Title>
[fbc41c2]3573
3574<Para>Once you have more than one survey you need to specify how they
[e74904e]3575link together. To do this use *export to make the stations to be
3576joined accessible in the enclosing survey, then *equate in the
3577enclosing survey to join them together.
3578<!-- FIXME example -->
[e189be2]3579</Para>
3580
3581</Sect2>
[40647f5]3582
[e189be2]3583<Sect2><Title>Organise my surveys</Title>
[fbc41c2]3584
3585<Para>This is actually a large subject. There are many ways you can
[6af6d51]3586organise your data using <Application>Survex</Application>. Take a look at the example dataset
[40647f5]3587for some ideas of ways to go about it.
[e189be2]3588</Para>
[40647f5]3589
[e189be2]3590<Sect3><Title>Fixed Points (Control Points)</Title>
[fbc41c2]3591
[f9dc4a0]3592<Para>The *fix command is used to specify fixed points (also know as control
3593points).  See the description of this command in the "Cavern Commands"
3594section of this manual.
[e189be2]3595</Para>
3596
3597</Sect3>
[fbc41c2]3598
[e189be2]3599<Sect3><Title>More than one survey per trip</Title>
[fbc41c2]3600
3601<Para>Suppose you have two separate bits of surveying which were done on the
3602same trip.  So the calibration details, etc. are the same for both.  But you
[e74904e]3603want to give a different survey name to the two sections.  This is easily
[fbc41c2]3604achieved like so:
[e189be2]3605</Para>
[fbc41c2]3606
3607<programlisting>
[40647f5]3608*begin
3609*calibrate compass 1.0
3610*calibrate clino 0.5
3611*begin altroute
3612; first survey
3613*end altroute
3614*begin faraway
3615; second survey
3616*end faraway
[fbc41c2]3617*end</programlisting>
[40647f5]3618
[e189be2]3619</Sect3>
3620
3621</Sect2>
3622
[419befc]3623<Sect2><Title>Add surface topography</Title>
[fbc41c2]3624
[705aaedd]3625<Para>Survex 1.2.18 added support for loading terrain data and rendering it as
3626a transparent surface.
3627</Para>
3628
3629<Para>
3630We recommend using this new code in preference, but previously the simplest
3631approach was to generate a <filename>.svx</filename> file with the surface mesh
3632in and display it with the survey data.
[f9dc4a0]3633</Para>
3634
3635<Para>
3636It is possible to generate
[705aaedd]3637a mesh or contours overlaying your area by various means.  NASA have made
36381 arc-second (approximately 30m) terrain data available for the USA for
3639some years, with only 3 arc-second data available for other countries.
3640However, starting in 2014 they're gradually making 1 arc-second data
3641available for more countries.
3642</Para>
3643
3644<Para>
3645If you want a better resolution that this, reading heights from the
[f9dc4a0]3646contours on a map is one approach.  It's laborious, but feasible for
3647a small area.
3648</Para>
3649
3650<Para>
3651Details of several methods are given in the BCRA Cave Surveying
3652Group magazine Compass Points issue 11, available online at
3653<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>
3654</Para>
3655
[6af6d51]3656<Para>If you're using another program to generate a <filename>.svx</filename> file for the surface
[f9dc4a0]3657mesh, it's best to use the NOSURVEY data style.
3658Simply fix all the grid intersections at the correct
3659coordinates and height, and put legs between them using the NOSURVEY style.
3660Here's a grid of 4 squares and 9 intersections:
3661</Para>
3662
3663<programlisting>
3664*fix 00 000 000 1070
3665*fix 01 000 100 1089
3666*fix 02 000 200 1093
3667
3668*fix 10 100 000 1062
3669*fix 11 100 100 1080
3670*fix 12 100 200 1089
3671
3672*fix 20 200 000 1050
3673*fix 21 200 100 1065
3674*fix 22 200 200 1077
3675
[27b8b59]3676*data nosurvey station
[f9dc4a0]3677
[27b8b59]367800
367901
368002
[f9dc4a0]3681
[27b8b59]368210
368311
368412
[f9dc4a0]3685
[27b8b59]368620
368721
368822
[f9dc4a0]3689
[27b8b59]369000
369110
369220
[f9dc4a0]3693
[27b8b59]369401
369511
369621
[f9dc4a0]3697
[27b8b59]369802
369912
370022</programlisting>
[f9dc4a0]3701
3702<Para>
3703This is far simpler than trying to create fake tape/compass/clino legs of
[eb48e2b]3704the right length for each line in the mesh.  It's also very fast to process
[f9dc4a0]3705with cavern.
3706</Para>
3707
[e189be2]3708</Sect2>
3709
3710<Sect2><Title>Overlay a grid</Title>
[fbc41c2]3711
[f9dc4a0]3712<Para>Aven is able to display a grid, but this functionality isn't currently
[4e8d288]3713available in printouts.
[6af6d51]3714You can achieve a similar effect for now by creating a <filename>.svx</filename> file
[e74904e]3715where the survey legs form a grid.
[e189be2]3716</Para>
[fbc41c2]3717
[e189be2]3718</Sect2>
3719
3720<Sect2><Title>Import data from other programs</Title>
[fbc41c2]3721
[6af6d51]3722<Para><Application>Survex</Application> supports a number of features to help with importing
[fbc41c2]3723existing data. You can specify the ordering of items on a line using *Data
[6af6d51]3724(see <Application>Survex</Application> Keywords above), and you can specify the characters used
3725to mean different things using *Set (see <Application>Survex</Application> Keywords above).
[e189be2]3726</Para>
[fbc41c2]3727
[c1573d8]3728<Para>The Ignore and Ignoreall options to the *Data command are often
[fbc41c2]3729particularly useful, e.g. if you have a dataset with LRUD info or comments
3730on the ends of lines.
[e189be2]3731</Para>
[fbc41c2]3732
[e6aa3b1]3733<Sect3><Title>Changing Meanings of Characters</Title>
[fbc41c2]3734
[e6aa3b1]3735<Para>e.g. if you have some data with station names containing the
3736characters '?' and '+' (which are not permitted in a name by default)
3737then the command:
[e189be2]3738</Para>
[fbc41c2]3739
3740<programlisting>
[e6aa3b1]3741*SET NAMES ?+</programlisting>
[fbc41c2]3742
[e189be2]3743<Para>
[e6aa3b1]3744specifies that question marks and plus signs are permitted in station names.
3745A-Z, a-z, and 0-9 are always permitted. '_' and '-' are also permitted by
3746default, but aren't in this example.
[e189be2]3747</Para>
[fbc41c2]3748
3749<Para>If your data uses a comma ',' instead of a decimal point, then
[40647f5]3750you use
[e189be2]3751</Para>
[fbc41c2]3752
3753<programlisting>
3754*SET DECIMAL ,</programlisting>
3755
3756<Para>to specify that ',' is now the decimal separator instead of '.'.
[e189be2]3757</Para>
[fbc41c2]3758
[e74904e]3759<!-- FIXME
[fbc41c2]3760<Para>Note that there are plenty of ways you can use this facility to
[6aef4f1]3761completely confuse the software, as it may not be able to work out what is
[c1573d8]3762going on, or it may simply be ambiguous. It can cope with some ambiguity (e.g.
[6aef4f1]3763the '-' character is used both for 'MINUS' and for 'OMIT'), but there are
[6af6d51]3764limits. If you have a dataset that you can not make <Application>Survex</Application>
[6aef4f1]3765understand, then send it to us, and we will see what can be done.
[e189be2]3766</Para>
[e74904e]3767-->
[e189be2]3768
3769</Sect3>
[fbc41c2]3770
[49920d0]3771<!--
3772 Nobody seems to have the CfH convertor...
3773 but it's probably no longer useful anyway
3774
[e189be2]3775<Sect3><Title>Other Converters</Title>
[fbc41c2]3776
3777<Para>We have an Excel 5 macro for converting The Lotus 123 spreadsheets
[40647f5]3778used by the German survey software Cad F&uuml;r H&ouml;hlen into
[6af6d51]3779<Application>Survex</Application> data files. Other converters may also come to be available.
[ff003b3]3780These will normally be available via the
[6af6d51]3781<ulink url="http://survex.com/"><Application>Survex</Application> Web pages</ulink>.
[e189be2]3782</Para>
3783
3784</Sect3>
[dcc1947]3785-->
3786
[e189be2]3787</Sect2>
[40647f5]3788
[6af6d51]3789<Sect2><Title>Export data from <Application>Survex</Application></Title>
[fbc41c2]3790
[e6aa3b1]3791<Para>See Rosetta Stal in the Related Tools section of the Survex web
[eb48e2b]3792site.  This is a utility written by Taco van Ieperen and Gary Petrie.
3793Note though that this only supports a subset of the svx format,
3794and only work on Microsoft Windows.  The Survex support is limited
3795and doesn't understand the more recently added commands.</Para>
[e189be2]3796
3797</Sect2>
[40647f5]3798
[e189be2]3799<Sect2><Title>See errors and warnings that have gone off the screen</Title>
[fbc41c2]3800
[6af6d51]3801<Para>When you run <Application>Survex</Application> it will process the specified survey data
[e74904e]3802files in order, reporting any warnings and errors.  If there are no
3803errors, the output files are written and various statistics about the
3804survey are displayed. If there are a lot of warnings or errors, they can
3805scroll off the screen and it's not always possible to scroll back to
3806read them.
[e189be2]3807</Para>
[fbc41c2]3808
[e74904e]3809<Para>The easiest way to see all the text is to use <command>cavern
3810--log</command> to redirect output to a <filename>.log</filename> file,
3811which you can then inspect with a text editor.
[e189be2]3812</Para>
3813
[38335b7]3814<!-- <command>cavern cavename &gt; tmpfile</command> -->
[fbc41c2]3815
[e189be2]3816</Sect2>
3817
3818<Sect2><Title>Create an Extended Elevation</Title>
[fbc41c2]3819
[6af6d51]3820<Para>Use the Extend program. This takes <filename>.3d</filename> files and
[c1573d8]3821'flattens' them.  See 'Extend' for details.
[e189be2]3822</Para>
3823
3824</Sect2>
[fbc41c2]3825
[e189be2]3826</Sect1>
3827
[6048971]3828<!--
[e189be2]3829<Sect1><Title>Appendices</Title>
[0d62afe]3830<?dbhtml filename="appendix.htm">
[fbc41c2]3831
3832<Para>Files provided
[e189be2]3833</Para>
[fbc41c2]3834
3835<Para>Command specification
[e189be2]3836</Para>
3837
3838</Sect1>
[6048971]3839-->
[b462168]3840<Sect1><Title>Working with Larry Fish's Compass</Title>
[0d62afe]3841<?dbhtml filename="compass.htm">
[b462168]3842
3843<Para>
3844Survex can read Compass survey data - both raw data (.DAT and .MAK
3845files) and processed survey data (.PLT and .PLF files).  You can even
[6af6d51]3846use <command>*include compassfile.dat</command> in a <filename>.svx</filename> file and
[b462168]3847it'll work!
3848</Para>
3849
3850<Para>
3851One point to note (this tripped us up!): station names in DAT files are
3852case sensitive and so Survex reads DAT files with the equivalent of
3853<command>*case preserve</command>.  The default in SVX files is
3854<command>*case lower</command>.  So this won't work:
3855
3856<programlisting>
3857*fix CE1 0 0 0
3858*include datfilewhichusesCE1.dat</programlisting>
3859
3860Because the CE1 in the *fix is actually interpreted as ce1.  This is
3861what you have to do:
3862
3863<programlisting>
3864*begin
3865*case preserve
3866*fix CE1 0 0 0
3867*include datfilewhichusesCE1.dat
3868*end</programlisting>
3869</Para>
3870
3871</Sect1>
[40647f5]3872
[e189be2]3873<Sect1><Title>Mailing List</Title>
[0d62afe]3874<?dbhtml filename="maillist.htm">
[40647f5]3875
[8ed91e39]3876<Para>The best way to contact the authors and other Survex users is the
3877Survex mailing list - for details visit:
3878<ulink url="http://survex.com/maillist.html">http://survex.com/maillist.html</ulink>
[e189be2]3879</Para>
[40647f5]3880
[6af6d51]3881<Para>We'd be delighted to hear how you get on with <Application>Survex</Application> and
[018db6f]3882welcome comments and suggestions for improvements.</Para>
3883
3884<Para>
[6af6d51]3885And we'd love you to contribute your skills to help make <Application>Survex</Application> even
[018db6f]3886better.  Point out areas of the documentation which could be made clearer, or
3887sections which are missing entirely.  Download test releases, try them out, and
3888let us know if you find problems or have suggestions for improvements.
3889If there's no translation to your language, you could provide one.
[6c33e75]3890Or if you're a developer, <emphasis>"Say it with code"</emphasis>.  There's
[018db6f]3891plenty to do, so feel free to join in.
3892</Para>
3893
[e189be2]3894</Sect1>
3895
[375f7f6]3896<Sect1><Title>Future Developments</Title>
[0d62afe]3897<?dbhtml filename="future.htm">
[40647f5]3898
3899<Para>
[6af6d51]3900Now that <Application>Survex</Application> has reached version 1.0, we are continuing progress
[b462168]3901towards version 2, in a series of steps, evolving out of
3902Survex 1.0.  The GUI framework is being based on aven, with
[6048971]3903the printer drivers and other utility programs being pulled in
3904and integrated into the menus.</Para>
3905
[6af6d51]3906<Para>Aven is built on <Application>wxWidgets</Application>, which means that it can easily support
[8ed91e39]3907Unix, Microsoft Windows, and Mac OS X.</Para>
[6048971]3908
[b462168]3909<Para>More information on our plans is on the <ulink
[6af6d51]3910url="http://survex.com/">web site</ulink>.
[e189be2]3911</Para>
3912
[647407d]3913</Sect1>
[375f7f6]3914
[6eadc5b]3915</article>
Note: See TracBrowser for help on using the repository browser.