source: git/doc/manual.sgml @ 4006336

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 4006336 was 8af119a, checked in by Olly Betts <olly@…>, 10 years ago

doc/manual.sgml: Update list of codes for supported translations in
the manual.

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