source: git/doc/manual.sgml @ 56ad6ad

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 56ad6ad was 56ad6ad, checked in by Olly Betts <olly@…>, 14 years ago

doc/manual.sgml: Update (C) years. "MacOS X" -> "Mac OS X".

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3425 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

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