source: git/doc/manual.sgml @ 362f3fa

RELEASE/1.0RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 362f3fa was 362f3fa, checked in by Olly Betts <olly@…>, 18 years ago

Fix \ to appear correctly in 'man print.ini'.

git-svn-id: file:///home/survex-svn/survex/trunk@3169 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

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