source: git/doc/manual.sgml @ 0826eeb

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 0826eeb was 10af28e, checked in by Olly Betts <olly@…>, 10 years ago

doc/manual.sgml,src/commands.c,tests/cs.svx,tests/csbad.out: Add
support for "*cs JTSK" and "*cs JTSK03".

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