source: git/doc/manual.sgml @ 820eb08

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 820eb08 was 820eb08, checked in by Olly Betts <olly@…>, 9 years ago

NEWS,configure.ac,doc/manual.sgml: Update for 1.2.21.

  • Property mode set to 100644
File size: 98.6 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>
[820eb08]85  <Title><Application>Survex</Application> <!--VERSION-->1.2.21 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
[a3f8737]147under the Loser Plateau in Austria (over 22,000 survey legs, and over
148120km of underground survey data). This can all be processed in around
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>
[6af6d51]394  Process file with cavern 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.
[38335b7]603<command>cavern -p</command>) and long (two dashes followed by one or more words e.g.
604<command>cavern --percentage</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
[e189be2]799</Sect2>
800
801<Sect2><Title>Numeric fields</Title>
[c1573d8]802
803<Para>[&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;integer part&gt; [ &lt;DECIMAL&gt;
[40647f5]804[ &lt;decimal fraction&gt; ] ]
[e189be2]805</Para>
806
[40647f5]807<Para>
808or [&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;DECIMAL&gt; &lt;dec fraction&gt;
[e189be2]809</Para>
810
[63dc4eb]811<Para><!-- FIXME: put informal description first -->
[a7e3295]812i.e. optional PLUS or MINUS sign in front, with
813optional DECIMAL character (default '.'), which may be
[40647f5]814embedded, leading or trailing. No spaces are allowed between the
815various elements.
[e189be2]816</Para>
817
[40647f5]818<Para>
[0706076]819All of these are valid examples: +47, 23, -22, +4.5, 1.3, -0.7, +.15, .4,
[40647f5]820-.05
[e189be2]821</Para>
[40647f5]822
[e189be2]823</Sect2>
824
825<Sect2><Title>Accuracy</Title>
[c1573d8]826
[ff003b3]827<Para>Accuracy assessments may be provided or defaulted for any survey
828leg. These determine the distribution of loop closure errors over the
[c1573d8]829legs in the loop. See *SD for more information.
[e189be2]830</Para>
831
832</Sect2>
[40647f5]833
834<!--
[e189be2]835<Sect2><Title>Survey Coordinate Range</Title>
[40647f5]836
[e189be2]837<Para>
[40647f5]838If we store distances to nearest 10um (0.01mm) in 4 bytes, this
839gives a range of ~20 km. This method is currently not used, but
840has several advantages (data storage space [double uses 8 bytes
841- with my C compiler], speed (unless your FP chip works in parallel
[c1573d8]842with your CPU [e.g. the new Acorn FPU for the ARM], and numerical
[40647f5]843accuracy [compared to using floats at least]) and so may be adopted
844in future). Nearest 0.1mm gives -200 km, which is enough for most
845people, but may mean rounding errors become significant.
[e189be2]846</Para>
847
[40647f5]848<Para>
[6aef4f1]849I will have to do some sums...
[e189be2]850</Para>
851
852</Sect2>
853
[40647f5]854-->
855
[f9dc4a0]856<Sect2><Title>Cavern Commands</Title>
[c1573d8]857
[6af6d51]858<Para>Commands in <filename>.svx</filename> files are introduced by an asterisk
[38335b7]859(by default - this can be changed using the <command>set</command> command).
[e189be2]860</Para>
[c1573d8]861
862<Para>The commands are documented in a common format:
[e189be2]863</Para>
[c1573d8]864
[a7e3295]865<!-- FIXME: make this a RefGroup (or whatever that's called) of RefEntry-s? -->
[c1573d8]866<itemizedlist>
[e189be2]867<listitem><para>Command Name</para></listitem>
868<listitem><para>Syntax</para></listitem>
869<listitem><para>Example</para></listitem>
[ea52d7e]870<listitem><para>Validity</para></listitem>
[1a50c3c]871<!-- FIXME
872anywhere, in a block, at start of a block, after a begin (for *end)
873-->
[e189be2]874<listitem><para>Description</para></listitem>
875<listitem><para>Caveats</para></listitem>
876<listitem><para>See Also</para></listitem>
[1a50c3c]877<!-- FIXME
878"Usefulness" - or status maybe?
879deprecated, esoteric (*set), useful, vital
880-->
[c1573d8]881</itemizedlist>
882
[dcbcae0]883<Sect3><Title>ALIAS</Title>
884
885<VariableList>
886
887<VarListEntry><Term>Syntax</Term>
888
889<listitem><Para>*alias station &lt;alias&gt; [&lt;target&gt;]</Para></listitem>
890
891</VarListEntry>
892
893<VarListEntry><Term>Example</Term>
894
895<listitem>
896<Para>
897<programlisting>
898*begin parsons_nose
899*alias station - ..
9001 2 12.21 073 -12
9012 -  4.33 011 +02
9022 -  1.64 180 +03
9032 3  6.77 098 -04
904*end parsons_nose</programlisting>
905</Para>
906</listitem>
907
908</VarListEntry>
909
910<VarListEntry><Term>Description</Term>
911
912<listitem><Para>*alias allows you to map a station name which appears in
913the survey data to a different name internally.  At present, you can only
914create an alias of '-' to '..', which is intended to support the pocket topo
915style notation of '-' being a splay to an anonymous point on the cave wall.
916And you can unalias '-' with '*alias station -'.
917</Para>
918
919<Para>
920Aliases are scoped by *begin/*end blocks - when a *end is reached, the aliases
921in force at the corresponding begin are restored.
922</Para>
923
924<Para>
925*alias was added in Survex 1.2.7.
926</Para></listitem>
927
928</VarListEntry>
929
930<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
931
932<VarListEntry><Term>See Also</Term>
933
934<listitem><Para>*begin, *end</Para></listitem>
935
936</VarListEntry>
937
938</VariableList>
939
940</Sect3>
941
[e189be2]942<Sect3><Title>BEGIN</Title>
[c1573d8]943
944<VariableList>
945
[e189be2]946<VarListEntry><Term>Syntax</Term>
[c1573d8]947
[ea52d7e]948<listitem><Para>*begin [&lt;survey&gt;]</Para></listitem>
[c1573d8]949
[e189be2]950</VarListEntry>
951
952<VarListEntry><Term>Example</Term>
[c1573d8]953
954<listitem>
[0706076]955<Para>
[c1573d8]956<programlisting>
957*begin littlebit
9581 2 10.23 106 -02
9592 3  1.56 092 +10
960*end littlebit</programlisting>
961
962<programlisting>
963; length of leg across shaft estimated
964*begin
965*sd tape 2 metres
9669 10 6.   031 -07
967*end</programlisting>
[0706076]968</Para>
[e189be2]969</listitem>
970
971</VarListEntry>
972
973<VarListEntry><Term>Description</Term>
[c1573d8]974
[ea52d7e]975<listitem><Para>*begin stores the current values of the current settings
976such as instrument calibration, data format, and so on.
977These stored values are restored after the corresponding *end.
978If a survey name is given, this is used inside the *begin/*end block,
979and the corresponding *end should have the same survey name.
980*begin/*end blocks may be nested to indefinite depth.
981</Para></listitem>
[e189be2]982
983</VarListEntry>
[c1573d8]984
[e189be2]985<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
[c1573d8]986
[e189be2]987<VarListEntry><Term>See Also</Term>
[c1573d8]988
[e189be2]989<listitem><Para>*end, *prefix</Para></listitem>
990
991</VarListEntry>
[c1573d8]992
993</VariableList>
994
[e189be2]995</Sect3>
996
[0706076]997<Sect3><Title>CALIBRATE</Title>
[c1573d8]998
[0706076]999<VariableList>
1000
1001<VarListEntry><Term>Syntax</Term>
1002
1003<listitem>
[a7e3295]1004<Para>*calibrate &lt;quantity list&gt; &lt;zero error&gt; [&lt;scale&gt;]
[0706076]1005</Para>
1006<Para>*calibrate default
1007</Para>
1008</listitem>
1009
1010</VarListEntry>
1011
1012<VarListEntry><Term>Example</Term>
1013
1014<listitem>
1015<Para>
1016<programlisting>
1017*calibrate tape +0.3
1018</programlisting>
1019</Para>
1020</listitem>
1021
1022</VarListEntry>
1023
1024<VarListEntry><Term>Description</Term>
1025
1026<listitem>
[9e507547]1027
[be1a437]1028<Para>
[0706076]1029*calibrate is used to specify instrument calibrations.
[e189be2]1030</Para>
[c1573d8]1031
[be1a437]1032<Para>
1033&lt;quantity&gt; is one of TAPE|COMPASS|CLINO|COUNTER|DEPTH|DECLINATION|X|Y|Z
[e189be2]1034</Para>
[c1573d8]1035
[be1a437]1036<Para>
1037Several quantities can be given in &lt;quantity list&gt;
1038</Para>
1039
1040<Para>
1041Value = ( Reading - ZeroError ) * Scale    (Scale defaults to 1.0)
[e189be2]1042</Para>
[c1573d8]1043
[be1a437]1044<Para>
[ca7fb22]1045You need to be careful about the sign of the ZeroError. The value of
1046ZeroError is what the the instrument would read when measuring a
1047reading which should be zero.  So for example, if your tape measure
1048has the end missing, and you are using the 30cm mark to take all
1049measurements from, then a zero distance would be measured as 30cm and
1050you would correct this with:
[e189be2]1051</Para>
[c1573d8]1052
[be1a437]1053<programlisting>*CALIBRATE tape +0.3</programlisting>
1054
1055<Para>If you tape was too long, starting at -20cm (it does happen!)
1056then you can correct it with:
[e189be2]1057</Para>
[c1573d8]1058
[be1a437]1059<programlisting>*CALIBRATE tape -0.2</programlisting>
1060
[0706076]1061<Para>Note: ZeroError is irrelevant for Topofil counters and depth
1062gauges since pairs of readings are subtracted.
[be1a437]1063</Para>
1064
1065<Para>
1066The magnetic deviation varies from year to year and it is often
1067desirable to keep the compass zero error and the magnetic deviation
1068separate. cavern calculates the true bearing as follows:
1069</Para>
1070
1071<Para>
1072(magnetic bearing) = ((reading)-(compass zero err)) * (compass
1073scale factor)
1074</Para>
1075
1076<Para>
1077(true bearing) = ((bearing)-(declination zero err))
1078</Para>
1079
1080<Para>
1081The scale factor for DECLINATION must be 1.0, otherwise an error
[63dc4eb]1082is given. <!-- FIXME: practical example for declination -->
[be1a437]1083</Para>
1084
1085<Para>
1086The default is all quantities calibrated to scale factor 1.0,
1087zero error 0.0
1088</Para>
1089
[0706076]1090</listitem>
1091
1092</VarListEntry>
1093
1094<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1095
1096<VarListEntry><Term>See Also</Term>
1097
1098<listitem><Para>*units</Para></listitem>
1099
1100</VarListEntry>
1101
1102</VariableList>
1103
[be1a437]1104</Sect3>
1105
1106<Sect3><Title>CASE</Title>
1107
1108<VariableList>
1109
1110<VarListEntry><Term>Syntax</Term>
1111
[c57e9da]1112<listitem><para>*case preserve|toupper|tolower</para></listitem>
[be1a437]1113
1114</VarListEntry>
1115
1116<VarListEntry><Term>Example</Term>
1117
1118<listitem>
[0706076]1119<Para>
[be1a437]1120<programlisting>
1121*begin bobsbit
1122; Bob insists on using case sensitive station names
[c57e9da]1123*case preserve
[be1a437]11241 2   10.23 106 -02
11252 2a   1.56 092 +10
11262 2A   3.12 034 +02
11272 3    8.64 239 -01
1128*end bobsbit</programlisting>
[0706076]1129</Para>
[be1a437]1130</listitem>
1131
1132</VarListEntry>
1133
1134<VarListEntry><Term>Description</Term>
1135
1136<listitem><Para>*case determines how the case of letters in survey names is
1137handled.  By default all names are forced to lower case (which gives a case
1138insensitive match, but you can tell cavern to force to upper case, or leave
1139the case as is (in which case '2a' and '2A' will be regarded as different).
1140</Para></listitem>
1141
1142</VarListEntry>
1143
1144<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1145
1146<!-- <VarListEntry><Term>See Also</Term>
1147
1148<listitem><Para>*end, *prefix</Para></listitem>
1149
1150</VarListEntry>
1151-->
1152
1153</VariableList>
1154
1155<!-- FIXME - work this text in here or elsewhere
[c1573d8]1156
1157What I mean (though failed to express very well) is that a dataset without
1158this information isn't the same dataset (in general anyway).  For example:
1159
1160A1 a2 10.32 140 -05
1161a2 a3  4.91 041 -01
1162a1 a3  7.01 206  02
1163
1164is either a traverse of 3 legs or a (probably badly misclosed) loop.  If
1165these names are on the original survey notes, the surveyors ought to say
1166whether "A1" is the same as "a1" (although the usual case for using this
1167feature is probably for importing data from elsewhere).  Similarly for
1168truncation.  Whether a clino of +/-90 degrees (or +/-100 grad, etc) is
1169interpreted as a plumb is something that should have been noted in the cave
1170(unless it's implicit because it's standard practice for a survey project).
1171
1172It's a similar issue to calibration data in many ways.  You can argue it's
1173not part of "the survey", but without it the survey won't be the same shape,
1174and it's not useful to process the same survey with different settings for
1175compass calibration or name case sensitivity.
1176
1177>Clearly that is unhelpfully strict, but it is
1178>important to be semantically clear about what is 'data' and what is 'commands
1179>or meta-data' which describe what to do with/how to interpret that data.
1180
1181Think of the lines starting with a "*" as "command or meta-data".
1182
[3d5fb53]1183>The most-correct solution to this is (I believe) Martin Heller's idea about
[c1573d8]1184>including 'rules' in the datastream, but that's too big a subject for right
1185>now.
1186>
1187>The reason '-C' was made into a command-line option, was that it made very
1188>little sense to change it part way though a dataset. What exactly happens if
[375f7f6]1189>you suddenly tell cavern to become case-sensitive halfway through a run?
[c1573d8]1190
1191-C has always had 3 settings - "leave case alone", "force to lower", and
1192"force to upper".  It doesn't really mean "case sensitivity" but rather
1193something like "case processing".  So you can usefully change it during a
1194run.  So if my dataset treats "NoTableChamber" (so named because it was
1195lacking in furniture) as different from "NotableChamber" (which was notable
1196for other reasons) I can process it with a dataset from someone else which
1197needs to be treated as case insensitive like so:
1198
1199*begin my_cave
1200*include my_dataset
1201*end my_cave
1202
1203*equate my_cave.NoTableChamber.14 your_cave.linkpassage.13
1204
1205*begin your_cave
1206*case tolower
1207*include your_dataset
1208*end your_cave
1209
1210You may be thinking of -U<n>, which used to mean "only compare the first n
1211characters of station names", but that doesn't allow arbitrary datasets to
1212be processed together.
1213
1214So we changed it to mean "truncate station names to n characters", and
1215allowed it to be changed at any point, rather than being set once for the
1216whole run.
1217
1218-->
1219
[e189be2]1220</Sect3>
[f63df3e]1221
1222<Sect3><Title>COPYRIGHT</Title>
1223
1224<VariableList>
1225
1226<VarListEntry><Term>Syntax</Term>
1227
1228<listitem><Para>*copyright &lt;date&gt; &lt;text&gt;</Para></listitem>
1229
1230</VarListEntry>
1231
1232<VarListEntry><Term>Example</Term>
1233
1234<listitem>
[0706076]1235<Para>
[f63df3e]1236<programlisting>
1237*begin littlebit
1238*copyright 1983 CUCC
12391 2 10.23 106 -02
12402 3  1.56 092 +10
1241*end littlebit</programlisting>
[0706076]1242</Para>
[f63df3e]1243</listitem>
1244
1245</VarListEntry>
1246
[ea52d7e]1247<VarListEntry><Term>Validity</Term>
1248
1249<listitem><Para>valid at the start of a *begin/*end block.
1250</Para></listitem>
1251
1252</VarListEntry>
1253
[f63df3e]1254<VarListEntry><Term>Description</Term>
1255
1256<listitem><Para>*copyright allow the copyright information to be
1257stored in a way that can be automatically collated.
1258</Para></listitem>
1259
1260</VarListEntry>
1261
1262<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1263
1264<VarListEntry><Term>See Also</Term>
1265
[0706076]1266<listitem><Para>*begin</Para></listitem>
[f63df3e]1267
1268</VarListEntry>
1269
1270</VariableList>
1271
1272</Sect3>
[e189be2]1273
[abd0310]1274<Sect3><Title>CS</Title>
1275
1276<VariableList>
1277
1278<VarListEntry><Term>Syntax</Term>
1279
[ad5bd05]1280<listitem><Para>*cs [out] &lt;coordinate system&gt;</Para></listitem>
[abd0310]1281
1282</VarListEntry>
1283
1284<VarListEntry><Term>Example</Term>
1285
1286<listitem>
1287<Para>
1288<programlisting>
1289*cs UTM60S
1290*fix beehive 313800 5427953 20</programlisting>
1291</Para>
[ad5bd05]1292
1293<Para>
1294<programlisting>
1295; Output in the coordinate system used in the Totes Gebirge in Austria
[935824f]1296*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]1297</Para>
[abd0310]1298</listitem>
1299
1300</VarListEntry>
1301
1302<VarListEntry><Term>Description</Term>
1303
[ad5bd05]1304<listitem><Para>*cs allows the coordinate systems used for fixed points and for
1305processed survey data to be specified.
[abd0310]1306</Para>
1307
1308<Para>
[b102633]1309*cs was added in Survex 1.2.14, but handling of fixed points specified with
1310latitude and longitude didn't work until 1.2.21.  And *fix with standard
1311deviations specified also didn't work until 1.2.21.
1312</Para>
1313
1314<Para>
1315The currently supported coordinate systems are:
[ad5bd05]1316</Para>
1317
[16734b2]1318<Para>CUSTOM followed by a PROJ4 string (like in the example above).</Para>
1319
[ddd24f28]1320<Para>EPSG: followed by a positive integer code.  EPSG codes cover most
1321coordinate systems in use, and PROJ supports many of these.  The website
1322<ulink url="http://epsg.io/">http://epsg.io/</ulink> is a useful resource for
1323finding the EPSG code you want.  Supported since Survex 1.2.15.</Para>
1324
1325<Para>ESRI: followed by a positive integer code.  ESRI codes are used by
1326ArcGIS to specify coordinate systems (in a similar way to EPSG codes), and PROJ
1327supports many of them.  Supported since Survex 1.2.15.</Para>
1328
1329<Para>EUR79Z30 for UTM zone 30, EUR79 datum.  Supported since Survex 1.2.15.
1330</Para>
1331
[5598e2c]1332<Para>IJTSK for the modified version of the Czechoslovak S-JTSK system where
1333the axes point East and North.  Supported since Survex 1.2.15.</Para>
1334
1335<Para>IJTSK03 for a variant of IJTSK.  Supported since Survex 1.2.15.</Para>
1336
[10af28e]1337<Para>JTSK for the Czechoslovak S-JTSK system.  The axes on this point West
1338and South, so it's not support as an output coordinate system.
1339Supported since Survex 1.2.16.</Para>
1340
1341<Para>JTSK03 for a variant of JTSK.  Supported since Survex 1.2.16.</Para>
1342
[16734b2]1343<Para>LONG-LAT for longitude/latitude.  The WGS84 datum is assumed.  Supported
1344since Survex 1.2.15.</Para>
1345
[a4cd4eea]1346<Para>OSGB: followed by a two letter code for the UK Ordnance Survey National
1347Grid.  The first letter should be 'H', 'N', 'O', 'S' or 'T'; the second any
1348letter except 'I'.  Supported since Survex 1.2.15.</Para>
1349
[2076d59]1350<Para>S-MERC for the "Web Mercator" spherical mercator projection, used by
1351online map sites like OpenStreetMap, Google maps, Bing maps, etc.  Supported
1352since Survex 1.2.15.
1353</Para>
1354
[16734b2]1355<Para>UTM followed by a zone number (1-60), optionally followed by "N" or "S"
1356(default is North).  The WGS84 datum is assumed.</Para>
1357
[ad5bd05]1358<Para>
1359By default, Survex works in an unspecified coordinate system (and this was the
1360only option before *cs was added).  However, it's useful for coordinate system
1361which the processed survey data is in to be specified if you want to use the
1362processed data in ways which required knowing the coordinate system (such as
1363exporting a list of entrances for use in a GPS).  You can now do this by using
1364"*cs out".
1365</Para>
1366
1367<Para>
1368It is also useful to be able to take coordinates for fixed points in whatever
1369coordinate system you receive them in and put them directly into Survex, rather
1370than having to convert with an external tool.  For example, you may have your
1371GPS set to show coordinates in UTM with the WGS84 datum, even though you want
1372the processed data to be in some local coordinate system.  And someone else
1373may provide GPS coordinates in yet another coordinate system.  You just need
1374to set the appropriate coordinate system with "*cs" before each group of "*fix"
1375commands in a particular coordinate system.
1376</Para>
1377
1378<Para>
1379If you're going to make use of "*cs", then the coordinate system must be
1380specified for everything, so a coordinate system must be in effect for all
1381"*fix" commands, and you must set the output coordinate system before any
1382points are fixed.
1383</Para>
1384
1385<Para>
1386Also, if "*cs" is in use, then you can't omit the coordinates in a "*fix"
1387command, and a fixed point won't be invented if none exists.
1388</Para>
1389
1390<Para>
1391If you use "*cs out" more than once, the second and subsequent commands are
1392silently ignored - this makes it possible to combine two datasets with
1393different "*cs out" settings without having to modify either of them.
1394</Para>
1395
1396<Para>
1397Something to be aware of with "*cs" is that altitudes are currently assumed to
1398be "height above the ellipsoid", whereas GPS units typically give you "height
1399above sea level", or more accurately "height above a particular geoid".  This
1400is something we're looking at how best to address, but you shouldn't need to
1401worry about it if your fixed points are in the same coordinate system as your
1402output, or if they all use the same ellipsoid.  For a more detailed discussion
1403of this, please see: http://expo.survex.com/handbook/survey/coord.htm
1404</Para>
1405</listitem>
[abd0310]1406
1407</VarListEntry>
1408
1409<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1410
1411<VarListEntry><Term>See Also</Term>
1412
1413<listitem><Para>*fix</Para></listitem>
1414
1415</VarListEntry>
1416
1417</VariableList>
1418
1419</Sect3>
[ea52d7e]1420<Sect3><Title>DATA</Title>
1421
1422<VariableList>
1423
1424<VarListEntry><Term>Syntax</Term>
[40647f5]1425
[c746b4d]1426<listitem><Para>*data &lt;style&gt; &lt;ordering&gt;</Para></listitem>
[6114207]1427<!-- BACKCOMPASS BACKCLINO -->
[ea52d7e]1428</VarListEntry>
1429
1430<VarListEntry><Term>Example</Term>
1431
1432<listitem>
[40647f5]1433<Para>
[ea52d7e]1434<programlisting>
1435*data normal from to compass tape clino</programlisting>
[e189be2]1436</Para>
[c746b4d]1437
1438<Para>
1439<programlisting>
1440*data normal station ignoreall newline compass tape clino</programlisting>
1441</Para>
[ea52d7e]1442</listitem>
1443
1444</VarListEntry>
[e189be2]1445
[ea52d7e]1446<VarListEntry><Term>Description</Term>
[e189be2]1447
[ea52d7e]1448<listitem><Para>
[b458119]1449&lt;style&gt; = DEFAULT|NORMAL|DIVING|CARTESIAN|TOPOFIL|CYLPOLAR|NOSURVEY|PASSAGE
[e189be2]1450</Para>
1451
[40647f5]1452<Para>
[6114207]1453&lt;ordering&gt; = ordered list of instruments - which are valid depends on the
1454style.
1455</Para>
1456
[107b8bd]1457<Para>
1458In Survex 1.0.2 and later, TOPOFIL is simply a synonym for NORMAL, left in to
1459allow older data to be processed without modification.  Use the name NORMAL
1460by preference.
1461</Para>
1462
[6114207]1463<Para>
1464There are two variants of each style - interleaved and non-interleaved.
1465Non-interleaved is "one line per leg", interleaved has a line for the data
1466shared between two legs (e.g. STATION=FROM/TO, DEPTH=FROMDEPTH/TODEPTH,
1467COUNT=FROMCOUNT/TOCOUNT).  Note that not all interleavable readings have to
1468be interleaved - for example:
1469
1470<programlisting>
1471*data diving station newline fromdepth compass tape todepth</programlisting>
1472
1473In addition, interleaved data can have a DIRECTION reading, which can be "F"
1474for a foresight or "B" for a backsight.
[e189be2]1475</Para>
1476
[107b8bd]1477<Para>
1478In NORMAL, DIVING, and CYLPOLAR data styles, TAPE may be replaced by
1479FROMCOUNT/TOCOUNT (or COUNT in interleaved data) to allow processing of surveys
1480performed with a Topofil instead of a tape.
1481</Para>
1482
[c746b4d]1483<VariableList>
[e189be2]1484
[c746b4d]1485<VarListEntry><Term>DEFAULT</Term>
[6114207]1486<listitem><Para>Select the default data style and ordering (NORMAL style, ordering: from to tape compass clino).</Para></listitem>
[c746b4d]1487</VarListEntry>
[e189be2]1488
[c746b4d]1489<VarListEntry><Term>NORMAL</Term>
[6114207]1490<listitem><Para>The usual tape/compass/clino centreline survey.
[b14f44f]1491For non-interleaved data the allowed readings are:
1492FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO;
1493for interleaved data the allowed readings are:
1494STATION DIRECTION TAPE COMPASS CLINO BACKCOMPASS BACKCLINO.
1495The CLINO/BACKCLINO reading is not required - if it's not given, the vertical
1496standard deviation is taken to be proportional to the tape measurement.
1497Alternatively, individual clino readings can be given as OMIT (default "-")
1498which allows for data where only some clino readings are missing.
[6114207]1499E.g.:
1500
1501<programlisting>
1502*data normal from to compass clino tape
15031 2 172 -03 12.61</programlisting>
1504
1505<programlisting>
1506*data normal station newline direction tape compass clino
15071
1508 F 12.61 172 -03
15092</programlisting>
1510
[13ba257]1511<programlisting>
[107b8bd]1512*data normal from to compass clino fromcount tocount
[13ba257]15131 2 172 -03 11532 11873</programlisting>
1514
1515<programlisting>
[107b8bd]1516*data normal station count newline direction compass clino
[13ba257]15171 11532
1518 F 172 -03
15192 11873</programlisting>
1520 
1521</Para></listitem>
1522</VarListEntry>
1523
[c746b4d]1524<VarListEntry><Term>DIVING</Term>
1525<listitem><Para>
[eb48e2b]1526An underwater survey where the vertical information is from a diver's depth
[1ff6864]1527gauge.  This style can also be also used for an above-water survey where the
1528altitude is measured with an altimeter.  DEPTH is defined as the altitude (Z)
1529so increases upwards by default.  So for a diver's depth gauge, you'll need to
[b14f44f]1530use *CALIBRATE with a negative scale factor (e.g. *calibrate depth 0 -1).
1531</Para>
1532
1533<Para>For non-interleaved data the allowed readings are:
[aacc3e6]1534FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO FROMDEPTH TODEPTH DEPTHCHANGE (the vertical
[b14f44f]1535can be given as readings at each station, (FROMDEPTH/TODEPTH) or as a change
1536along the leg (DEPTHCHANGE)).</Para>
1537
[aacc3e6]1538<Para>Survex 1.2.20 and later allow an optional CLINO and/or BACKCLINO reading
1539in DIVING style.  At present these extra readings are checked for syntactic
1540validity, but are otherwise ignored.  The intention is that a future version
1541will check them against the other readings to flag up likely blunders, and
1542average with the slope data from the depth gauge and tape reading.</Para>
1543
[b14f44f]1544<Para>For interleaved data the allowed readings are:
1545STATION DIRECTION TAPE COMPASS BACKCOMPASS DEPTH DEPTHCHANGE.
1546(the vertical change can be given as a reading at the station (DEPTH) or as a change along the leg (DEPTHCHANGE)).
[6114207]1547
1548<programlisting>
1549*data diving from to tape compass fromdepth todepth
15501 2 14.7 250 -20.7 -22.4</programlisting>
1551
1552<programlisting>
1553*data diving station depth newline tape compass
15541 -20.7
1555 14.7 250
15562 -22.4</programlisting>
1557
1558<programlisting>
1559*data diving from to tape compass depthchange
15601 2 14.7 250 -1.7</programlisting>
[b14f44f]1561</Para>
1562</listitem>
[c746b4d]1563</VarListEntry>
1564
1565<VarListEntry><Term>CARTESIAN</Term>
1566<listitem><Para>
[6114207]1567Cartesian data style allows you to specify the (x,y,z) changes between
1568stations.  It's useful for digitising surveys where the original survey
1569data has been lost and all that's available is a drawn up version.
1570
1571<programlisting>
1572*data cartesian from to northing easting altitude
15731 2 16.1 20.4 8.7</programlisting>
1574
1575<programlisting>
1576*data cartesian station newline northing easting altitude
15771
1578 16.1 20.4 8.7
15792</programlisting>
1580
[e74904e]1581<!--FIXME: dx dy dz-->
[e189be2]1582</Para>
1583
[e74904e]1584<Note><Para>
1585Cartesian data are relative to <emphasis>true</emphasis> North not
1586<emphasis>magnetic</emphasis> North (i.e. they are unaffected by
1587<command>*calibrate declination</command>).
1588</Para></Note>
[ce92903]1589</listitem>
[c746b4d]1590</VarListEntry>
[e74904e]1591
[13ba257]1592<VarListEntry><Term>CYLPOLAR</Term>
[c746b4d]1593<listitem><Para>
[b14f44f]1594A CYLPOLAR style survey is very similar to a diving survey, except that the tape
[13ba257]1595is always measured horizontally rather than along the slope of the leg.
[6114207]1596
1597<programlisting>
[13ba257]1598*data cypolar from to tape compass fromdepth todepth
15991 2 9.45 311 -13.3 -19.0</programlisting>
[6114207]1600
1601<programlisting>
[13ba257]1602*data cylpolar station depth newline tape compass
16031 -13.3
1604 9.45 311
16052 -19.0</programlisting>
[e189be2]1606
[13ba257]1607<programlisting>
1608*data cylpolar from to tape compass depthchange
16091 2 9.45 311 -5.7</programlisting>
[c746b4d]1610</Para></listitem>
1611</VarListEntry>
[9e507547]1612
[c746b4d]1613<VarListEntry><Term>NOSURVEY</Term>
1614<listitem><Para>
[6114207]1615A NOSURVEY survey doesn't have any measurements - it merely indicates that
[13ba257]1616there is line of sight between the pairs of stations.
1617
1618<programlisting>
1619*data nosurvey from to
16201 7
16215 7
16229 11</programlisting>
1623
1624<programlisting>
1625*data nosurvey station
16261
16277
16285
1629
1630*data nosurvey station
16319
163211</programlisting>
[c746b4d]1633</Para></listitem>
1634</VarListEntry>
[e189be2]1635
[b458119]1636<VarListEntry><Term>PASSAGE</Term>
1637<listitem><Para>
1638This survey style defines a 3D "tube" modelling a passage in the cave.
1639The tube uses the survey stations listed in the order listed.  It's
1640permitted to use survey stations which aren't directly linked by
1641the centre-line survey.  This can be useful - sometimes the centreline
1642will step sideways or up/down to allow a better sight for the next
1643leg and you can ignore the extra station.  You can also define tubes
1644along unsurveyed passages, akin to "nosurvey" legs in the centreline
1645data.</Para>
1646
1647<Para>This means that you need to split off side passages into seperate
1648tubes, and hence separate sections of passage data, starting with
1649a new *data command.</Para>
1650
[40647f5]1651<Para>
[b458119]1652Simple example of how to use this data style (note the use of ignoreall
1653to allow a free-form text description to be given):
1654
1655<programlisting>
1656*data passage station left right up down ignoreall
16571  0.1 2.3 8.0 1.4  Sticking out point on left wall
16582  0.0 1.9 9.0 0.5  Point on left wall
16593  1.0 0.7 9.0 0.8  Highest point of boulder
1660</programlisting>
[e189be2]1661</Para>
[ce92903]1662</listitem>
[b458119]1663</VarListEntry>
[c746b4d]1664</VariableList>
[e189be2]1665
[40647f5]1666<Para>
[c746b4d]1667IGNORE skips a field (it may be used any number of times),
[13ba257]1668and IGNOREALL may be used last to ignore the rest of the data line.
[e189be2]1669</Para>
1670
[c746b4d]1671<Para>
1672LENGTH is a synonym for TAPE; BEARING for COMPASS; GRADIENT for CLINO; COUNT for COUNTER.<!--FIXME : others?-->
1673</Para>
1674
[e74904e]1675<Para>
1676The units of each quantity may be set with the UNITS command.
1677</Para>
1678
1679<!-- FIXME: plumbed diving legs -->
1680
1681<!--FIXME:
1682<Para>
[f3ed07f]1683Uses for CYLPOLAR:
1684Perhaps a Grade 3 survey, or when surveying with a level and stick (?)
1685[note - UBSS use it for the old County Clare data]
[e74904e]1686</Para>
1687-->
1688
[ea52d7e]1689</listitem>
1690
1691</VarListEntry>
1692
1693</VariableList>
1694
[e189be2]1695</Sect3>
1696
[e74904e]1697<Sect3><Title>DATE</Title>
1698<VariableList>
1699
1700<VarListEntry><Term>Syntax</Term>
1701
1702<listitem><Para>*date &lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]][-&lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]]]</Para></listitem>
1703
1704</VarListEntry>
1705
1706<VarListEntry><Term>Example</Term>
1707
1708<listitem>
1709<Para>
1710<programlisting>
1711*date 2001</programlisting>
1712
1713<programlisting>
1714*date 2000.10</programlisting>
1715
1716<programlisting>
1717*date 1987.07.27</programlisting>
1718
1719<programlisting>
1720*date 1985.08.12-1985.08.13</programlisting>
1721</Para>
1722</listitem>
1723
1724</VarListEntry>
1725
1726<VarListEntry><Term>Validity</Term>
1727
1728<listitem><Para>valid at the start of a *begin/*end block.
1729</Para></listitem>
1730
1731</VarListEntry>
1732
1733<VarListEntry><Term>Description</Term>
1734
1735<listitem><Para>
1736*date specifies the date that the survey was done.  A range of dates
1737can be specified (useful for overnight or multi-day surveying trips).
1738</Para></listitem>
1739
1740</VarListEntry>
1741
1742<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1743
1744<VarListEntry><Term>See Also</Term>
1745
1746<listitem><Para>*begin, *instrument, *team</Para></listitem>
1747
1748</VarListEntry>
1749
1750</VariableList>
1751
1752</Sect3>
1753
[ea52d7e]1754<Sect3><Title>DEFAULT</Title>
[e189be2]1755
[ea52d7e]1756<VariableList>
1757
1758<VarListEntry><Term>Syntax</Term>
1759
1760<listitem><Para>*default &lt;settings list&gt;|all</Para></listitem>
1761
1762</VarListEntry>
1763
1764<VarListEntry><Term>Description</Term>
1765
1766<listitem><Para>
1767The valid settings are CALIBRATE, DATA, and UNITS.
[e189be2]1768</Para>
1769
[40647f5]1770<Para>
[ea52d7e]1771*default restores defaults for given settings.  This command is deprecated -
1772you should instead use: *calibrate default, *data default, *units default.
1773</Para></listitem>
1774
1775</VarListEntry>
1776
1777<VarListEntry><Term>See Also</Term>
1778
1779<listitem><Para>*calibrate, *data, *units</Para></listitem>
1780
1781</VarListEntry>
1782
1783</VariableList>
1784
1785</Sect3>
1786
1787<Sect3><Title>END</Title>
1788
1789<VariableList>
1790
1791<VarListEntry><Term>Syntax</Term>
1792
1793<listitem><Para>*end [&lt;survey&gt;]</Para></listitem>
1794
1795</VarListEntry>
1796
1797<VarListEntry><Term>Validity</Term>
1798
1799<listitem><Para>valid for closing a block started by *begin in the same file.
1800</Para></listitem>
1801
1802</VarListEntry>
1803
1804<VarListEntry><Term>Description</Term>
1805
1806<listitem><Para>
1807Closes a block started by *begin.
1808</Para></listitem>
1809
1810</VarListEntry>
1811
1812<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1813
1814<VarListEntry><Term>See Also</Term>
1815
1816<listitem><Para>*begin</Para></listitem>
1817
1818</VarListEntry>
1819
1820</VariableList>
[e189be2]1821
1822</Sect3>
1823
[ea52d7e]1824<Sect3><Title>ENTRANCE</Title>
1825
1826<VariableList>
1827
1828<VarListEntry><Term>Syntax</Term>
1829
1830<listitem><Para>*entrance &lt;station&gt;</Para></listitem>
1831
1832</VarListEntry>
1833
1834<VarListEntry><Term>Example</Term>
[e189be2]1835
[ea52d7e]1836<listitem>
[40647f5]1837<Para>
[ea52d7e]1838<programlisting>
1839*entrance P163</programlisting>
1840</Para>
1841</listitem>
1842
1843</VarListEntry>
1844
1845<VarListEntry><Term>Description</Term>
1846
1847<listitem><Para>
1848*entrance sets the <emphasis>entrance</emphasis> flag for a station.
1849This information is used by aven to allow entrances to be highlighted.
[e74904e]1850</Para>
1851
1852<!-- FIXME:
1853(could be inferred from surface/ug join, but better to specify because
1854of caves with no surf svy (or no underground survey)
1855and also situations in which multiple surveys leave through an entrance)
1856-->
1857</listitem>
[ea52d7e]1858
1859</VarListEntry>
1860
1861<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1862
1863<!-- <VarListEntry><Term>See Also</Term>
1864
1865<listitem><Para></Para></listitem>
1866
1867</VarListEntry>
1868-->
1869
1870</VariableList>
1871
[e189be2]1872</Sect3>
1873
[ea52d7e]1874<Sect3><Title>EQUATE</Title>
1875
1876<VariableList>
1877
1878<VarListEntry><Term>Syntax</Term>
1879
1880<listitem><Para>*equate &lt;station&gt; &lt;station&gt;...</Para></listitem>
[e189be2]1881
[ea52d7e]1882</VarListEntry>
1883
1884<VarListEntry><Term>Example</Term>
1885
1886<listitem>
[40647f5]1887<Para>
[ea52d7e]1888<programlisting>
1889*equate chosspot.1 triassic.27</programlisting>
[e189be2]1890</Para>
[ea52d7e]1891</listitem>
1892
1893</VarListEntry>
[e189be2]1894
[ea52d7e]1895<VarListEntry><Term>Description</Term>
1896
1897<listitem><Para>
1898*equate specifies that the station names in the list refer to the
1899same physical survey station. An error is given if there is only one station
1900listed.
1901</Para>
1902
1903<!-- FIXME:
[40647f5]1904<Para>
[ea52d7e]1905I think this is preferable to using:
[e189be2]1906</Para>
[6aef4f1]1907
1908<programlisting> a b 0.00   0   0</programlisting>
1909
[e189be2]1910<Para>
[6aef4f1]1911as EQUATE does not add in an extra position error. It is also clearer than
1912substituting in the original name wherever passages are linked. If you
1913disagree, you can always use one of the other methods!
[e189be2]1914</Para>
[ea52d7e]1915-->
1916</listitem>
1917
1918</VarListEntry>
1919
1920<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1921
[eb48e2b]1922<VarListEntry><Term>See Also</Term>
[ea52d7e]1923
[eb48e2b]1924<listitem><Para>*infer equates</Para></listitem>
[ea52d7e]1925
1926</VarListEntry>
1927
1928</VariableList>
[e189be2]1929
1930</Sect3>
[6aef4f1]1931
[6048971]1932<Sect3><Title>EXPORT</Title>
[9e507547]1933
[6048971]1934<VariableList>
1935
1936<VarListEntry><Term>Syntax</Term>
1937
1938<listitem><Para>*export &lt;station&gt;...</Para></listitem>
1939
1940</VarListEntry>
1941
1942<VarListEntry><Term>Example</Term>
1943
[e74904e]1944<!-- FIXME better example -->
[6048971]1945<listitem>
[9e507547]1946<Para>
[6048971]1947<programlisting>
1948*export 1 6 17</programlisting>
[9e507547]1949</Para>
[6048971]1950</listitem>
[9e507547]1951
[6048971]1952</VarListEntry>
1953
1954<VarListEntry><Term>Validity</Term>
1955
1956<listitem><Para>valid at the start of a *begin/*end block.
1957</Para></listitem>
1958
1959</VarListEntry>
1960
1961<VarListEntry><Term>Description</Term>
1962
1963<listitem><Para>
1964*export marks the stations named as referable to from the enclosing
1965survey.  To be able to refer to a station from a survey several levels
[4f0b498]1966above, it must be exported from each enclosing survey.
[6048971]1967</Para>
1968
1969<!-- FIXME:
[9e507547]1970<Para>
[6048971]1971I think this is preferable to using:
[9e507547]1972</Para>
1973
[6048971]1974<programlisting> a b 0.00   0   0</programlisting>
1975
1976<Para>
1977as EQUATE does not add in an extra position error. It is also clearer than
1978substituting in the original name wherever passages are linked. If you
1979disagree, you can always use one of the other methods!
1980</Para>
1981-->
1982</listitem>
1983
1984</VarListEntry>
1985
1986<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1987
1988<VarListEntry><Term>See Also</Term>
1989
[eb48e2b]1990<listitem><Para>*begin, *infer exports</Para></listitem>
[6048971]1991
1992</VarListEntry>
1993
1994</VariableList>
1995
[9e507547]1996</Sect3>
1997
[6048971]1998<Sect3><Title>FIX</Title>
1999
2000<VariableList>
2001
2002<VarListEntry><Term>Syntax</Term>
2003
2004<listitem><Para>*fix &lt;station&gt; [reference]
[dab6a62]2005 [ &lt;x&gt; &lt;y&gt; &lt;z&gt;
2006   [ &lt;x std err&gt; &lt;y std err&gt; &lt;z std err&gt;
[6048971]2007     [ &lt;cov(x,y)&gt; &lt;cov(y,z)&gt; &lt;cov(z,x)&gt; ] ] ]
2008</Para></listitem>
[e189be2]2009
[6048971]2010</VarListEntry>
[e189be2]2011
[6048971]2012<VarListEntry><Term>Example</Term>
[e189be2]2013
[6048971]2014<listitem>
[40647f5]2015<Para>
[6048971]2016<programlisting>
2017*fix entrance.0 32768 86723 1760</programlisting>
2018
2019<programlisting>
2020*fix KT114_96 reference 36670.37 83317.43 1903.97</programlisting>
[e189be2]2021</Para>
[6048971]2022</listitem>
2023
2024</VarListEntry>
2025
2026<VarListEntry><Term>Description</Term>
[e189be2]2027
[6048971]2028<listitem>
[40647f5]2029<Para>
[a7e3295]2030*fix fixes the position of &lt;station&gt; at the given coordinates.
[ad5bd05]2031If you haven't specified the coordinate system with "*cs", you can
2032omit the position and it will default to (0,0,0).  The standard errors default
2033to zero (fix station exactly).  cavern will give an error if you attempt to fix
2034the same survey station twice at different coordinates, or a warning if you fix
2035it twice with matching coordinates.
[e189be2]2036</Para>
2037
[2109b07]2038<Para>
2039You can also specify just one standard error (in which case it is assumed
2040equal in X, Y, and Z) or two (in which case the first is taken as the
2041standard error in X and Y, and the second as the standard error in Z).
2042</Para>
2043
[dab6a62]2044<Para>
2045If you have covariances for the fix, you can also specify these - the
[f9dc4a0]2046order is cov(x,y) cov(y,z) cov(z,x).
2047</Para>
2048
2049<Para>
2050You can fix as many stations as you like - just use a *fix command for each
2051one.  Cavern will check that all stations are connected to
2052at least one fixed point so that co-ordinates can be calculated for all
2053stations.
[dab6a62]2054</Para>
2055
2056<Para>
2057By default cavern will warn about stations which have been FIX-ed but
2058not used otherwise.  This is unhelpful if you want to include a
2059standard file of benchmarks, some of which won't be used.
2060In this sort of situation, specify "REFERENCE" after the station name
2061in the FIX command to suppress this warning for a particular station.
[2109b07]2062</Para>
2063
[e74904e]2064<Note><Para>
[fe16ba3]2065X is Easting, Y is Northing, and Z is altitude.  This convention was chosen
2066since on a map, the horizontal (X) axis is usually East, and the vertical
2067axis (Y) North.  The choice of altitude (rather than depth) for Z is taken
2068from surface maps, and makes for less confusion when dealing with cave
2069systems with more than one entrance.  It also gives a right-handed
2070set of axes.
[e74904e]2071</Para></Note>
[6048971]2072
[ce92903]2073</listitem>
[6048971]2074</VarListEntry>
2075
2076<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2077
2078<!-- <VarListEntry><Term>See Also</Term>
2079
2080<listitem><Para></Para></listitem>
2081
2082</VarListEntry>
2083-->
2084
2085</VariableList>
2086
[e189be2]2087</Sect3>
2088
[6048971]2089<!--
2090<Sect3><Title></Title>
2091
2092<VariableList>
2093
2094<VarListEntry><Term>Syntax</Term>
[9e507547]2095
[6048971]2096<listitem><Para>*</Para></listitem>
2097
2098</VarListEntry>
2099
2100<VarListEntry><Term>Example</Term>
2101
2102<listitem>
2103<Para>
2104<programlisting>
2105*</programlisting>
2106</Para>
2107</listitem>
2108
2109</VarListEntry>
2110
2111<VarListEntry><Term>Description</Term>
2112
2113<listitem><Para>
2114</Para></listitem>
2115
2116</VarListEntry>
2117
2118<VarListEntry><Term>Caveats </Term> </VarListEntry>
2119
2120<VarListEntry><Term>See Also</Term>
2121
2122<listitem><Para></Para></listitem>
2123
2124</VarListEntry>
2125
2126</VariableList>
2127
2128</Sect3>
2129-->
2130
2131<Sect3><Title>FLAGS</Title>
2132
2133<VariableList>
2134
2135<VarListEntry><Term>Syntax</Term>
2136
2137<listitem><Para>*flags &lt;flags&gt;</Para></listitem>
2138
2139</VarListEntry>
2140
2141<VarListEntry><Term>Example</Term>
2142
2143<listitem>
[9e507547]2144<Para>
[6048971]2145<programlisting>
2146*flags duplicate not surface</programlisting>
[9e507547]2147</Para>
[6048971]2148</listitem>
2149
2150</VarListEntry>
2151
2152<VarListEntry><Term>Description</Term>
[9e507547]2153
[6048971]2154<listitem><Para>
2155*flags updates the current flag settings.
2156Flags not mentioned retain their previous state.  Valid flags
[3162ed8]2157are DUPLICATE, SPLAY, and SURFACE, and a flag may be preceded with NOT to
[9e507547]2158turn it off.
2159</Para>
2160
2161<Para>
2162Survey legs marked SURFACE are hidden from plots by default, and not
2163included in cave survey length calculations.  Survey legs marked as
[3162ed8]2164DUPLICATE or SPLAY are also not included in cave survey length
2165calculations; legs marked SPLAY are ignored by the extend program.
2166DUPLICATE is intended for the case when if you have two different
2167surveys along the same section of passage (for example to tie two
2168surveys into a permanent survey station); SPLAY is intended for
2169cases such as radial legs in a large chamber.
[9e507547]2170</Para>
[6048971]2171</listitem>
2172
2173</VarListEntry>
2174
2175<VarListEntry><Term>See Also</Term>
2176
2177<listitem><Para>*begin</Para></listitem>
2178
2179</VarListEntry>
2180
2181</VariableList>
[9e507547]2182
2183</Sect3>
2184
[6048971]2185<Sect3><Title>INCLUDE</Title>
2186
2187<VariableList>
2188
2189<VarListEntry><Term>Syntax</Term>
2190
2191<listitem><Para>*include &lt;filename&gt;</Para></listitem>
2192
2193</VarListEntry>
2194
2195<VarListEntry><Term>Example</Term>
[e189be2]2196
[6048971]2197<listitem>
[40647f5]2198<Para>
[6048971]2199<programlisting>
2200*include mission</programlisting>
2201
2202<programlisting>
2203*include "the pits"</programlisting>
[e189be2]2204</Para>
[6048971]2205</listitem>
[40647f5]2206
[6048971]2207</VarListEntry>
2208
2209<VarListEntry><Term>Description</Term>
2210
2211<listitem><Para>
2212*include processes &lt;filename&gt; as if it were inserted at this
[c1573d8]2213place in the current file. (i.e. The current settings are carried
[40647f5]2214into &lt;filename&gt;, and any alterations to settings in &lt;filename&gt;
[f9dc4a0]2215will be carried back again).  There's one exception to this (for
2216obscure historical reasons) which is that the survey prefix is
[cb69f36]2217restored upon return to the original file.  Since *begin and *end
[f9dc4a0]2218nesting cannot cross files, this can only make a difference if you
2219use the deprecated *prefix command.
2220</Para>
2221
2222<Para>If &lt;filename&gt; contains spaces, it must be enclosed in quotes.
[6048971]2223</Para>
[e189be2]2224
[6048971]2225<Para>An included file which does not have a complete path
[9e507547]2226is resolved relative to the directory which the parent file is in
[6af6d51]2227(just as relative HTML links do).  Cavern will try adding a <filename>.svx</filename>
[6e420ba]2228extension, and will also try translating "\" to "/".
2229And as a last
[9e507547]2230resort, it will try a lower case version of the filename (so if you
2231use Unix and someone sends you a DOS/Windows dataset with mismatched
[6af6d51]2232case, unzip it with "unzip -L" and UNIX cavern will process it).
[6048971]2233</Para>
[51c0677]2234
[f9dc4a0]2235<Para>
[63dc4eb]2236The depth to which you can nest
2237include files may be limited by the operating system
[f9dc4a0]2238you use.  Usually the limit is fairly high (>30), but if you want to be able to
[6af6d51]2239process your dataset with <Application>Survex</Application> on any supported platform, it
[f9dc4a0]2240would be prudent not to go overboard with nested include files.
2241</Para>
2242</listitem>
[6048971]2243</VarListEntry>
2244
2245</VariableList>
[40647f5]2246
[e189be2]2247</Sect3>
2248
[be1a437]2249<Sect3><Title>INFER</Title>
2250
2251<VariableList>
2252
2253<VarListEntry><Term>Syntax</Term>
2254
[3404462]2255<listitem>
2256<Para>*infer plumbs on|off</Para>
[be1a437]2257
[3404462]2258<Para>*infer equates on|off</Para>
[eb48e2b]2259
2260<Para>*infer exports on|off</Para>
[3404462]2261</listitem>
[be374fc]2262
[be1a437]2263</VarListEntry>
2264
2265<!--
2266<VarListEntry><Term>Example</Term>
2267
2268<listitem>
2269<programlisting>
2270</programlisting>
2271
2272</listitem>
2273
2274</VarListEntry>
2275-->
2276
2277<VarListEntry><Term>Description</Term>
2278
[3404462]2279<listitem>
2280<Para>"*infer plumbs on" tells cavern to interpret gradients of +/- 90
[be1a437]2281degrees as UP/DOWN (so it
2282will not apply the clino correction to them). This is useful when
2283the data has not been converted to have UP and DOWN in it.
2284</Para>
2285
[eb48e2b]2286<para>"*infer equates on" tells cavern to interpret a leg with
2287a tape reading of zero as a *equate.  this prevents tape corrections
[be374fc]2288being applied to them.
[eb48e2b]2289</para>
2290
2291<para>"*infer exports on" is necessary when you have a dataset which is
2292partly annotated with *export.  It tells cavern not to complain about
2293missing *export commands in part of the dataset.  Also stations which
2294were used to join surveys are marked as exported in the 3d file.
2295</para>
[be374fc]2296</listitem>
2297
[be1a437]2298</VarListEntry>
2299
2300<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2301
2302<!--
2303<VarListEntry><Term>See Also</Term>
2304
2305<listitem><Para>*end, *prefix</Para></listitem>
2306
2307</VarListEntry>
2308-->
2309
2310</VariableList>
2311
2312</Sect3>
2313
[e74904e]2314<Sect3><Title>INSTRUMENT</Title>
2315
2316<VariableList>
2317
2318<VarListEntry><Term>Syntax</Term>
2319
2320<listitem><Para>*instrument &lt;instrument&gt; &lt;identifier&gt;</Para></listitem>
2321
2322</VarListEntry>
2323
2324<VarListEntry><Term>Example</Term>
2325
2326<listitem>
2327<Para>
2328<programlisting>
2329*instrument compass "CUCC 2"
2330*instrument clino "CUCC 2"
2331*instrument tape "CUCC Fisco Ranger open reel"</programlisting>
2332</Para>
2333</listitem>
2334
2335</VarListEntry>
2336
2337<VarListEntry><Term>Validity</Term>
2338
2339<listitem><Para>valid at the start of a *begin/*end block.
2340</Para></listitem>
2341
2342</VarListEntry>
2343
2344<VarListEntry><Term>Description</Term>
2345
2346<listitem><Para>
2347*instrument specifies the particular instruments used to perform a
2348survey.
2349</Para></listitem>
2350
2351</VarListEntry>
2352
2353<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2354
2355<VarListEntry><Term>See Also</Term>
2356
2357<listitem><Para>*begin, *date, *team</Para></listitem>
2358
2359</VarListEntry>
2360
2361</VariableList>
2362
2363</Sect3>
2364
[6048971]2365<Sect3><Title>PREFIX</Title>
[e189be2]2366
[6048971]2367<VariableList>
2368
2369<VarListEntry><Term>Syntax</Term>
2370
2371<listitem><Para>*prefix &lt;survey&gt;</Para></listitem>
2372
2373</VarListEntry>
2374
2375<VarListEntry><Term>Example</Term>
2376
2377<listitem>
[40647f5]2378<Para>
[6048971]2379<programlisting>
2380*prefix flapjack</programlisting>
[e189be2]2381</Para>
[6048971]2382</listitem>
2383
2384</VarListEntry>
2385
2386<VarListEntry><Term>Description</Term>
2387
2388<listitem><Para>
2389*prefix sets the current survey.
2390</Para></listitem>
2391
2392</VarListEntry>
2393
2394<VarListEntry><Term>Caveats </Term>
2395
2396<listitem><Para>*prefix is deprecated - you should use *begin and *end
2397instead.</Para></listitem>
2398
2399</VarListEntry>
2400
2401<VarListEntry><Term>See Also</Term>
2402
2403<listitem><Para>*begin, *end</Para></listitem>
2404
2405</VarListEntry>
2406
2407</VariableList>
[e189be2]2408
2409</Sect3>
2410
[6048971]2411<Sect3><Title>REQUIRE</Title>
[9e507547]2412
[6048971]2413<VariableList>
2414
2415<VarListEntry><Term>Syntax</Term>
2416
2417<listitem><Para>*require &lt;version&gt;</Para></listitem>
2418
2419</VarListEntry>
2420
2421<VarListEntry><Term>Example</Term>
2422
2423<listitem>
[9e507547]2424<Para>
[6048971]2425<programlisting>
2426*require 0.98</programlisting>
2427</Para>
2428</listitem>
2429
2430</VarListEntry>
2431
2432<VarListEntry><Term>Description</Term>
2433
2434<listitem><Para>
2435*require checks that the version of cavern in use is at least
2436&lt;version&gt; and stops with an error if not.
2437So if your dataset requires a feature
[9e507547]2438introduced in a particular version, you can add a *require command and
2439users will know what version they need to upgrade to, rather than
2440getting an error message and having to guess what the real problem is.
[6048971]2441</Para></listitem>
2442
2443</VarListEntry>
2444
2445</VariableList>
[9e507547]2446
2447</Sect3>
2448
[6048971]2449<Sect3><Title>SD</Title>
2450
2451<VariableList>
2452
2453<VarListEntry><Term>Syntax</Term>
[e189be2]2454
[6048971]2455<listitem><Para>*sd &lt;quantity list&gt; &lt;standard deviation&gt;
2456</Para></listitem>
2457
2458</VarListEntry>
2459
2460<VarListEntry><Term>Example</Term>
2461
2462<listitem>
[40647f5]2463<Para>
[6048971]2464<programlisting>
2465*sd tape 0.15 metres</programlisting>
[e189be2]2466</Para>
[6048971]2467</listitem>
[e189be2]2468
[6048971]2469</VarListEntry>
2470
2471<VarListEntry><Term>Description</Term>
2472
2473<listitem><Para>
2474*sd sets the standard deviation of a measurement.
[e189be2]2475</Para>
2476
[40647f5]2477<Para>
[bfd5706]2478&lt;quantity&gt; is one of (each group gives alternative names for the same
2479quantity):
[e189be2]2480</Para>
2481
[bfd5706]2482<ItemizedList>
2483    <listitem><para>TAPE, LENGTH</para></listitem>
2484    <listitem><para>COMPASS, BEARING</para></listitem>
2485    <listitem><para>BACKCOMPASS, BACKBEARING</para></listitem>
2486    <listitem><para>CLINO, GRADIENT</para></listitem>
2487    <listitem><para>BACKCLINO, BACKGRADIENT</para></listitem>
2488    <listitem><para>COUNTER, COUNT</para></listitem>
2489    <listitem><para>DEPTH</para></listitem>
2490    <listitem><para>DECLINATION</para></listitem>
2491    <listitem><para>DX, EASTING</para></listitem>
2492    <listitem><para>DY, NORTHING</para></listitem>
2493    <listitem><para>DZ, ALTITUDE</para></listitem>
2494    <listitem><para>LEFT</para></listitem>
2495    <listitem><para>RIGHT</para></listitem>
2496    <listitem><para>UP, CEILING</para></listitem>
2497    <listitem><para>DOWN, FLOOR</para></listitem>
2498    <listitem><para>LEVEL</para></listitem>
2499    <listitem><para>PLUMB</para></listitem>
2500    <listitem><para>POSITION</para></listitem>
2501</ItemizedList>
2502
[40647f5]2503<Para>
2504&lt;standard deviation&gt; must include units and thus is typically
[63dc4eb]2505"0.05 metres", or "0.02 degrees". See *units below for full list
[6048971]2506of valid units.
[e189be2]2507</Para>
2508
[6048971]2509<!-- FIXME mention central limit theorem -->
[40647f5]2510<Para>
[6048971]2511To utilise this command fully you need to understand what a
2512<emphasis>standard deviation</emphasis> is.
2513It gives a value to the 'spread' of the errors
[c1573d8]2514in a measurement. Assuming that these are normally distributed
[770157e]2515we can say that 95.44% of the actual lengths will fall within two
[40647f5]2516standard deviations of the measured length. i.e. a tape SD of
[770157e]25170.25 metres means that the actual length of a tape measurement
2518is within + or - 0.5 metres of the recorded value 95.44% of the time.
[40647f5]2519So if the measurement is 7.34m then the actual length is very
[6048971]2520likely to be between 6.84m and 7.84m. This example corresponds
[40647f5]2521to BCRA grade 3. Note that this is just one interpretation of
[770157e]2522the BCRA standard, taking the permitted error values as 2SD 95.44%
[40647f5]2523confidence limits. If you want to take the readings as being some
[6048971]2524other limit (e.g. 1SD = 68.26%) then you will need to change the BCRA3
[c1573d8]2525and BCRA5 files accordingly. This issue is explored in more
[40647f5]2526detail in various surveying articles.
[6048971]2527<!--
25282.565 sd 99%
25292.5   sd 98.76%
25302     sd 95.44%
25311     sd 68.26%
2532.97   sd 66.67%
25331.15  sd 75%
2534-->
2535</Para></listitem>
2536
2537</VarListEntry>
2538
2539<VarListEntry><Term>See Also</Term>
2540
2541<listitem><Para>*units</Para></listitem>
2542
2543</VarListEntry>
2544
2545</VariableList>
[e189be2]2546
2547</Sect3>
2548
[6048971]2549<Sect3><Title>SET</Title>
[e189be2]2550
[6048971]2551<VariableList>
[e189be2]2552
[6048971]2553<VarListEntry><Term>Syntax</Term>
2554
2555<listitem><Para>*set &lt;item&gt; &lt;character list&gt;</Para></listitem>
2556
2557</VarListEntry>
2558
2559<VarListEntry><Term>Example</Term>
2560
2561<listitem>
[40647f5]2562<Para>
[6048971]2563<programlisting>
[21c226e]2564*set blank x09x20
[6048971]2565*set decimal ,</programlisting>
[21c226e]2566
2567Note that you need to eliminate comma from being a blank before setting it as
2568a decimal - otherwise the comma in "*set decimal ," is parsed as a blank, and
2569you set decimal to not have any characters representing it.
[e189be2]2570</Para>
[6048971]2571</listitem>
[e189be2]2572
[6048971]2573</VarListEntry>
2574
2575<VarListEntry><Term>Description</Term>
2576
2577<listitem><Para>
2578*set sets the specified &lt;item&gt; to the character or characters
[40647f5]2579given in &lt;character list&gt;. The example sets the decimal
[11f9067]2580separator to be a comma.
2581</Para>
2582
2583<Para>
2584xAB means the character with hex value AB. Eg x20 is a space.
[e189be2]2585</Para>
2586
[40647f5]2587<Para>
[11f9067]2588The complete list of items that can be set, the defaults (in
[40647f5]2589brackets), and the meaning of the item, is:
[e189be2]2590</Para>
2591
[6048971]2592<ItemizedList>
2593
2594<ListItem><Para>
[11f9067]2595BLANK (x09x20,) Separates fields
[6048971]2596</Para></ListItem>
[e189be2]2597
[6048971]2598<ListItem><Para>
[40647f5]2599COMMENT (;) Introduces comments
[6048971]2600</Para></ListItem>
[e189be2]2601
[6048971]2602<ListItem><Para>
[40647f5]2603DECIMAL (.) Decimal point character
[6048971]2604</Para></ListItem>
[e189be2]2605
[6048971]2606<ListItem><Para>
2607EOL (x0Ax0D) End of line character
2608</Para></ListItem>
[e189be2]2609
[6048971]2610<ListItem><Para>
[40647f5]2611KEYWORD (*) Introduces keywords
[6048971]2612</Para></ListItem>
[e189be2]2613
[6048971]2614<ListItem><Para>
[40647f5]2615MINUS (-) Indicates negative number
[6048971]2616</Para></ListItem>
[e189be2]2617
[6048971]2618<ListItem><Para>
[f3ac7d4]2619NAMES (_-) Non-alphanumeric chars permitted in station
2620names (letters and numbers are always permitted).
[6048971]2621</Para></ListItem>
[e189be2]2622
[6048971]2623<ListItem><Para>
[c1573d8]2624OMIT (-) Contents of field omitted (e.g. in plumbed legs)
[6048971]2625</Para></ListItem>
[e189be2]2626
[6048971]2627<ListItem><Para>
[40647f5]2628PLUS (+) Indicates positive number
[6048971]2629</Para></ListItem>
[e189be2]2630
[6048971]2631<ListItem><Para>
[b15eeda]2632ROOT (\) Prefix in force at start of current file (use of ROOT is deprecated)
[6048971]2633</Para></ListItem>
[e189be2]2634
[6048971]2635<ListItem><Para>
[40647f5]2636SEPARATOR (.) Level separator in prefix hierarchy
[6048971]2637</Para></ListItem>
2638
[eb48e2b]2639<!-- FIXME OPEN ({) and CLOSE (}) -->
[6048971]2640</ItemizedList>
[e189be2]2641
[40647f5]2642<Para>
2643The special characters may not be alphanumeric.
[e189be2]2644</Para>
[40647f5]2645
[6048971]2646</listitem>
[e189be2]2647
[6048971]2648</VarListEntry>
[e189be2]2649
[6048971]2650</VariableList>
[e189be2]2651
2652</Sect3>
2653
2654<Sect3><Title>SOLVE</Title>
[40647f5]2655
[6048971]2656<VariableList>
2657
2658<VarListEntry><Term>Syntax</Term>
2659
2660<listitem><Para>*solve</Para></listitem>
2661
2662</VarListEntry>
2663
2664<VarListEntry><Term>Example</Term>
2665
2666<listitem>
[40647f5]2667<Para>
[6048971]2668<programlisting>
2669*include 1997data
2670*solve
2671*include 1998data
2672</programlisting>
[e189be2]2673</Para>
[6048971]2674</listitem>
2675
2676</VarListEntry>
2677
2678<VarListEntry><Term>Description</Term>
2679
2680<listitem><Para>
2681Distributes misclosures around any loops in the survey and fixes
2682the positions of all existing stations.  This command is intended
2683for situations where you have some new surveys adding extensions
2684to an already drawn-up survey which you wish to avoid completely
2685redrawing. You can read in the old data, use *SOLVE to fix it, and then
2686read in the new data.  Then old stations will be in the same
[63dc4eb]2687positions as they are in the existing drawn up survey, even if new loops
[6048971]2688have been formed by the extensions.
2689</Para></listitem>
2690
2691</VarListEntry>
2692
2693</VariableList>
[40647f5]2694
[e189be2]2695</Sect3>
2696
[e74904e]2697<Sect3><Title>TEAM</Title>
[be1a437]2698
2699<VariableList>
2700
2701<VarListEntry><Term>Syntax</Term>
2702
[e74904e]2703<listitem><Para>*team &lt;person&gt; &lt;role&gt;...</Para></listitem>
[be1a437]2704
2705</VarListEntry>
2706
2707<VarListEntry><Term>Example</Term>
2708
2709<listitem>
[e74904e]2710<Para>
[be1a437]2711<programlisting>
[e74904e]2712*team "Nick Proctor" compass clino tape
2713*team "Anthony Day" notes pictures tape
[be1a437]2714</programlisting>
[e74904e]2715</Para>
[be1a437]2716</listitem>
2717
2718</VarListEntry>
[e74904e]2719
2720<VarListEntry><Term>Validity</Term>
2721
2722<listitem><Para>valid at the start of a *begin/*end block.
2723</Para></listitem>
[eb48e2b]2724<!-- FIXME valid roles are? -->
[e74904e]2725
2726</VarListEntry>
[be1a437]2727
2728<VarListEntry><Term>Description</Term>
2729
[e74904e]2730<listitem><Para>
2731*team specifies the people involved in a survey and what role they
2732filled during that trip.
2733</Para></listitem>
2734
2735</VarListEntry>
2736
2737<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2738
2739<VarListEntry><Term>See Also</Term>
2740
2741<listitem><Para>*begin, *date, *instrument</Para></listitem>
2742
2743</VarListEntry>
2744
2745</VariableList>
[be1a437]2746
[e74904e]2747</Sect3>
2748
2749<Sect3><Title>TITLE</Title>
2750
2751<VariableList>
2752
2753<VarListEntry><Term>Syntax</Term>
2754
2755<listitem><Para>*title &lt;title&gt;</Para></listitem>
2756
2757</VarListEntry>
2758
2759<VarListEntry><Term>Example</Term>
2760
2761<listitem>
2762<programlisting>
2763*title Dreamtime</programlisting>
2764
2765<programlisting>
2766*title "Mission Impossible"</programlisting>
2767</listitem>
2768
2769</VarListEntry>
2770
2771<VarListEntry><Term>Description</Term>
2772
2773<listitem><Para>*title allows you to set the descriptive title for a survey.
2774If the title contains spaces, you need to enclose it in quotes ("").
2775If there is no *title command, the title defaults to the survey name
2776given in the *begin command.
[be1a437]2777</Para>
2778</listitem>
2779
2780</VarListEntry>
2781
2782<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2783
2784<!--
2785<VarListEntry><Term>See Also</Term>
2786
2787<listitem><Para>*end, *prefix</Para></listitem>
2788
2789</VarListEntry>
2790-->
2791
2792</VariableList>
2793
2794</Sect3>
2795
2796<Sect3><Title>TRUNCATE</Title>
2797
2798<VariableList>
2799
2800<VarListEntry><Term>Syntax</Term>
2801
2802<listitem><Para>*truncate &lt;length&gt;|off</Para></listitem>
2803
2804</VarListEntry>
2805
[e74904e]2806<!-- FIXME:
[be1a437]2807<VarListEntry><Term>Example</Term>
2808
2809<listitem>
2810<programlisting>
2811</programlisting>
2812
2813</listitem>
2814
2815</VarListEntry>
2816-->
2817
2818<VarListEntry><Term>Description</Term>
2819
[6af6d51]2820<listitem><Para>Station names may be of any length in <Application>Survex</Application>, but some
[be1a437]2821other (mostly older) cave surveying software only regard the first few
2822characters of a name as significant (e.g. "entran" and "entrance"
2823might be treated as the same).  To facilitate using data imported from
[6af6d51]2824such a package <Application>Survex</Application> allows you to truncate names to whatever
[eb48e2b]2825length you want (but by default truncation is off).
[be1a437]2826</Para>
2827
[f9dc4a0]2828<Para>Figures for the number of characters which are significant in various
[a4458fd5]2829software packages: Compass currently has a limit of 12,
[f9dc4a0]2830CMAP has a limit of 6,
[b554a4b]2831Smaps 4 had a limit of 8,
[eb48e2b]2832<!-- FIXME any limits for other software, winkarst for example? -->
2833Surveyor87/8 used 8.
[6af6d51]2834<Application>Survex</Application> itself used 8 per prefix
[be1a437]2835level up to version 0.41, and 12 per prefix level up to 0.73 (more recent
2836versions removed this rather archaic restriction).
2837</Para>
2838</listitem>
2839
2840</VarListEntry>
2841
2842<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2843
2844<!--
2845<VarListEntry><Term>See Also</Term>
2846
2847<listitem><Para>*end, *prefix</Para></listitem>
2848
2849</VarListEntry>
2850-->
2851
2852</VariableList>
2853
2854</Sect3>
2855
[e74904e]2856<Sect3><Title>UNITS</Title>
[c1573d8]2857
[e74904e]2858<VariableList>
[9e507547]2859
[e74904e]2860<VarListEntry><Term>Syntax</Term>
2861
2862<listitem><Para>
2863*units &lt;quantity list&gt; [&lt;factor&gt;] &lt;unit&gt;
[e189be2]2864</Para>
[e74904e]2865<Para>
2866*units default
2867</Para></listitem>
2868
2869</VarListEntry>
2870
2871<VarListEntry><Term>Example</Term>
[c1573d8]2872
[e74904e]2873<listitem>
2874<Para>
2875<programlisting>
2876*units tape metres</programlisting>
2877
2878<programlisting>
[b14f44f]2879*units compass backcompass clino backclino grads</programlisting>
[e74904e]2880
2881<programlisting>
2882*units dx dy dz 1000 metres ; data given as kilometres</programlisting>
[b5283af]2883
2884<programlisting>
2885*units left right up down feet</programlisting>
[e189be2]2886</Para>
[e74904e]2887</listitem>
[c1573d8]2888
[e74904e]2889</VarListEntry>
2890
2891<VarListEntry><Term>Description</Term>
2892
2893<listitem><Para>
[b5283af]2894&lt;quantity&gt; is one of the following (grouped entries are just alternative names for the same thing):
2895TAPE/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]2896</Para>
[c1573d8]2897
2898<Para>Changes current units of all the quantities listed to [&lt;factor&gt;]
[40647f5]2899&lt;unit&gt;. Note that quantities can be expressed either as
[fa42426]2900the instrument (e.g. COMPASS) or the measurement (e.g. BEARING).
[e189be2]2901</Para>
[c1573d8]2902
[fa42426]2903<Para>&lt;factor&gt; allows you to easy specify situations such as measuring
2904distance with a diving line knotted every 10cm (*units distance 0.1 metres).
2905If &lt;factor&gt; is omitted it defaults to 1.0.  If specified, it must be
2906non-zero.
[e189be2]2907</Para>
[c1573d8]2908
2909<Para>Valid units for listed quantities are:
[e189be2]2910</Para>
[c1573d8]2911
[b5283af]2912<Para>TAPE/LENGTH, COUNTER/COUNT, DEPTH, DX/EASTING, DY/NORTHING, DZ/ALTITUDE
2913in YARDS|FEET|METRIC|METRES|METERS (default: METRES)
[e189be2]2914</Para>
[c1573d8]2915
[b5283af]2916<Para>CLINO/GRADIENT, BACKCLINO/BACKGRADIENT
2917in DEG|DEGREES|GRADS|MILS|PERCENT|PERCENTAGE (default: DEGREES)
[e74904e]2918</Para>
2919
[b5283af]2920<Para>COMPASS/BEARING, BACKCOMPASS/BACKBEARING, DECLINATION
2921in DEG|DEGREES|GRADS|MILS|MINUTES (default: DEGREES)
[e74904e]2922</Para>
2923
2924<Para>(360 degrees = 400 grads (also known as Mils))
2925</Para>
[b5283af]2926</listitem>
[e74904e]2927
2928</VarListEntry>
2929
2930<!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2931
2932<VarListEntry><Term>See Also</Term>
2933
2934<listitem><Para>*calibrate</Para></listitem>
2935
2936</VarListEntry>
2937
2938</VariableList>
[c1573d8]2939
[e189be2]2940</Sect3>
2941
2942</Sect2>
2943
2944</Sect1>
2945
[63dc4eb]2946<!-- FIXME rename to "Cookbook"? -->
[6af6d51]2947<Sect1><Title>Contents of <filename>.svx</filename> files: How do I?</Title>
[0d62afe]2948<?dbhtml filename="svxhowto.htm">
[c1573d8]2949
[40647f5]2950<Para>
[6af6d51]2951Here is some example <Application>Survex</Application> data (a very small cave numbered 1623/163):
[e189be2]2952</Para>
[fbc41c2]2953
2954<programlisting>
[40647f5]29552 1 26.60 222  17.5
29562 3 10.85 014   7
29572 4  7.89 254 -11
29584 5  2.98  - DOWN
[fbc41c2]29595 6  9.29 271 -28.5</programlisting>
2960
[40647f5]2961<Para>
2962You can vary the data ordering.  The default is:
[e189be2]2963</Para>
2964
[40647f5]2965<Para>
2966from-station to-station tape compass clino
[e189be2]2967</Para>
2968
[40647f5]2969<Para>
[6af6d51]2970This data demonstrates a number of useful features of <Application>Survex</Application>:
[e189be2]2971</Para>
2972
[40647f5]2973<Para>
2974Legs can be measured either way round, which allows the use of
[b462168]2975techniques like "leap-frogging" (which is where legs
2976alternate forwards and backwards).
[e189be2]2977</Para>
2978
[40647f5]2979<Para>
2980Also notice that there is a spur in the survey (2 to 3).  You
[6aef4f1]2981do not need to specify this specially.
[e189be2]2982</Para>
2983
[40647f5]2984<Para>
[6af6d51]2985<Application>Survex</Application> places few restrictions on station naming (see "Survey
[ff003b3]2986Station Names" in the previous section), so you can number the stations
2987as they were in the original survey notes.  Although not apparent from
2988this example, there is no requirement for each leg to connect to an
[6af6d51]2989existing station.  <Application>Survex</Application> can accept data in any order, and will
[ff003b3]2990check for connectedness once all the data has been read in.
[e189be2]2991</Para>
2992
[40647f5]2993<Para>
2994Each survey is also likely to have other information associated
2995with it, such as instrument calibrations, etc.  This has been
2996omitted from this example to keep things simple.
[e189be2]2997</Para>
2998
[40647f5]2999<Para>
3000Most caves will take more than just one survey trip to map.  Commonly
3001the numbering in each survey will begin at 1, so we need to be
3002able to tell apart stations with the same number in different
3003surveys.
[e189be2]3004</Para>
3005
[40647f5]3006<Para>
[6af6d51]3007To accomplish this, <Application>Survex</Application> has a very flexible system of hierarchical
[40647f5]3008prefixes.  All you need do is give each survey a unique name or
3009number, and enter the data like so:
[e189be2]3010</Para>
[fbc41c2]3011
3012<programlisting>
[40647f5]3013*begin 163
[e74904e]3014*export 1
[40647f5]30152 1 26.60 222  17.5
30162 3 10.85 014   7
30172 4  7.89 254 -11
30184 5  2.98  - DOWN
30195 6  9.29 271 -28.5
[fbc41c2]3020*end 163</programlisting>
3021
[6af6d51]3022<Para><Application>Survex</Application> will name the stations by attaching the current prefix.
[fbc41c2]3023In this case, the stations will be named 163.1, 163.2, etc.
[e189be2]3024</Para>
[fbc41c2]3025
[ff003b3]3026<Para>We have a convention with the CUCC Austria data that the entrance survey
3027station of a cave is named P&lt;cave number&gt;, P163 in this case. We
[fbc41c2]3028can accomplish this like so:
[e189be2]3029</Para>
[fbc41c2]3030
3031<programlisting>
[b15eeda]3032*equate P163 163.1
[e74904e]3033*entrance P163
[40647f5]3034*begin 163
[e74904e]3035*export 1
[40647f5]30362 1 26.60 222  17.5
30372 3 10.85 014   7
30382 4  7.89 254 -11
30394 5  2.98  - DOWN
30405 6  9.29 271 -28.5
[fbc41c2]3041*end 163</programlisting>
3042
[b462168]3043<Sect2><Title>Specify surface survey data</Title>
3044
3045<Para>
3046Say you have 2 underground surveys and 2 surface ones with 2 fixed reference
3047points.  You want to mark the surface surveys so that their length isn't
3048included in length statistics, and so that Aven knows to display them
3049differently.  To do this you mark surface data with the "surface" flag
3050- this is set with "*flags surface" like so:
[ce92903]3051</Para>
[b462168]3052
3053<programlisting>
3054; fixed reference points
3055*fix fix_a 12345 56789 1234
3056*fix fix_b 23456 67890 1111                                                     
3057                                                                               
3058; surface data (enclosed in *begin ... *end to stop the *flags command
3059; from "leaking" out)
3060*begin
3061*flags surface
3062*include surface1
3063*include surface2
3064*end                                                                           
3065                                                                               
3066; underground data
3067*include cave1
3068*include cave2</programlisting>
3069
3070<Para>
3071You might also have a survey which starts on the surface and heads into a
3072cave.  This can be easily handled too - here's an example which goes in
3073one entrance, through the cave, and out of another entrance:
3074</Para>
3075
3076<programlisting>
3077*begin BtoC
3078*title "161b to 161c"
3079*date 1990.08.06 ; trip 1990-161c-3 in 1990 logbook
3080
3081*begin
3082*flags surface
308302    01      3.09   249    -08.5
308402    03      4.13   252.5  -26
3085*end
3086
308704    03      6.00   020    +37
308804    05      3.07   329    -31
308906    05      2.67   203    -40.5
309006    07      2.20   014    +04
309107    08      2.98   032    +04
309208    09      2.73   063.5  +21
309309    10     12.35   059    +15
3094
3095*begin
3096*flags surface
309711    10      4.20   221.5  -11.5
309811    12      5.05   215    +03.5
309911    13      6.14   205    +12.5
310013    14     15.40   221    -14
3101*end
3102
3103*end BtoC</programlisting>
3104
3105<Para>
3106Note that to avoid needless complication, Survex regards each leg as
3107being either "surface" or "not surface" - if a leg spans the boundary you'll
3108have to call it one or the other.  It's good surveying practice to
3109deliberately put a station at the surface/underground interface
3110(typically the highest closed contour or drip line) so this generally
3111isn't an onerous restriction.
3112</Para>
3113
3114</Sect2>
3115
[e189be2]3116<Sect2><Title>Specify the ordering and type of data</Title>
3117
[e74904e]3118<Para>The *DATA command is used to specify the data style, and the
3119order in which the readings are given.</Para>
[e189be2]3120
3121</Sect2>
3122
[1a50c3c]3123<Sect2><Title>Deal with Plumbs or Legs Across Static Water</Title>
[e189be2]3124
[1a50c3c]3125<!-- FIXME
[40647f5]3126<Para>
[1a50c3c]3127They can be given
[40647f5]3128as +90, or -90, but as they are not usually measured with the
3129clino, but with a plumb of some sort, then it is useful to distinguish
3130them in this way so that any clino adjustment is not applied to
3131these values.
[e189be2]3132</Para>
3133
[63dc4eb]3134FIXME: paste in section from mail to list
3135
[40647f5]3136<Para>
[4eba0d9]3137Note that a similar effect can be achieved by using the "*infer plumbs" command
3138to stop clino corrections being applied to -90 and +90 clino readings.
[e189be2]3139</Para>
[1a50c3c]3140-->
[e189be2]3141
[40647f5]3142<Para>
[eb48e2b]3143Plumbed legs should be given using 'UP' or 'DOWN' in place of the
[1a50c3c]3144clino reading and a dash (or a different specified 'OMIT' character)
3145in place of the compass reading.  This distinguishes
3146them from legs measured with a compass and clino.  Here's an example:
[e189be2]3147</Para>
[fbc41c2]3148
3149<programlisting>
[40647f5]31501 2 21.54 - UP
31513 2 7.36 017 +17
31523 4 1.62 091 +08
[fbc41c2]31535 4 10.38 - DOWN</programlisting>
3154
[e189be2]3155<Para>
[eb48e2b]3156U/D or +V/-V may be used instead of UP/DOWN; the check is not case
[1a50c3c]3157sensitive.
[e189be2]3158</Para>
3159
[4eba0d9]3160<Para>
3161Legs surveyed across the surface of a static body of water where no
3162clino reading is taken (since the surface of the water can be assumed
3163to be flat) can be indicated by using LEVEL in place of a clino reading.
[1a50c3c]3164This prevents the clino correction being applied.  Here's an example:
[4eba0d9]3165</Para>
3166
3167<programlisting>
31681 2 11.37 190 -12
31693 2  7.36 017 LEVEL
31703 4  1.62 091 LEVEL</programlisting>
3171
[e189be2]3172</Sect2>
[fbc41c2]3173
[e189be2]3174<Sect2><Title>Specify a BCRA grade</Title>
[40647f5]3175
[fbc41c2]3176<Para>The *SD command can be used to specify the standard deviations of the
3177various measurements (tape, compass, clino, etc).  Examples files are
3178supplied which define BCRA Grade 3 and BCRA Grade 5 using a number of *sd
[eb48e2b]3179commands. You can use these by simply including them at the relevant point,
3180as follows:
[e189be2]3181</Para>
[fbc41c2]3182
3183<programlisting>
[40647f5]3184*begin somewhere
3185; This survey is only grade 3
3186*include grade3
31872 1 26.60 222  17.5
31882 3 10.85 014   7
3189; etc
[fbc41c2]3190*end somewhere</programlisting>
3191
3192<Para>The default values for the standard deviations are those for
[6aef4f1]3193BCRA grade 5. Note that it is good practice to keep the *include
[c1573d8]3194Grade3 within *Begin and *End commands otherwise it will apply
[40647f5]3195to following survey data, which may not be what you intended.
[e189be2]3196</Para>
3197
3198</Sect2>
[40647f5]3199
[e189be2]3200<Sect2><Title>Specify different accuracy for a leg</Title>
[fbc41c2]3201
[c1573d8]3202<Para>For example, suppose the tape on the plumbed leg in this survey
[1a50c3c]3203is suspected of being less accurate than the rest of the survey because
3204the length was obtained by measuring the length of the rope used to rig
3205the pitch.  We can set a higher sd for this one measurement and use a
3206*begin/*end block to make sure this setting only applies to the one
3207leg:
[e189be2]3208</Para>
[fbc41c2]3209
3210<programlisting>
[40647f5]32112 1 26.60 222  17.5
32122 3 10.85 014   7
32132 4  7.89 254 -11
3214*begin
[1a50c3c]3215; tape measurement was taken from the rope length
[40647f5]3216*sd tape 0.5 metres
[1a50c3c]32174 5  34.50 - DOWN
[40647f5]3218*end
[1a50c3c]32195 6  9.29 271 -28.5</programlisting>
[fbc41c2]3220
[eb48e2b]3221<!-- FIXME also *calibrate and *instrument? Except rope is measure with the
3222tape... -->
[e189be2]3223</Sect2>
3224
[fbf7fa0]3225<Sect2><Title>Enter Repeated Readings</Title>
3226
3227<Para>If your survey data contains multiple versions of each leg (for example,
3228pockettopo produces such data), then provided these are adjacent to one another
3229Survex 1.2.17 and later will automatically average these and treat them as a
3230single leg.
3231</Para>
3232
3233</Sect2>
3234
[ff003b3]3235<Sect2><Title>Enter Radiolocation Data</Title>
[fbc41c2]3236
[a4458fd5]3237<!-- FIXME comments from David Gibson here -->
[5b5a89f]3238<Para>This is done by using the *SD command to specify the appropriate
3239errors for the radiolocation `survey leg' so that the loop closure
3240algorithm knows how to distribute errors if it forms part of a loop.
3241</Para>
3242
3243<Para>The best approach for a radiolocation where the underground station
3244is vertically below the surface station is to represent it as a
3245plumbed leg, giving suitable SDs for the length and plumb angle. The
3246horizontal positioning of this is generally quite accurate, but the
3247vertical positioning may be much less well known. E.g: we have a
3248radiolocation of about 50m depth +/- 20m and horizontal accuracy of
3249+/- 8m. Over 50m the +/-8m is equivalent to an angle of 9 degrees, so
3250that is the expected plumb error. 20m is the expected error in the
[e74904e]3251length. To get the equivalent SD we assume that 99.74% of readings will
[5b5a89f]3252be within 3 standard deviations of the error value. Thus we divide the
3253expected errors by 3 to get the SD we should specify:
[eb48e2b]3254</Para> <!-- 3 SD? or same as BCRA3.SVX, etc -->
[fbc41c2]3255
3256<programlisting>
[5b5a89f]3257*begin
[e74904e]3258*sd length 6.67 metres
[5b5a89f]3259*sd plumb 3 degrees
3260surface underground 50 - down
[e74904e]3261*end</programlisting>
[5b5a89f]3262
3263<Para>
[e74904e]3264We wrap the radiolocation leg in a *begin/*end block to make
[5b5a89f]3265sure that the special *sd settings only apply to this one leg.
3266</Para>
[fbc41c2]3267
3268<Para>For more information on the expected errors from radiolocations
[b462168]3269see Compass Points Issue 10, available online at
3270<ulink url="http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm">http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm</ulink>
[e189be2]3271</Para>
3272
3273</Sect2>
[fbc41c2]3274
[e189be2]3275<Sect2><Title>Enter Diving Data</Title>
[fbc41c2]3276
[0706076]3277<Para>Surveys made underwater using a diver's depth gauge can be
3278processed - use the *Data command to specify that the following data
3279is of this type.
[e189be2]3280</Para>
3281
3282</Sect2>
[fbc41c2]3283
[e189be2]3284<Sect2><Title>Enter Theodolite data</Title>
[fbc41c2]3285
[e74904e]3286<Para>
3287Theodolite data with turned angles is not yet explicitly catered
3288for, so for now you will need to convert it into equivalent legs in
3289another style - normal or cylpolar are likely to be the best choices.
3290</Para>
3291
3292<Para>
3293If there is no vertical info in your theodolite data then you should
3294use the cylpolar style and use *sd command to specify very low
3295accuracy (high SD) in the depth so that the points will move in the
3296vertical plane as required if the end points are fixed or the survey
3297is part of a loop.
[e189be2]3298</Para>
3299
3300</Sect2>
3301
3302</Sect1>
[fbc41c2]3303
[e189be2]3304<Sect1><Title>General: How do I?</Title>
[0d62afe]3305<?dbhtml filename="genhowto.htm">
[fbc41c2]3306
[e189be2]3307<Sect2><Title>Create a new survey</Title>
[fbc41c2]3308
3309<Para>You simply create a text file containing the relevant survey data,
[6af6d51]3310using a text editor, and save it with a suitable name with a <filename>.svx</filename>
[e6aa3b1]3311extension. The
[40647f5]3312easiest way is to look at some of the example data and use that
3313as a template. Nearly all surveys will need a bit of basic info
[e6aa3b1]3314as well as the survey data itself: e.g. the date (*date), comments
3315about where, what cave, a name for the survey (using *begin and *end),
3316instrument error corrections etc. Here is a typical survey file:
[e189be2]3317</Para>
[fbc41c2]3318
3319<Para>All the lines starting with ';' are comments, which are ignored
[6af6d51]3320by <Application>Survex</Application>. You can also see the use of 'DOWN' for plumbs, and
[b462168]3321*calibrate tape for dealing with a tape length error (in this case
3322the end of the tape had fallen off so measurements were made from the
332320cm point).</Para>
[40647f5]3324
[fbc41c2]3325<programlisting>
[e74904e]3326*equate chaos.1 triassic.pt3.8
3327*equate chaos.2 triassic.pt3.9
3328
3329*begin chaos
3330*title "Bottomless Pit of Eternal Chaos to Redemption pitch"
3331*date 1996.07.11
3332*team "Nick Proctor" compass clino tape
3333*team "Anthony Day" notes pictures tape
3334*instrument compass "CUCC 2"
3335*instrument clino "CUCC 2"
[40647f5]3336;Calibration: Cairn-Rock 071 072 071,  -22 -22 -22
3337;       Rock-Cairn 252 251 252,  +21 +21 +21
3338;Calibration at 161d entrance from cairn nr entrance to
3339;prominent rock edge lower down. This is different from
3340;calibration used for thighs survey of 5 July 1996
[e74904e]3341
3342*export 1 2
3343
[40647f5]3344;Tape is 20cm too short
3345*calibrate tape +0.2
[e74904e]3346
[40647f5]33471 2 9.48 208 +08
33482 3 9.30 179 -23
33493 4 2.17 057 +09
33505 4 10.13 263 +78
33515 6 2.10 171 -73
33527 6 7.93 291 +75
[e74904e]3353*begin
[40647f5]3354*calibrate tape 0
33558 7 35.64 262 +86 ;true length measured for this leg
[e74904e]3356*end
[40647f5]33578 9 24.90 - DOWN
335810 9 8.61 031 -43
335910 11 2.53 008 -34
336011 12 2.70 286 -20
336113 12 5.36 135 +23
336214 13 1.52 119 -12
336315 14 2.00 036 +13
336416 15 2.10 103 +12
336517 16 1.40 068 -07
336617 18 1.53 285 -42
336719 18 5.20 057 -36
336819 20 2.41 161 -67
336920 21 27.47 - DOWN
337021 22 9.30 192 -29
[fbc41c2]3371*end chaos</programlisting>
[40647f5]3372
[e189be2]3373</Sect2>
3374
3375<Sect2><Title>Join surveys together</Title>
[fbc41c2]3376
3377<Para>Once you have more than one survey you need to specify how they
[e74904e]3378link together. To do this use *export to make the stations to be
3379joined accessible in the enclosing survey, then *equate in the
3380enclosing survey to join them together.
3381<!-- FIXME example -->
[e189be2]3382</Para>
3383
3384</Sect2>
[40647f5]3385
[e189be2]3386<Sect2><Title>Organise my surveys</Title>
[fbc41c2]3387
3388<Para>This is actually a large subject. There are many ways you can
[6af6d51]3389organise your data using <Application>Survex</Application>. Take a look at the example dataset
[40647f5]3390for some ideas of ways to go about it.
[e189be2]3391</Para>
[40647f5]3392
[e189be2]3393<Sect3><Title>Fixed Points (Control Points)</Title>
[fbc41c2]3394
[f9dc4a0]3395<Para>The *fix command is used to specify fixed points (also know as control
3396points).  See the description of this command in the "Cavern Commands"
3397section of this manual.
[e189be2]3398</Para>
3399
3400</Sect3>
[fbc41c2]3401
[e189be2]3402<Sect3><Title>More than one survey per trip</Title>
[fbc41c2]3403
3404<Para>Suppose you have two separate bits of surveying which were done on the
3405same trip.  So the calibration details, etc. are the same for both.  But you
[e74904e]3406want to give a different survey name to the two sections.  This is easily
[fbc41c2]3407achieved like so:
[e189be2]3408</Para>
[fbc41c2]3409
3410<programlisting>
[40647f5]3411*begin
3412*calibrate compass 1.0
3413*calibrate clino 0.5
3414*begin altroute
3415; first survey
3416*end altroute
3417*begin faraway
3418; second survey
3419*end faraway
[fbc41c2]3420*end</programlisting>
[40647f5]3421
[e189be2]3422</Sect3>
3423
3424</Sect2>
3425
[419befc]3426<Sect2><Title>Add surface topography</Title>
[fbc41c2]3427
[705aaedd]3428<Para>Survex 1.2.18 added support for loading terrain data and rendering it as
3429a transparent surface.
3430</Para>
3431
3432<Para>
3433We recommend using this new code in preference, but previously the simplest
3434approach was to generate a <filename>.svx</filename> file with the surface mesh
3435in and display it with the survey data.
[f9dc4a0]3436</Para>
3437
3438<Para>
3439It is possible to generate
[705aaedd]3440a mesh or contours overlaying your area by various means.  NASA have made
34411 arc-second (approximately 30m) terrain data available for the USA for
3442some years, with only 3 arc-second data available for other countries.
3443However, starting in 2014 they're gradually making 1 arc-second data
3444available for more countries.
3445</Para>
3446
3447<Para>
3448If you want a better resolution that this, reading heights from the
[f9dc4a0]3449contours on a map is one approach.  It's laborious, but feasible for
3450a small area.
3451</Para>
3452
3453<Para>
3454Details of several methods are given in the BCRA Cave Surveying
3455Group magazine Compass Points issue 11, available online at
3456<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>
3457</Para>
3458
[6af6d51]3459<Para>If you're using another program to generate a <filename>.svx</filename> file for the surface
[f9dc4a0]3460mesh, it's best to use the NOSURVEY data style.
3461Simply fix all the grid intersections at the correct
3462coordinates and height, and put legs between them using the NOSURVEY style.
3463Here's a grid of 4 squares and 9 intersections:
3464</Para>
3465
3466<programlisting>
3467*fix 00 000 000 1070
3468*fix 01 000 100 1089
3469*fix 02 000 200 1093
3470
3471*fix 10 100 000 1062
3472*fix 11 100 100 1080
3473*fix 12 100 200 1089
3474
3475*fix 20 200 000 1050
3476*fix 21 200 100 1065
3477*fix 22 200 200 1077
3478
[27b8b59]3479*data nosurvey station
[f9dc4a0]3480
[27b8b59]348100
348201
348302
[f9dc4a0]3484
[27b8b59]348510
348611
348712
[f9dc4a0]3488
[27b8b59]348920
349021
349122
[f9dc4a0]3492
[27b8b59]349300
349410
349520
[f9dc4a0]3496
[27b8b59]349701
349811
349921
[f9dc4a0]3500
[27b8b59]350102
350212
350322</programlisting>
[f9dc4a0]3504
3505<Para>
3506This is far simpler than trying to create fake tape/compass/clino legs of
[eb48e2b]3507the right length for each line in the mesh.  It's also very fast to process
[f9dc4a0]3508with cavern.
3509</Para>
3510
[e189be2]3511</Sect2>
3512
3513<Sect2><Title>Overlay a grid</Title>
[fbc41c2]3514
[f9dc4a0]3515<Para>Aven is able to display a grid, but this functionality isn't currently
[4e8d288]3516available in printouts.
[6af6d51]3517You can achieve a similar effect for now by creating a <filename>.svx</filename> file
[e74904e]3518where the survey legs form a grid.
[e189be2]3519</Para>
[fbc41c2]3520
[e189be2]3521</Sect2>
3522
3523<Sect2><Title>Import data from other programs</Title>
[fbc41c2]3524
[6af6d51]3525<Para><Application>Survex</Application> supports a number of features to help with importing
[fbc41c2]3526existing data. You can specify the ordering of items on a line using *Data
[6af6d51]3527(see <Application>Survex</Application> Keywords above), and you can specify the characters used
3528to mean different things using *Set (see <Application>Survex</Application> Keywords above).
[e189be2]3529</Para>
[fbc41c2]3530
[c1573d8]3531<Para>The Ignore and Ignoreall options to the *Data command are often
[fbc41c2]3532particularly useful, e.g. if you have a dataset with LRUD info or comments
3533on the ends of lines.
[e189be2]3534</Para>
[fbc41c2]3535
[e6aa3b1]3536<Sect3><Title>Changing Meanings of Characters</Title>
[fbc41c2]3537
[e6aa3b1]3538<Para>e.g. if you have some data with station names containing the
3539characters '?' and '+' (which are not permitted in a name by default)
3540then the command:
[e189be2]3541</Para>
[fbc41c2]3542
3543<programlisting>
[e6aa3b1]3544*SET NAMES ?+</programlisting>
[fbc41c2]3545
[e189be2]3546<Para>
[e6aa3b1]3547specifies that question marks and plus signs are permitted in station names.
3548A-Z, a-z, and 0-9 are always permitted. '_' and '-' are also permitted by
3549default, but aren't in this example.
[e189be2]3550</Para>
[fbc41c2]3551
3552<Para>If your data uses a comma ',' instead of a decimal point, then
[40647f5]3553you use
[e189be2]3554</Para>
[fbc41c2]3555
3556<programlisting>
3557*SET DECIMAL ,</programlisting>
3558
3559<Para>to specify that ',' is now the decimal separator instead of '.'.
[e189be2]3560</Para>
[fbc41c2]3561
[e74904e]3562<!-- FIXME
[fbc41c2]3563<Para>Note that there are plenty of ways you can use this facility to
[6aef4f1]3564completely confuse the software, as it may not be able to work out what is
[c1573d8]3565going on, or it may simply be ambiguous. It can cope with some ambiguity (e.g.
[6aef4f1]3566the '-' character is used both for 'MINUS' and for 'OMIT'), but there are
[6af6d51]3567limits. If you have a dataset that you can not make <Application>Survex</Application>
[6aef4f1]3568understand, then send it to us, and we will see what can be done.
[e189be2]3569</Para>
[e74904e]3570-->
[e189be2]3571
3572</Sect3>
[fbc41c2]3573
[49920d0]3574<!--
3575 Nobody seems to have the CfH convertor...
3576 but it's probably no longer useful anyway
3577
[e189be2]3578<Sect3><Title>Other Converters</Title>
[fbc41c2]3579
3580<Para>We have an Excel 5 macro for converting The Lotus 123 spreadsheets
[40647f5]3581used by the German survey software Cad F&uuml;r H&ouml;hlen into
[6af6d51]3582<Application>Survex</Application> data files. Other converters may also come to be available.
[ff003b3]3583These will normally be available via the
[6af6d51]3584<ulink url="http://survex.com/"><Application>Survex</Application> Web pages</ulink>.
[e189be2]3585</Para>
3586
3587</Sect3>
[dcc1947]3588-->
3589
[e189be2]3590</Sect2>
[40647f5]3591
[6af6d51]3592<Sect2><Title>Export data from <Application>Survex</Application></Title>
[fbc41c2]3593
[e6aa3b1]3594<Para>See Rosetta Stal in the Related Tools section of the Survex web
[eb48e2b]3595site.  This is a utility written by Taco van Ieperen and Gary Petrie.
3596Note though that this only supports a subset of the svx format,
3597and only work on Microsoft Windows.  The Survex support is limited
3598and doesn't understand the more recently added commands.</Para>
[e189be2]3599
3600</Sect2>
[40647f5]3601
[e189be2]3602<Sect2><Title>See errors and warnings that have gone off the screen</Title>
[fbc41c2]3603
[6af6d51]3604<Para>When you run <Application>Survex</Application> it will process the specified survey data
[e74904e]3605files in order, reporting any warnings and errors.  If there are no
3606errors, the output files are written and various statistics about the
3607survey are displayed. If there are a lot of warnings or errors, they can
3608scroll off the screen and it's not always possible to scroll back to
3609read them.
[e189be2]3610</Para>
[fbc41c2]3611
[e74904e]3612<Para>The easiest way to see all the text is to use <command>cavern
3613--log</command> to redirect output to a <filename>.log</filename> file,
3614which you can then inspect with a text editor.
[e189be2]3615</Para>
3616
[38335b7]3617<!-- <command>cavern cavename &gt; tmpfile</command> -->
[fbc41c2]3618
[e189be2]3619</Sect2>
3620
3621<Sect2><Title>Create an Extended Elevation</Title>
[fbc41c2]3622
[6af6d51]3623<Para>Use the Extend program. This takes <filename>.3d</filename> files and
[c1573d8]3624'flattens' them.  See 'Extend' for details.
[e189be2]3625</Para>
3626
3627</Sect2>
[fbc41c2]3628
[e189be2]3629</Sect1>
3630
[6048971]3631<!--
[e189be2]3632<Sect1><Title>Appendices</Title>
[0d62afe]3633<?dbhtml filename="appendix.htm">
[fbc41c2]3634
3635<Para>Files provided
[e189be2]3636</Para>
[fbc41c2]3637
3638<Para>Command specification
[e189be2]3639</Para>
3640
3641</Sect1>
[6048971]3642-->
[b462168]3643<Sect1><Title>Working with Larry Fish's Compass</Title>
[0d62afe]3644<?dbhtml filename="compass.htm">
[b462168]3645
3646<Para>
3647Survex can read Compass survey data - both raw data (.DAT and .MAK
3648files) and processed survey data (.PLT and .PLF files).  You can even
[6af6d51]3649use <command>*include compassfile.dat</command> in a <filename>.svx</filename> file and
[b462168]3650it'll work!
3651</Para>
3652
3653<Para>
3654One point to note (this tripped us up!): station names in DAT files are
3655case sensitive and so Survex reads DAT files with the equivalent of
3656<command>*case preserve</command>.  The default in SVX files is
3657<command>*case lower</command>.  So this won't work:
3658
3659<programlisting>
3660*fix CE1 0 0 0
3661*include datfilewhichusesCE1.dat</programlisting>
3662
3663Because the CE1 in the *fix is actually interpreted as ce1.  This is
3664what you have to do:
3665
3666<programlisting>
3667*begin
3668*case preserve
3669*fix CE1 0 0 0
3670*include datfilewhichusesCE1.dat
3671*end</programlisting>
3672</Para>
3673
3674</Sect1>
[40647f5]3675
[e189be2]3676<Sect1><Title>Mailing List</Title>
[0d62afe]3677<?dbhtml filename="maillist.htm">
[40647f5]3678
[8ed91e39]3679<Para>The best way to contact the authors and other Survex users is the
3680Survex mailing list - for details visit:
3681<ulink url="http://survex.com/maillist.html">http://survex.com/maillist.html</ulink>
[e189be2]3682</Para>
[40647f5]3683
[6af6d51]3684<Para>We'd be delighted to hear how you get on with <Application>Survex</Application> and
[018db6f]3685welcome comments and suggestions for improvements.</Para>
3686
3687<Para>
[6af6d51]3688And we'd love you to contribute your skills to help make <Application>Survex</Application> even
[018db6f]3689better.  Point out areas of the documentation which could be made clearer, or
3690sections which are missing entirely.  Download test releases, try them out, and
3691let us know if you find problems or have suggestions for improvements.
3692If there's no translation to your language, you could provide one.
3693Or if your a developer, <emphasis>"Say it with code"</emphasis>.  There's
3694plenty to do, so feel free to join in.
3695</Para>
3696
[e189be2]3697</Sect1>
3698
[375f7f6]3699<Sect1><Title>Future Developments</Title>
[0d62afe]3700<?dbhtml filename="future.htm">
[40647f5]3701
3702<Para>
[6af6d51]3703Now that <Application>Survex</Application> has reached version 1.0, we are continuing progress
[b462168]3704towards version 2, in a series of steps, evolving out of
3705Survex 1.0.  The GUI framework is being based on aven, with
[6048971]3706the printer drivers and other utility programs being pulled in
3707and integrated into the menus.</Para>
3708
[6af6d51]3709<Para>Aven is built on <Application>wxWidgets</Application>, which means that it can easily support
[8ed91e39]3710Unix, Microsoft Windows, and Mac OS X.</Para>
[6048971]3711
[b462168]3712<Para>More information on our plans is on the <ulink
[6af6d51]3713url="http://survex.com/">web site</ulink>.
[e189be2]3714</Para>
3715
[647407d]3716</Sect1>
[375f7f6]3717
[6eadc5b]3718</article>
Note: See TracBrowser for help on using the repository browser.