source: git/doc/manual.sgml @ 6de8e94

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

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

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