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