source: git/doc/manual.sgml @ 667e803c

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

Allow *data alone to reset the current style

Useful for entering passage data where there are side passages.

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