source: git/doc/manual.sgml @ cdb3741

RELEASE/1.0
Last change on this file since cdb3741 was cdb3741, checked in by Olly Betts <olly@…>, 13 years ago

doc/manual.sgml: Sync appropriate changes from trunk.

git-svn-id: file:///home/survex-svn/survex/branches/1.0@3715 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

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