source: git/doc/manual.sgml @ 77a3d7a

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

doc/manual.sgml: Remove references to contact addresses which are
no longer there. Remove offer to post people floppies, and
references to a fictional CD image.

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