source: git/doc/manual.sgml @ facb636

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

Update for 1.2.35

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