[ci] Add a separate job which makes tarballs
[survex.git] / doc / manual.sgml
blob728683d22af0b6cdcb161dfe1c8717e09572ef6c
1 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 <!ENTITY man.aven SYSTEM "aven.sgml">
3 <!ENTITY man.cavern SYSTEM "cavern.sgml">
4 <!ENTITY man.diffpos SYSTEM "diffpos.sgml">
5 <!ENTITY man.dump3d SYSTEM "dump3d.sgml">
6 <!ENTITY man.extend SYSTEM "extend.sgml">
7 <!ENTITY man.sorterr SYSTEM "sorterr.sgml">
8 <!ENTITY man.survexport SYSTEM "survexport.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.4.8 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-2018</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 Versions 1.2 and later run on UNIX, Microsoft Windows, and macOS.
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 Pre-built versions of Survex are available for some Linux distributions.
309 See the <ulink url="https://survex.com/download.html?platform=linux">Survex
310 for Linux download page</ulink> on our website for up-to-date information.
311 </Para>
313 <Para>
314 You'll need root access to install these prebuilt packages.
315 If you don't have root access you will need to build from source
316 (see the next section).
317 </Para>
319 <!-- FIXME Add Gnome file association note for Linux/Unix
320 <Para>On Microsoft Windows, <Application>Survex</Application> installs with
321 suitable file associations so that you can drive it from the GUI.
322 On UNIX you need to drive <Application>Survex</Application> from a command-line
323 prompt (or set some a filemanager or graphics shell).
324 </Para>
327 </Sect3>
329 <Sect3><Title>macOS</Title>
331 <Para>
332 The easiest way to install a recent release of Survex on macOS is by using
333 the Homebrew package manager. If you don't already use Homebrew, you'll
334 need to install it first. See the
335 <ulink url="https://survex.com/download.html?platform=macosx">macOS
336 download page on the website</ulink> for installation instructions.
337 </Para>
339 </Sect3>
341 <Sect3><Title>Other versions of UNIX</Title>
343 <Para>For other UNIX versions you'll need to get the source code
344 and compile it on your system. Unpack the sources and read
345 the file called INSTALL in the top level for details about building
346 from source.
347 </Para>
349 </Sect3>
351 <Sect3><Title>Microsoft Windows</Title>
353 <Para>
354 This version comes packaged with an installation wizard. Just
355 run the downloaded package and it will lead you through the
356 installation process.
357 </Para>
359 <Para>
360 Survex 1.4.8 and later support installing for all users (which requires
361 administrator rights) or just for the current user (which doesn't).
362 If installed for just the current user, other user accounts won't see
363 the file associations, menu entries, desktop icons, etc for Survex.
364 </Para>
366 <Para>
367 Note that if you have an existing installation the installer will see
368 it and try to upgrade it, and if that installation was done with administrator
369 rights (which any installation of 1.4.7 or earlier will be) you'll also
370 need administrator rights to upgrade. To change to a non-admin installation
371 you need to first uninstall the existing admin install (which will need admin
372 rights) then install the new version.
373 </Para>
375 <Para>
376 The survey viewer that's part of <Application>Survex</Application> is called
377 aven, and uses OpenGL for 3d rendering.
378 </Para>
380 <Para>
381 If you find that 3D rendering is sometimes very slow (e.g. one user reported
382 very slow performance when running full screen, while running in a window
383 was fine) then try installing the OpenGL driver supplied by the manufacturer
384 of your graphics card rather than the driver Microsoft supply.
385 </Para>
387 <Para>
388 The installer creates a Survex group in the Programs sub-menu of the
389 Start menu containing the following items:
390 </Para>
392 <ItemizedList>
394 <ListItem><Para>Aven</Para></ListItem>
396 <ListItem><Para>Documentation</Para></ListItem>
398 <ListItem><Para>Uninstall Survex</Para></ListItem>
400 </ItemizedList>
402 <Para>
403 Icons are installed for <filename>.svx</filename>, <filename>.3d</filename>, <filename>.err</filename>, and <filename>.pos</filename> files, and also for
404 Compass Plot files (<filename>.plt</filename> and <filename>.plf</filename>)
405 (which Survex can read). <!-- FIXME XYZ -->
406 Double-clicking on a <filename>.svx</filename> file loads it for editing. To process it to
407 produce a <filename>.3d</filename> file, right click and choose "Process" from
408 the menu - this runs aven to process the <filename>.svx</filename> file and
409 automatically load the resultant <filename>.3d</filename> file.
410 All the <Application>Survex</Application> file types can be right clicked on to give a menu of
411 possible actions.
412 </Para>
414 <VariableList>
415 <VarListEntry><Term><filename>.svx</filename></Term>
416 <ListItem>
417 <VariableList>
418 <VarListEntry><Term>Process</Term>
419 <ListItem><Para>
420 Process file with aven to produce <filename>.3d</filename> file (and <filename>.err</filename> file)
421 </Para></ListItem>
422 </VarListEntry>
423 </VariableList>
424 </ListItem>
425 </VarListEntry>
427 <VarListEntry><Term><filename>.3d</filename></Term>
428 <ListItem>
429 <VariableList>
430 <VarListEntry><Term>Open</Term>
431 <ListItem><Para>
432 Load file into Aven
433 </Para></ListItem>
434 </VarListEntry>
435 <VarListEntry><Term>Print</Term>
436 <ListItem><Para>
437 Print the file via Aven
438 </Para></ListItem>
439 </VarListEntry>
440 <VarListEntry><Term>Extend</Term>
441 <ListItem><Para>
442 Produce extended elevation
443 </Para></ListItem>
444 </VarListEntry>
445 <VarListEntry><Term>Convert to DXF</Term>
446 <ListItem><Para>
447 This entry used to be provided to allow converting to a DXF file (suitable
448 for importing into many CAD packages) but this functionality is now available
449 from inside Aven with the ability to control what is exported, and this entry
450 was dropped in 1.2.35.
451 </Para></ListItem>
452 </VarListEntry>
453 <VarListEntry><Term>Convert for hand plotting</Term>
454 <ListItem><Para>
455 This entry used to be provided to allow converting to a <filename>.pos</filename> file
456 listing all the stations and their coordinates, but this functionality is now
457 available from inside Aven with the ability to control what is exported, and
458 this entry was dropped in 1.2.35.
459 </Para></ListItem>
460 </VarListEntry>
461 </VariableList>
462 </ListItem>
463 </VarListEntry>
465 <VarListEntry><Term><filename>.err</filename></Term>
466 <ListItem>
467 <VariableList>
468 <VarListEntry><Term>Open</Term>
469 <ListItem><Para>
470 Load file into Notepad
471 </Para></ListItem>
472 </VarListEntry>
473 <VarListEntry><Term>Sort by Error</Term>
474 <ListItem><Para>
475 Sort <filename>.err</filename> file by the error in each traverse
476 </Para></ListItem>
477 </VarListEntry>
478 <VarListEntry><Term>Sort by Horizontal Error</Term>
479 <ListItem><Para>
480 Sort <filename>.err</filename> file by the horizontal error in each traverse
481 </Para></ListItem>
482 </VarListEntry>
483 <VarListEntry><Term>Sort by Vertical Error</Term>
484 <ListItem><Para>
485 Sort <filename>.err</filename> file by the vertical error in each traverse
486 </Para></ListItem>
487 </VarListEntry>
488 <VarListEntry><Term>Sort by Percentage Error</Term>
489 <ListItem><Para>
490 Sort <filename>.err</filename> file by the percentage error in each traverse
491 </Para></ListItem>
492 </VarListEntry>
493 <VarListEntry><Term>Sort by Error per Leg</Term>
494 <ListItem><Para>
495 Sort <filename>.err</filename> file by the error per leg in each traverse
496 </Para></ListItem>
497 </VarListEntry>
498 </VariableList>
499 </ListItem>
500 </VarListEntry>
501 </VariableList>
503 </Sect3>
505 </Sect2>
507 <Sect2><Title>Configuration</Title>
509 <Sect3><Title>Selecting Your Preferred Language</Title>
511 <Para>Survex has extensive internationalisation capabilities. The
512 language used for messages from Survex and most of the library calls
513 it uses can be changed. By default this is picked up from the
514 language the operating system is set to use (from "Regional Settings"
515 in Control Panel on Microsoft Windows, from the
516 <systemitem>LANG</systemitem> environment variable on UNIX
517 If no setting
518 is found, or <Application>Survex</Application> hasn't been translated into the
519 requested language, UK English is used.</Para>
521 <Para>
522 However you may want to override the language manually -
523 for example if Survex isn't available in your native language
524 you'll want to choose the supported language you understand best.
525 </Para>
527 <Para>
528 To do this, you set the
529 <systemitem>SURVEXLANG</systemitem> environment variable. Here's a list
530 of the codes currently supported:</Para>
532 <informaltable frame="all">
533 <tgroup cols="2">
534 <thead>
535 <row><entry>Code</entry><entry>Language</entry></row>
536 </thead>
537 <tbody>
538 <row><entry>en</entry><entry>International English</entry></row>
539 <row><entry>en_US</entry><entry>US English</entry></row>
540 <row><entry>bg</entry><entry>Bulgarian</entry></row>
541 <row><entry>ca</entry><entry>Catalan</entry></row>
542 <row><entry>de</entry><entry>German</entry></row>
543 <row><entry>de_CH</entry><entry>Swiss German</entry></row>
544 <row><entry>el</entry><entry>Greek</entry></row>
545 <row><entry>es</entry><entry>Spanish</entry></row>
546 <row><entry>fr</entry><entry>French</entry></row>
547 <row><entry>hu</entry><entry>Hungarian</entry></row>
548 <row><entry>id</entry><entry>Indonesian</entry></row>
549 <row><entry>it</entry><entry>Italian</entry></row>
550 <row><entry>pl</entry><entry>Polish</entry></row>
551 <row><entry>pt</entry><entry>Portuguese</entry></row>
552 <row><entry>pt_BR</entry><entry>Brazillian Portuguese</entry></row>
553 <row><entry>ro</entry><entry>Romanian</entry></row>
554 <row><entry>ru</entry><entry>Russian</entry></row>
555 <row><entry>sk</entry><entry>Slovak</entry></row>
556 <row><entry>zh_CN</entry><entry>Chinese (Simplified)</entry></row>
557 </tbody>
558 </tgroup>
559 </informaltable>
561 <Para>Here are examples of how to set this environment variable to give
562 messages in French (language code fr):</Para>
564 <VariableList>
565 <VarListEntry><Term>Microsoft Windows</Term>
566 <ListItem><Para>
567 For MS Windows proceed as follows (this description was written from
568 MS Windows 2000, but it should be fairly similar in other versions): Open the
569 Start Menu, navigate to the Settings sub-menu, and
570 open Control Panel. Open System (picture of a computer) and click on the
571 Advanced tab. Choose `Environmental Variables', and create a new one: name
572 <systemitem>SURVEXLANG</systemitem>, value <systemitem>fr</systemitem>.
573 Click OK and the new value should be effective immediately.
574 </Para></ListItem>
575 </VarListEntry>
576 <VarListEntry><Term>UNIX - csh/tcsh</Term>
577 <ListItem><Para><userinput>setenv SURVEXLANG fr</userinput></Para></ListItem>
578 </VarListEntry>
579 <VarListEntry><Term>UNIX - sh/bash</Term>
580 <ListItem><Para><userinput>SURVEXLANG=fr ; export SURVEXLANG</userinput></Para></ListItem>
581 </VarListEntry>
582 </VariableList>
584 <Para>If <Application>Survex</Application> isn't available in your language, you could
585 help out by providing a translation. The initial translation is
586 likely to be about a day's work; after that translations for
587 new or changed messages are occasionally required. Contact us for details
588 if you're interested.</Para>
590 </Sect3>
592 </Sect2>
594 <Sect2><Title>Using <Application>Survex</Application></Title>
596 <Para>
597 Most common tasks can now be accomplished through Aven - processing survey
598 data, viewing the processed data, printing, exporting to other formats,
599 and producing simple extended elevations.
600 </Para>
602 <Para>
603 A few tasks still require you to use the command line. And some functionality
604 is available both via aven and from the command line, which allows it to be
605 scripted.
606 </Para>
608 <Para>
609 The command line programs that come with Survex are:
610 </Para>
612 <VariableList>
614 <VarListEntry><Term>extend</Term>
615 <listitem><Para>
616 Produces extended elevations - this is probably the most useful of
617 these command line tools. Since version 1.2.27 you can produce simple
618 extended elevations from Aven using the "Extended Elevation" function.
619 However the command line tool allows you to specify a spec file to
620 control how the survey is extended, which you can't currently do via
621 Aven.
622 </Para></listitem>
623 </VarListEntry>
625 <VarListEntry><Term>diffpos</Term>
626 <listitem><Para>
627 Compares the positions of stations in two .3d, .pos, etc files.
628 </Para></listitem>
629 </VarListEntry>
631 <VarListEntry><Term>sorterr</Term>
632 <listitem><Para>
633 Sorts a .err file by a specified field.
634 </Para></listitem>
635 </VarListEntry>
637 <VarListEntry><Term>survexport</Term>
638 <listitem><Para>
639 Provides access to Aven's "Export" functionality from the command line,
640 which can be useful in scripts.
641 </Para></listitem>
642 </VarListEntry>
644 <VarListEntry><Term>cavern</Term>
645 <listitem><Para>
646 Processes survey data, but since version 1.2.3 you can process .svx
647 files by simply opening them with Aven, so you no longer need to run
648 cavern from the command line. The main reason to run cavern directly
649 is for use in scripts.
650 </Para></listitem>
651 </VarListEntry>
653 <VarListEntry><Term>dump3d</Term>
654 <listitem><Para>
655 Dumps out a list of the items in a .3d file - it's mainly useful for
656 debugging.
657 </Para></listitem>
658 </VarListEntry>
660 </VariableList>
662 </Sect2>
664 </Sect1>
666 <!-- FIXME
668 type in .svx file
670 run cavern (through aven)
672 run aven
674 how to print/export etc
678 <!-- FIXME perhaps move this after data files section? -->
679 <Sect1><Title>Survex Programs</Title>
680 <?dbhtml filename="cmdline.htm">
682 <Sect2><Title>Standard Options</Title>
684 <Para>All <Application>Survex</Application> programs respond to the following command line options:
685 </Para>
687 <VariableList>
689 <VarListEntry><Term>--help</Term><listitem><Para>
690 display option summary and exit
691 </Para></listitem></VarListEntry>
693 <VarListEntry><Term>--version</Term><listitem><Para>
694 output version information and exit
695 </Para></listitem></VarListEntry>
697 </VariableList>
699 </Sect2>
701 <Sect2><Title>Short and Long Options</Title>
703 <Para>
704 Options have two forms: short (a dash followed by a single letter e.g.
705 <command>cavern -q</command>) and long (two dashes followed by one or more words e.g.
706 <command>cavern --quiet</command>). The long form is generally easier to
707 remember, while the short form is quicker to type. Options are often
708 available in both forms.
709 </Para>
711 <Note><Para>Command line options are case sensitive, so "-B" and "-b"
712 are different (this didn't used to be the case before Survex 0.90). Case
713 sensitivity doubles the number of available short options (and is also the
714 norm on UNIX).
715 </Para></Note>
716 </Sect2>
718 <Sect2><Title>Filenames on the Command Line</Title>
720 <Para>Filenames with spaces can be processed (provided your operating system
721 supports them - UNIX does, and so do modern versions of Microsoft
722 Windows). You need to enclose the filename in quotes like so:
723 <userinput>cavern "Spider Cave"</userinput>
724 </Para>
726 <Para>A file specified on the command line of any of the <Application>Survex</Application> suite
727 of programs will be looked for as specified. If it is not found, then the
728 file is looked for with the appropriate extension appended. So
729 <userinput>cavern survey</userinput> will look first for
730 <filename>survey</filename>, then for <filename>survey.svx</filename>.
731 </Para>
733 </Sect2>
735 <Sect2><title>Command Reference</title>
737 <refentry id="cavern">
738 <?dbhtml filename="cavern.htm">
739 &man.cavern;
740 </refentry>
741 <refentry id="aven">
742 <?dbhtml filename="aven.htm">
743 &man.aven;
744 </refentry>
745 <refentry id="diffpos">
746 <?dbhtml filename="diffpos.htm">
747 &man.diffpos;
748 </refentry>
749 <refentry id="extend">
750 <?dbhtml filename="extend.htm">
751 &man.extend;
752 </refentry>
753 <refentry id="sorterr">
754 <?dbhtml filename="sorterr.htm">
755 &man.sorterr;
756 </refentry>
757 <refentry id="survexport">
758 <?dbhtml filename="survexport.htm">
759 &man.survexport;
760 </refentry>
762 </Sect2>
764 </Sect1>
766 <Sect1><Title><Application>Survex</Application> data files</Title>
767 <?dbhtml filename="datafile.htm">
769 <Para>Survey data is entered in the form of text files. You can use any
770 text editor you like for this, so long as it has the capability of
771 writing a plain ASCII text file. The data format is very flexible;
772 unlike some other cave surveying software, Survex does not require
773 survey legs to be rearranged to suit the computer, and the ordering
774 of instrument readings on each line is fully specifiable. So you can enter
775 your data much as it appears on the survey notes, which is important
776 in reducing the opportunities for transcription errors.
777 </Para>
779 <Para>
780 Also all the special characters are user-definable - for example,
781 the separators can be spaces and tabs, or commas (e.g. when exporting from a
782 spreadsheet), etc; the decimal point can be a slash (for clarity), a comma
783 (as used in continental Europe), or anything else you care to choose.
784 This flexibility
785 means that it should be possible to read in data from almost any sort of
786 survey data file without much work.
787 </Para>
789 <Para><Application>Survex</Application> places no restrictions on you in terms of the ordering
790 of survey legs. You can enter or process data in any order and <Application>Survex</Application> will
791 read it all in before determining how it is connected. You can also use the
792 hierarchical naming so that you do not need to worry about using the same
793 station name twice.
794 </Para>
796 <!-- FIXME don't encourage separate processing -->
797 <Para>The usual arrangement is to have one file which lists all the others
798 that are included (e.g., <filename>161.svx</filename>). Then
799 <command>cavern 161</command> will process all your data. To just process a
800 section use the filename for that section, e.g. <command>cavern dtime</command>
801 will process the dreamtime file/section of Kaninchenh&ouml;hle. To
802 help you out, if all legs in a survey are connected to one another
803 but the survey has no fixed points, cavern
804 will 'invent' a fixed point and print a warning message to this
805 effect.
806 </Para>
808 <Para>
809 It is up to you what data you put in which files. You
810 can have one file per trip, or per area of the cave, or just one
811 file for the whole cave if you like.
812 On a large survey project it makes sense to group related surveys in the
813 same file or directory.
814 </Para>
815 <!-- FIXME: wook sez:
817 Point out in documentation that file structure and survey structure don't
818 have to be the same. And in particular that folder/directory names can be
819 different.
821 Which is partly covered above, though the last bit isn't...
824 <!-- FIXME "Anatomy of a Survey" section -->
825 <Sect2><Title>Readings</Title>
827 <Para>Blank lines (i.e. lines consisting solely of BLANK characters)
828 are ignored. The last line in the file need not be terminated by
829 an end of line character. All fields on a line must be separated
830 by at least one BLANK character. An OMIT character
831 (default '-') indicates that a field is unused. If the field is
832 not optional, then an error is given.
833 </Para>
835 </Sect2>
837 <Sect2><Title>Survey Station Names</Title>
839 <Para><Application>Survex</Application> has a powerful system for naming stations. It
840 uses a hierarchy of survey names, similar to the nested folders
841 your computer stores files in.
842 So point 6 in the entrance survey of Kaninchenh&ouml;hle
843 (cave number 161) is referred to as: 161.entrance.6
844 </Para>
846 <Para>This seems a natural way to refer to station names. It also
847 means that it is very easy to include more levels, for example if you
848 want to plot all the caves in the area you just list them all in
849 another file, specifying a new prefix. So to group 3 nearby caves
850 on the Loser Plateau you would use a file like
851 this:
852 </Para>
854 <programlisting>
855 *begin Loser
856 *include 161
857 *include 2YrGest
858 *include 145
859 *end Loser</programlisting>
861 <Para>
862 The entrance series point mentioned above would now be referred
863 to as: Loser.161.entrance.6
864 </Para>
866 <!--
867 <Para>This may seem a tad complex but is really very natural once you
868 get the hang of it.
869 </Para>
871 <Para>You do not have to use this system at all, and can just give all
872 stations unique identifiers if you like:
873 </Para>
875 <Para>1, 2, 3, 4, 5, ... 1381, 1382
876 </Para>
878 <Para>or
879 </Para>
881 <Para>AA06, AA07, P34, ZZ6, etc.
882 </Para>
884 <!-- FIXME:
885 <Para>However you'll loose the ability to handle subsurveys if you do.
886 </Para>
889 <Para>Station and survey names may contain any alphanumeric characters and
890 additionally any characters in NAMES (default `_' and `-'). Alphabetic
891 characters may be forced to upper or lower case by using the *case
892 command. Station names may be any length - if you want to only treat
893 the first few characters as significant you can get cavern to truncate
894 the names using the *truncate command.
895 </Para>
897 <Sect3><Title>Anonymous Stations</Title>
899 <Para>
900 Survex supports the concept of anonymous survey stations. That is
901 survey stations without a name. Each time an anonymous station name is
902 used it represents a different point. Currently three types of anonymous
903 station are supported, referred to by one, two or three separator characters
904 - with the default separator of '.', that means '.', '..', and '...' are
905 anonymous stations. Their meanings are:</Para>
907 <VariableList>
908 <VarListEntry><Term>Single separator ('.' by default)</Term>
909 <ListItem><Para>
910 An anonymous non-wall point at the end of an implicit splay.
911 </Para></ListItem></VarListEntry>
913 <VarListEntry><Term>Double separator ('..' by default)</Term>
914 <ListItem><Para>
915 An anonymous wall point at the end of an implicit splay.
916 </Para></ListItem></VarListEntry>
918 <VarListEntry><Term>Triple separator ('...' by default)</Term>
919 <ListItem><Para>
920 an anonymous point with no implicit flags on the leg (intended for cases like
921 a disto leg along a continuing passage).
922 </Para></ListItem></VarListEntry>
923 </VariableList>
925 <Para>
926 You can map '-' to '..' (for compatibility with data from pocket topo) using
927 the command:
928 </Para>
930 <programlisting>
931 *alias station - ..
932 </programlisting>
934 <Para>Support for anonymous stations and for '*alias station - ..' was added in
935 Survex 1.2.7.</Para>
937 </Sect3>
939 </Sect2>
941 <Sect2><Title>Numeric fields</Title>
943 <Para>[&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;integer part&gt; [ &lt;DECIMAL&gt;
944 [ &lt;decimal fraction&gt; ] ]
945 </Para>
947 <Para>
948 or [&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;DECIMAL&gt; &lt;dec fraction&gt;
949 </Para>
951 <Para><!-- FIXME: put informal description first -->
952 i.e. optional PLUS or MINUS sign in front, with
953 optional DECIMAL character (default '.'), which may be
954 embedded, leading or trailing. No spaces are allowed between the
955 various elements.
956 </Para>
958 <Para>
959 All of these are valid examples: +47, 23, -22, +4.5, 1.3, -0.7, +.15, .4,
960 -.05
961 </Para>
963 </Sect2>
965 <Sect2><Title>Accuracy</Title>
967 <Para>Accuracy assessments may be provided or defaulted for any survey
968 leg. These determine the distribution of loop closure errors over the
969 legs in the loop. See *SD for more information.
970 </Para>
972 </Sect2>
974 <!--
975 <Sect2><Title>Survey Coordinate Range</Title>
977 <Para>
978 If we store distances to nearest 10um (0.01mm) in 4 bytes, this
979 gives a range of ~20 km. This method is currently not used, but
980 has several advantages (data storage space [double uses 8 bytes
981 - with my C compiler], speed (unless your FP chip works in parallel
982 with your CPU [e.g. the new Acorn FPU for the ARM], and numerical
983 accuracy [compared to using floats at least]) and so may be adopted
984 in future). Nearest 0.1mm gives -200 km, which is enough for most
985 people, but may mean rounding errors become significant.
986 </Para>
988 <Para>
989 I will have to do some sums...
990 </Para>
992 </Sect2>
996 <Sect2><Title>Cavern Commands</Title>
998 <Para>Commands in <filename>.svx</filename> files are introduced by an asterisk
999 (by default - this can be changed using the <command>set</command> command).
1000 </Para>
1002 <Para>The commands are documented in a common format:
1003 </Para>
1005 <!-- FIXME: make this a RefGroup (or whatever that's called) of RefEntry-s? -->
1006 <itemizedlist>
1007 <listitem><para>Command Name</para></listitem>
1008 <listitem><para>Syntax</para></listitem>
1009 <listitem><para>Example</para></listitem>
1010 <listitem><para>Validity</para></listitem>
1011 <!-- FIXME
1012 anywhere, in a block, at start of a block, after a begin (for *end)
1014 <listitem><para>Description</para></listitem>
1015 <listitem><para>Caveats</para></listitem>
1016 <listitem><para>See Also</para></listitem>
1017 <!-- FIXME
1018 "Usefulness" - or status maybe?
1019 deprecated, esoteric (*set), useful, vital
1021 </itemizedlist>
1023 <Sect3><Title>ALIAS</Title>
1025 <VariableList>
1027 <VarListEntry><Term>Syntax</Term>
1029 <listitem><Para>*alias station &lt;alias&gt; [&lt;target&gt;]</Para></listitem>
1031 </VarListEntry>
1033 <VarListEntry><Term>Example</Term>
1035 <listitem>
1036 <Para>
1037 <programlisting>
1038 *begin parsons_nose
1039 *alias station - ..
1040 1 2 12.21 073 -12
1041 2 - 4.33 011 +02
1042 2 - 1.64 180 +03
1043 2 3 6.77 098 -04
1044 *end parsons_nose</programlisting>
1045 </Para>
1046 </listitem>
1048 </VarListEntry>
1050 <VarListEntry><Term>Description</Term>
1052 <listitem><Para>*alias allows you to map a station name which appears in
1053 the survey data to a different name internally. At present, you can only
1054 create an alias of '-' to '..', which is intended to support the pocket topo
1055 style notation of '-' being a splay to an anonymous point on the cave wall.
1056 And you can unalias '-' with '*alias station -'.
1057 </Para>
1059 <Para>
1060 Aliases are scoped by *begin/*end blocks - when a *end is reached, the aliases
1061 in force at the corresponding begin are restored.
1062 </Para>
1064 <Para>
1065 *alias was added in Survex 1.2.7.
1066 </Para></listitem>
1068 </VarListEntry>
1070 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1072 <VarListEntry><Term>See Also</Term>
1074 <listitem><Para>*begin, *end</Para></listitem>
1076 </VarListEntry>
1078 </VariableList>
1080 </Sect3>
1082 <Sect3><Title>BEGIN</Title>
1084 <VariableList>
1086 <VarListEntry><Term>Syntax</Term>
1088 <listitem><Para>*begin [&lt;survey&gt;]</Para></listitem>
1090 </VarListEntry>
1092 <VarListEntry><Term>Example</Term>
1094 <listitem>
1095 <Para>
1096 <programlisting>
1097 *begin littlebit
1098 1 2 10.23 106 -02
1099 2 3 1.56 092 +10
1100 *end littlebit</programlisting>
1102 <programlisting>
1103 ; length of leg across shaft estimated
1104 *begin
1105 *sd tape 2 metres
1106 9 10 6. 031 -07
1107 *end</programlisting>
1108 </Para>
1109 </listitem>
1111 </VarListEntry>
1113 <VarListEntry><Term>Description</Term>
1115 <listitem><Para>*begin stores the current values of the current settings
1116 such as instrument calibration, data format, and so on.
1117 These stored values are restored after the corresponding *end.
1118 If a survey name is given, this is used inside the *begin/*end block,
1119 and the corresponding *end should have the same survey name.
1120 *begin/*end blocks may be nested to indefinite depth.
1121 </Para></listitem>
1123 </VarListEntry>
1125 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1127 <VarListEntry><Term>See Also</Term>
1129 <listitem><Para>*end, *prefix</Para></listitem>
1131 </VarListEntry>
1133 </VariableList>
1135 </Sect3>
1137 <Sect3><Title>CALIBRATE</Title>
1139 <VariableList>
1141 <VarListEntry><Term>Syntax</Term>
1143 <listitem>
1144 <Para>*calibrate &lt;quantity list&gt; &lt;zero error&gt; [&lt;scale&gt;]
1145 </Para>
1146 <Para>*calibrate &lt;quantity list&gt; &lt;zero error&gt; &lt;units&gt; [&lt;scale&gt;]
1147 </Para>
1148 <Para>*calibrate default
1149 </Para>
1150 </listitem>
1152 </VarListEntry>
1154 <VarListEntry><Term>Example</Term>
1156 <listitem>
1157 <Para>
1158 <programlisting>
1159 *calibrate tape +0.3
1160 </programlisting>
1161 </Para>
1162 </listitem>
1164 </VarListEntry>
1166 <VarListEntry><Term>Description</Term>
1168 <listitem>
1170 <Para>
1171 *calibrate is used to specify instrument calibrations, via a zero error
1172 and an optional scale factor (which defaults to 1.0 if not specified).
1173 Without an explicit calibration the zero error is 0.0 and the scale factor is
1174 1.0.
1175 </Para>
1177 <Para>
1178 &lt;quantity list&gt; is one or more of:
1179 </Para>
1181 <informaltable frame="all">
1182 <tgroup cols="2">
1183 <thead>
1184 <row><entry>Quantity</entry><entry>Aliases</entry></row>
1185 </thead>
1186 <tbody>
1187 <row><entry>LENGTH</entry><entry>TAPE</entry></row>
1188 <row><entry>BEARING</entry><entry>COMPASS</entry></row>
1189 <row><entry>GRADIENT</entry><entry>CLINO</entry></row>
1190 <row><entry>BACKLENGTH</entry><entry>BACKTAPE</entry></row>
1191 <row><entry>BACKBEARING</entry><entry>BACKCOMPASS</entry></row>
1192 <row><entry>BACKGRADIENT</entry><entry>BACKCLINO</entry></row>
1193 <row><entry>COUNT</entry><entry>COUNTER</entry></row>
1194 <row><entry>LEFT</entry><entry></entry></row>
1195 <row><entry>RIGHT</entry><entry></entry></row>
1196 <row><entry>UP</entry><entry>CEILING</entry></row>
1197 <row><entry>DOWN</entry><entry>FLOOR</entry></row>
1198 <row><entry>DEPTH</entry><entry></entry></row>
1199 <row><entry>DECLINATION</entry><entry></entry></row>
1200 <row><entry>EASTING</entry><entry>DX</entry></row>
1201 <row><entry>NORTHING</entry><entry>DY</entry></row>
1202 <row><entry>ALTITUDE</entry><entry>DZ</entry></row>
1203 <row><entry>DECLINATION</entry><entry></entry></row>
1204 </tbody>
1205 </tgroup>
1206 </informaltable>
1208 <Para>
1209 The specified calibration is applied to each quantity in the list, which
1210 is handy if you use the same instrument to measure several things, for
1211 example:
1212 </Para>
1214 <programlisting>*calibrate left right up down +0.1</programlisting>
1216 <Para>
1217 You need to be careful about the sign of the ZeroError. Survex follows
1218 the convention used with scientific instruments - the ZeroError is what
1219 the instrument reads when measuring a reading which should be zero. So
1220 for example, if your tape measure has the end missing, and you are using the
1221 30cm mark to take all measurements from, then a zero distance would be measured
1222 as 30cm and you would correct this with:
1223 </Para>
1225 <programlisting>*CALIBRATE tape +0.3</programlisting>
1227 <Para>If you tape was too long, starting at -20cm (it does happen!)
1228 then you can correct it with:
1229 </Para>
1231 <programlisting>*CALIBRATE tape -0.2</programlisting>
1233 <Para>Note: ZeroError is irrelevant for Topofil counters and depth
1234 gauges since pairs of readings are subtracted.
1235 </Para>
1237 <Para>
1238 In the first form in the synopsis above, the zero error is measured by the
1239 instrument itself (e.g. reading off the number where a truncated tape now ends)
1240 and any scale factor specified applies to it, like so:
1241 </Para>
1243 <Para>
1244 Value = ( Reading - ZeroError ) * Scale (Scale defaults to 1.0)
1245 </Para>
1247 <Para>
1248 In the second form above (supported since Survex 1.2.21), the zero error has
1249 been measured externally (e.g. measuring how much too long your tape is with
1250 a ruler) - the units of the zero error are explicitly specified and any scale
1251 factor isn't applied to it:
1252 </Para>
1254 <Para>
1255 Value = ( Reading * Scale ) - ZeroError (Scale defaults to 1.0)
1256 </Para>
1258 <Para>
1259 If the scale factor is 1.0, then the two forms are equivalent, though they
1260 still allow you to differentiate between how the zero error has been determined.
1261 </Para>
1263 <Para>
1264 With older Survex versions, you would specify the magnetic declination
1265 (difference between True North and Magnetic North) by using *calibrate
1266 declination to set an explicit value (with no scale factor allowed). Since
1267 Survex 1.2.22, it's recommended to instead use the new *declination command
1268 instead - see the documentation of that command for more details.
1269 </Para>
1271 </listitem>
1273 </VarListEntry>
1275 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1277 <VarListEntry><Term>See Also</Term>
1279 <listitem><Para>*declination, *units</Para></listitem>
1281 </VarListEntry>
1283 </VariableList>
1285 </Sect3>
1287 <Sect3><Title>CASE</Title>
1289 <VariableList>
1291 <VarListEntry><Term>Syntax</Term>
1293 <listitem><para>*case preserve|toupper|tolower</para></listitem>
1295 </VarListEntry>
1297 <VarListEntry><Term>Example</Term>
1299 <listitem>
1300 <Para>
1301 <programlisting>
1302 *begin bobsbit
1303 ; Bob insists on using case sensitive station names
1304 *case preserve
1305 1 2 10.23 106 -02
1306 2 2a 1.56 092 +10
1307 2 2A 3.12 034 +02
1308 2 3 8.64 239 -01
1309 *end bobsbit</programlisting>
1310 </Para>
1311 </listitem>
1313 </VarListEntry>
1315 <VarListEntry><Term>Description</Term>
1317 <listitem><Para>*case determines how the case of letters in survey names is
1318 handled. By default all names are forced to lower case (which gives a case
1319 insensitive match, but you can tell cavern to force to upper case, or leave
1320 the case as is (in which case '2a' and '2A' will be regarded as different).
1321 </Para></listitem>
1323 </VarListEntry>
1325 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1327 <VarListEntry><Term>See Also</Term>
1329 <listitem><Para>*truncate</Para></listitem>
1331 </VarListEntry>
1333 </VariableList>
1335 <!-- FIXME - work this text in here or elsewhere
1337 What I mean (though failed to express very well) is that a dataset without
1338 this information isn't the same dataset (in general anyway). For example:
1340 A1 a2 10.32 140 -05
1341 a2 a3 4.91 041 -01
1342 a1 a3 7.01 206 02
1344 is either a traverse of 3 legs or a (probably badly misclosed) loop. If
1345 these names are on the original survey notes, the surveyors ought to say
1346 whether "A1" is the same as "a1" (although the usual case for using this
1347 feature is probably for importing data from elsewhere). Similarly for
1348 truncation. Whether a clino of +/-90 degrees (or +/-100 grad, etc) is
1349 interpreted as a plumb is something that should have been noted in the cave
1350 (unless it's implicit because it's standard practice for a survey project).
1352 It's a similar issue to calibration data in many ways. You can argue it's
1353 not part of "the survey", but without it the survey won't be the same shape,
1354 and it's not useful to process the same survey with different settings for
1355 compass calibration or name case sensitivity.
1357 >Clearly that is unhelpfully strict, but it is
1358 >important to be semantically clear about what is 'data' and what is 'commands
1359 >or meta-data' which describe what to do with/how to interpret that data.
1361 Think of the lines starting with a "*" as "command or meta-data".
1363 >The most-correct solution to this is (I believe) Martin Heller's idea about
1364 >including 'rules' in the datastream, but that's too big a subject for right
1365 >now.
1367 >The reason '-C' was made into a command-line option, was that it made very
1368 >little sense to change it part way though a dataset. What exactly happens if
1369 >you suddenly tell cavern to become case-sensitive halfway through a run?
1371 -C has always had 3 settings - "leave case alone", "force to lower", and
1372 "force to upper". It doesn't really mean "case sensitivity" but rather
1373 something like "case processing". So you can usefully change it during a
1374 run. So if my dataset treats "NoTableChamber" (so named because it was
1375 lacking in furniture) as different from "NotableChamber" (which was notable
1376 for other reasons) I can process it with a dataset from someone else which
1377 needs to be treated as case insensitive like so:
1379 *begin my_cave
1380 *include my_dataset
1381 *end my_cave
1383 *equate my_cave.NoTableChamber.14 your_cave.linkpassage.13
1385 *begin your_cave
1386 *case tolower
1387 *include your_dataset
1388 *end your_cave
1390 You may be thinking of -U<n>, which used to mean "only compare the first n
1391 characters of station names", but that doesn't allow arbitrary datasets to
1392 be processed together.
1394 So we changed it to mean "truncate station names to n characters", and
1395 allowed it to be changed at any point, rather than being set once for the
1396 whole run.
1400 </Sect3>
1402 <Sect3><Title>COPYRIGHT</Title>
1404 <VariableList>
1406 <VarListEntry><Term>Syntax</Term>
1408 <listitem><Para>*copyright &lt;date&gt; &lt;text&gt;</Para></listitem>
1410 </VarListEntry>
1412 <VarListEntry><Term>Example</Term>
1414 <listitem>
1415 <Para>
1416 <programlisting>
1417 *begin littlebit
1418 *copyright 1983 CUCC
1419 1 2 10.23 106 -02
1420 2 3 1.56 092 +10
1421 *end littlebit</programlisting>
1422 </Para>
1423 </listitem>
1425 </VarListEntry>
1427 <VarListEntry><Term>Validity</Term>
1429 <listitem><Para>valid at the start of a *begin/*end block.
1430 </Para></listitem>
1432 </VarListEntry>
1434 <VarListEntry><Term>Description</Term>
1436 <listitem><Para>*copyright allows the copyright information to be
1437 stored in a way that can be automatically collated.
1438 </Para></listitem>
1440 </VarListEntry>
1442 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1444 <VarListEntry><Term>See Also</Term>
1446 <listitem><Para>*begin</Para></listitem>
1448 </VarListEntry>
1450 </VariableList>
1452 </Sect3>
1454 <Sect3><Title>CS</Title>
1456 <VariableList>
1458 <VarListEntry><Term>Syntax</Term>
1460 <listitem><Para>*cs [out] &lt;coordinate system&gt;</Para></listitem>
1462 </VarListEntry>
1464 <VarListEntry><Term>Example</Term>
1466 <listitem>
1467 <Para>
1468 <programlisting>
1469 *cs UTM60S
1470 *fix beehive 313800 5427953 20</programlisting>
1471 </Para>
1473 <Para>
1474 <programlisting>
1475 ; Output in the coordinate system used in the Totes Gebirge in Austria
1476 *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>
1477 </Para>
1478 </listitem>
1480 </VarListEntry>
1482 <VarListEntry><Term>Description</Term>
1484 <listitem><Para>*cs allows the coordinate systems used for fixed points and for
1485 processed survey data to be specified.
1486 </Para>
1488 <Para>
1489 The "input" coordinate system is set with <command>*cs</command> and you can
1490 change it between fixed points if you have some fixed points in different
1491 coordinate systems to others.
1492 </Para>
1494 <Para>
1495 The "output" coordinate system is set with <command>*cs out</command> and is
1496 what the survey data is processed in and the coordinate system used for
1497 resultant <command>.3d</command> file. The output coordinate system must be
1498 in metres with axis order (East, North, Up), so for example
1499 <command>*cs out long-lat</command> isn't valid.
1500 </Para>
1502 <Para>
1503 *cs was added in Survex 1.2.14, but handling of fixed points specified with
1504 latitude and longitude didn't work until 1.2.21. Also *fix with standard
1505 deviations specified also didn't work until 1.2.21.
1506 </Para>
1508 <Para>
1509 The currently supported coordinate systems are:
1510 </Para>
1512 <Para>CUSTOM followed by a PROJ string (like in the example above).</Para>
1514 <Para>EPSG: followed by a positive integer code. EPSG codes cover most
1515 coordinate systems in use, and PROJ supports many of these. The website
1516 <ulink url="https://epsg.io/">https://epsg.io/</ulink> is a useful resource for
1517 finding the EPSG code you want. For example, <command>EPSG:4167</command> is
1518 NZGD2000. Supported since Survex 1.2.15.</Para>
1520 <Para>ESRI: followed by a positive integer code. ESRI codes are used by
1521 ArcGIS to specify coordinate systems (in a similar way to EPSG codes), and PROJ
1522 supports many of them. Supported since Survex 1.2.15.</Para>
1524 <Para>EUR79Z30 for UTM zone 30, EUR79 datum. Supported since Survex 1.2.15.
1525 </Para>
1527 <Para>IJTSK for the modified version of the Czechoslovak S-JTSK system where
1528 the axes point East and North. Supported since Survex 1.2.15.</Para>
1530 <Para>IJTSK03 for a variant of IJTSK. Supported since Survex 1.2.15.</Para>
1532 <Para>JTSK for the Czechoslovak S-JTSK system. Its axes point West
1533 and South, so it's not supported as an output coordinate system.
1534 Supported since Survex 1.2.16.</Para>
1536 <Para>JTSK03 for a variant of JTSK. Supported since Survex 1.2.16.</Para>
1538 <Para>LONG-LAT for longitude/latitude. The WGS84 datum is assumed.
1539 NB <command>*fix</command> expects the coordinates in the order x,y,z which
1540 means longitude (i.e. E/W), then latitude (i.e. N/S), then altitude.
1541 Supported since Survex 1.2.15.</Para>
1543 <Para>OSGB: followed by a two letter code for the UK Ordnance Survey National
1544 Grid. The first letter should be 'H', 'N', 'O', 'S' or 'T'; the second any
1545 letter except 'I'. For example, <command>OSGB:SD</command>.
1546 Supported since Survex 1.2.15.</Para>
1548 <Para>S-MERC for the "Web Mercator" spherical mercator projection, used by
1549 online map sites like OpenStreetMap, Google maps, Bing maps, etc. Supported
1550 since Survex 1.2.15.
1551 </Para>
1553 <Para>UTM followed by a zone number (1-60), optionally followed by "N" or "S"
1554 (default is North). The WGS84 datum is assumed.</Para>
1556 <Para>
1557 By default, Survex works in an unspecified coordinate system (and this was the
1558 only option before *cs was added). However, it's useful for the coordinate
1559 system which the processed survey data is in to be specified if you want to use
1560 the processed data in ways which required knowing the coordinate system (such as
1561 exporting a list of entrances for use in a GPS). You can now do this by using
1562 "*cs out".
1563 </Para>
1565 <Para>
1566 It is also useful to be able to take coordinates for fixed points in whatever
1567 coordinate system you receive them in and put them directly into Survex, rather
1568 than having to convert with an external tool. For example, you may have your
1569 GPS set to show coordinates in UTM with the WGS84 datum, even though you want
1570 the processed data to be in some local coordinate system. And someone else
1571 may provide GPS coordinates in yet another coordinate system. You just need
1572 to set the appropriate coordinate system with "*cs" before each group of "*fix"
1573 commands in a particular coordinate system.
1574 </Para>
1576 <Para>
1577 If you're going to make use of "*cs", then the coordinate system must be
1578 specified for everything, so a coordinate system must be in effect for all
1579 "*fix" commands, and you must set the output coordinate system before any
1580 points are fixed.
1581 </Para>
1583 <Para>
1584 Also, if "*cs" is in use, then you can't omit the coordinates in a "*fix"
1585 command, and a fixed point won't be invented if none exists.
1586 </Para>
1588 <Para>
1589 If you use "*cs out" more than once, the second and subsequent commands are
1590 silently ignored - this makes it possible to combine two datasets with
1591 different "*cs out" settings without having to modify either of them.
1592 </Para>
1594 <Para>
1595 Something to be aware of with "*cs" is that altitudes are currently assumed to
1596 be "height above the ellipsoid", whereas GPS units typically give you "height
1597 above sea level", or more accurately "height above a particular geoid". This
1598 is something we're looking at how best to address, but you shouldn't need to
1599 worry about it if your fixed points are in the same coordinate system as your
1600 output, or if they all use the same ellipsoid. For a more detailed discussion
1601 of this, please see: http://expo.survex.com/handbook/survey/coord.htm
1602 </Para>
1603 </listitem>
1605 </VarListEntry>
1607 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1609 <VarListEntry><Term>See Also</Term>
1611 <listitem><Para>*fix</Para></listitem>
1613 </VarListEntry>
1615 </VariableList>
1617 </Sect3>
1618 <Sect3><Title>DATA</Title>
1620 <VariableList>
1622 <VarListEntry><Term>Syntax</Term>
1624 <listitem>
1625 <Para>*data &lt;style&gt; &lt;ordering&gt;</Para>
1626 <Para>*data</Para>
1627 </listitem>
1629 <!-- BACKCOMPASS BACKCLINO -->
1630 </VarListEntry>
1632 <VarListEntry><Term>Example</Term>
1634 <listitem>
1635 <Para>
1636 <programlisting>
1637 *data normal from to compass tape clino</programlisting>
1638 </Para>
1640 <Para>
1641 <programlisting>
1642 *data normal station ignoreall newline compass tape clino</programlisting>
1643 </Para>
1644 </listitem>
1646 </VarListEntry>
1648 <VarListEntry><Term>Description</Term>
1650 <listitem><Para>
1651 &lt;style&gt; = DEFAULT|NORMAL|DIVING|CARTESIAN|TOPOFIL|CYLPOLAR|NOSURVEY|PASSAGE
1652 </Para>
1654 <Para>
1655 &lt;ordering&gt; = ordered list of instruments - which are valid depends on the
1656 style.
1657 </Para>
1659 <Para>
1660 In Survex 1.0.2 and later, TOPOFIL is simply a synonym for NORMAL, left in to
1661 allow older data to be processed without modification. Use the name NORMAL
1662 by preference.
1663 </Para>
1665 <Para>
1666 There are two variants of each style - interleaved and non-interleaved.
1667 Non-interleaved is "one line per leg", interleaved has a line for the data
1668 shared between two legs (e.g. STATION=FROM/TO, DEPTH=FROMDEPTH/TODEPTH,
1669 COUNT=FROMCOUNT/TOCOUNT). Note that not all readings that can be shared
1670 have to be, for example here the to/from station name is shared but the
1671 depth gauge readings aren't:
1673 <programlisting>
1674 *data diving station newline fromdepth compass tape todepth</programlisting>
1676 In addition, interleaved data can have a DIRECTION reading, which can be "F"
1677 for a foresight or "B" for a backsight (meaning the direction of the leg is
1678 reversed).
1679 </Para>
1681 <Para>
1682 In interleaved data, a blank line (one which contains only characters which
1683 are set as BLANK) ends the current traverse so can be used to handle
1684 branches in the survey, e.g.:
1685 <programlisting>
1686 *data normal station newline tape compass clino
1689 9.34 087 -05
1691 ; single leg up unexplored side passage
1692 4.30 002 +06
1696 ; and back to the main package
1697 6.29 093 -02
1698 4</programlisting>
1699 </Para>
1701 <Para>
1702 In data styles which include a TAPE reading (i.e. NORMAL, DIVING, and CYLPOLAR
1703 data styles), TAPE may be replaced by FROMCOUNT/TOCOUNT (or COUNT in
1704 interleaved data) to allow processing of surveys performed with a Topofil
1705 instead of a tape.
1706 </Para>
1708 <Para>
1709 In Survex 1.2.44 and later, you can use <command>*data</command> without any
1710 arguments to keep the currently set data style, but resetting any state. This
1711 is useful when you're entering passage tubes with branches - see the description
1712 of the "PASSAGE" style below. (This feature was originally added in 1.2.31,
1713 but was buggy until 1.2.44 - any data up to the next <command>*data</command>
1714 gets quietly ignored).
1715 </Para>
1717 <VariableList>
1719 <VarListEntry><Term>DEFAULT</Term>
1720 <listitem><Para>Select the default data style and ordering (NORMAL style, ordering: from to tape compass clino).</Para></listitem>
1721 </VarListEntry>
1723 <VarListEntry><Term>NORMAL</Term>
1724 <listitem><Para>The usual tape/compass/clino centreline survey.
1725 For non-interleaved data the allowed readings are:
1726 FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO;
1727 for interleaved data the allowed readings are:
1728 STATION DIRECTION TAPE COMPASS CLINO BACKCOMPASS BACKCLINO.
1729 The CLINO/BACKCLINO reading is not required - if it's not given, the vertical
1730 standard deviation is taken to be proportional to the tape measurement.
1731 Alternatively, individual clino readings can be given as OMIT (default "-")
1732 which allows for data where only some clino readings are missing.
1733 E.g.:
1735 <programlisting>
1736 *data normal from to compass clino tape
1737 1 2 172 -03 12.61</programlisting>
1739 <programlisting>
1740 *data normal station newline direction tape compass clino
1742 F 12.61 172 -03
1743 2</programlisting>
1745 <programlisting>
1746 *data normal from to compass clino fromcount tocount
1747 1 2 172 -03 11532 11873</programlisting>
1749 <programlisting>
1750 *data normal station count newline direction compass clino
1751 1 11532
1752 F 172 -03
1753 2 11873</programlisting>
1755 </Para></listitem>
1756 </VarListEntry>
1758 <VarListEntry><Term>DIVING</Term>
1759 <listitem><Para>
1760 An underwater survey where the vertical information is from a diver's depth
1761 gauge. This style can also be also used for an above-water survey where the
1762 altitude is measured with an altimeter. DEPTH is defined as the altitude (Z)
1763 so increases upwards by default. So for a diver's depth gauge, you'll need to
1764 use *CALIBRATE with a negative scale factor (e.g. *calibrate depth 0 -1).
1765 </Para>
1767 <Para>For non-interleaved data the allowed readings are:
1768 FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO FROMDEPTH TODEPTH DEPTHCHANGE (the vertical
1769 can be given as readings at each station, (FROMDEPTH/TODEPTH) or as a change
1770 along the leg (DEPTHCHANGE)).</Para>
1772 <Para>Survex 1.2.20 and later allow an optional CLINO and/or BACKCLINO reading
1773 in DIVING style. At present these extra readings are checked for syntactic
1774 validity, but are otherwise ignored. The intention is that a future version
1775 will check them against the other readings to flag up likely blunders, and
1776 average with the slope data from the depth gauge and tape reading.</Para>
1778 <Para>For interleaved data the allowed readings are:
1779 STATION DIRECTION TAPE COMPASS BACKCOMPASS DEPTH DEPTHCHANGE.
1780 (the vertical change can be given as a reading at the station (DEPTH) or as a change along the leg (DEPTHCHANGE)).
1782 <programlisting>
1783 *data diving from to tape compass fromdepth todepth
1784 1 2 14.7 250 -20.7 -22.4</programlisting>
1786 <programlisting>
1787 *data diving station depth newline tape compass
1788 1 -20.7
1789 14.7 250
1790 2 -22.4</programlisting>
1792 <programlisting>
1793 *data diving from to tape compass depthchange
1794 1 2 14.7 250 -1.7</programlisting>
1795 </Para>
1796 </listitem>
1797 </VarListEntry>
1799 <VarListEntry><Term>CARTESIAN</Term>
1800 <listitem><Para>
1801 Cartesian data style allows you to specify the (x,y,z) changes between
1802 stations. It's useful for digitising surveys where the original survey
1803 data has been lost and all that's available is a drawn up version.
1805 <programlisting>
1806 *data cartesian from to northing easting altitude
1807 1 2 16.1 20.4 8.7</programlisting>
1809 <programlisting>
1810 *data cartesian station newline northing easting altitude
1812 16.1 20.4 8.7
1813 2</programlisting>
1815 <!--FIXME: dx dy dz-->
1816 </Para>
1818 <Note><Para>
1819 Cartesian data are relative to <emphasis>true</emphasis> North not
1820 <emphasis>magnetic</emphasis> North (i.e. they are unaffected by
1821 <command>*calibrate declination</command>).
1822 </Para></Note>
1823 </listitem>
1824 </VarListEntry>
1826 <VarListEntry><Term>CYLPOLAR</Term>
1827 <listitem><Para>
1828 A CYLPOLAR style survey is very similar to a diving survey, except that the tape
1829 is always measured horizontally rather than along the slope of the leg.
1831 <programlisting>
1832 *data cylpolar from to tape compass fromdepth todepth
1833 1 2 9.45 311 -13.3 -19.0</programlisting>
1835 <programlisting>
1836 *data cylpolar station depth newline tape compass
1837 1 -13.3
1838 9.45 311
1839 2 -19.0</programlisting>
1841 <programlisting>
1842 *data cylpolar from to tape compass depthchange
1843 1 2 9.45 311 -5.7</programlisting>
1844 </Para></listitem>
1845 </VarListEntry>
1847 <VarListEntry><Term>NOSURVEY</Term>
1848 <listitem><Para>
1849 A NOSURVEY survey doesn't have any measurements - it merely indicates that
1850 there is line of sight between the pairs of stations.
1852 <programlisting>
1853 *data nosurvey from to
1856 9 11</programlisting>
1858 <programlisting>
1859 *data nosurvey station
1864 *data nosurvey station
1866 11</programlisting>
1867 </Para></listitem>
1868 </VarListEntry>
1870 <VarListEntry><Term>PASSAGE</Term>
1871 <listitem><Para>
1872 This survey style defines a 3D "tube" modelling a passage in the cave.
1873 The tube uses the survey stations listed in the order listed. It's
1874 permitted to use survey stations which aren't directly linked by
1875 the centre-line survey. This can be useful - sometimes the centreline
1876 will step sideways or up/down to allow a better sight for the next
1877 leg and you can ignore the extra station. You can also define tubes
1878 along unsurveyed passages, akin to "nosurvey" legs in the centreline
1879 data.</Para>
1881 <Para>This means that you need to split off side passages into separate
1882 tubes, and hence separate sections of passage data, starting with
1883 a new *data command.</Para>
1885 <Para>
1886 Simple example of how to use this data style (note the use of ignoreall
1887 to allow a free-form text description to be given):
1889 <programlisting>
1890 *data passage station left right up down ignoreall
1891 1 0.1 2.3 8.0 1.4 Sticking out point on left wall
1892 2 0.0 1.9 9.0 0.5 Point on left wall
1893 3 1.0 0.7 9.0 0.8 Highest point of boulder
1894 </programlisting>
1896 Each <command>*data passage</command> data block describes a single continuous
1897 tube - to break a tube or to enter a side passage you need to have a second
1898 block. With Survex 1.2.30 and older, you had to repeat the entire
1899 <command>*data passage</command> line to start a new tube, but in Survex 1.2.31
1900 and later, you can just use <command>*data</command> without any arguments.
1901 </Para>
1903 <Para>
1904 For example here the main passage is 1-2-3 and a side passage is 2-4:
1906 <programlisting>
1907 *data passage station left right up down ignoreall
1908 1 0.1 2.3 8.0 1.4 Sticking out point on left wall
1909 2 0.0 1.9 9.0 0.5 Point on left wall opposite side passage
1910 3 1.0 0.7 9.0 0.8 Highest point of boulder
1911 ; If you're happy to require Survex 1.2.31 or later, you can just use
1912 ; "*data" here instead.
1913 *data passage station left right up down ignoreall
1914 2 0.3 0.2 9.0 0.5
1915 4 0.0 0.5 6.5 1.5 Fossil on left wall
1916 </programlisting>
1917 </Para>
1918 </listitem>
1919 </VarListEntry>
1920 </VariableList>
1922 <Para>
1923 IGNORE skips a field (it may be used any number of times),
1924 and IGNOREALL may be used last to ignore the rest of the data line.
1925 </Para>
1927 <Para>
1928 LENGTH is a synonym for TAPE; BEARING for COMPASS; GRADIENT for CLINO; COUNT for COUNTER.<!--FIXME : others?-->
1929 </Para>
1931 <Para>
1932 The units of each quantity may be set with the UNITS command.
1933 </Para>
1935 <!-- FIXME: plumbed diving legs -->
1937 <!--FIXME:
1938 <Para>
1939 Uses for CYLPOLAR:
1940 Perhaps a Grade 3 survey, or when surveying with a level and stick (?)
1941 [note - UBSS use it for the old County Clare data]
1942 </Para>
1945 </listitem>
1947 </VarListEntry>
1949 </VariableList>
1951 </Sect3>
1953 <Sect3><Title>DATE</Title>
1954 <VariableList>
1956 <VarListEntry><Term>Syntax</Term>
1958 <listitem><Para>*date &lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]][-&lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]]]</Para></listitem>
1960 </VarListEntry>
1962 <VarListEntry><Term>Example</Term>
1964 <listitem>
1965 <Para>
1966 <programlisting>
1967 *date 2001</programlisting>
1969 <programlisting>
1970 *date 2000.10</programlisting>
1972 <programlisting>
1973 *date 1987.07.27</programlisting>
1975 <programlisting>
1976 *date 1985.08.12-1985.08.13</programlisting>
1977 </Para>
1978 </listitem>
1980 </VarListEntry>
1982 <VarListEntry><Term>Validity</Term>
1984 <listitem><Para>valid at the start of a *begin/*end block.
1985 </Para></listitem>
1987 </VarListEntry>
1989 <VarListEntry><Term>Description</Term>
1991 <listitem><Para>
1992 *date specifies the date that the survey was done. A range of dates
1993 can be specified (useful for overnight or multi-day surveying trips).
1994 </Para></listitem>
1996 </VarListEntry>
1998 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2000 <VarListEntry><Term>See Also</Term>
2002 <listitem><Para>*begin, *instrument, *team</Para></listitem>
2004 </VarListEntry>
2006 </VariableList>
2008 </Sect3>
2010 <Sect3><Title>DECLINATION</Title>
2012 <VariableList>
2014 <VarListEntry><Term>Syntax</Term>
2016 <listitem>
2017 <Para>*declination auto &lt;x&gt; &lt;y&gt; &lt;z&gt;</Para>
2018 <Para>*declination &lt;declination&gt; &lt;units&gt;</Para>
2019 </listitem>
2021 </VarListEntry>
2023 <VarListEntry><Term>Description</Term>
2025 <listitem>
2027 <Para>
2028 The *declination command is the modern way to specify magnetic declinations in
2029 Survex. Magnetic declination is the difference between Magnetic North and True
2030 North. It varies over time as the Earth's magnetic field moves, and also with
2031 location. Compass bearings are measured relative to Magnetic North - adding the
2032 magnetic declination gives bearings relative to True North.
2033 </Para>
2035 <Para>
2036 Prior to 1.2.22, *calibrate declination was used instead. If you
2037 use a mixture of *calibrate declination and *declination, they interact in
2038 the natural way - whichever was set most recently is used for each compass
2039 reading (taking into account survey scope). We don't generally recommend
2040 mixing the two, but it's useful to understand how they interact if you want to
2041 combine datasets using the old and new commands, and perhaps if you have a
2042 large existing dataset and want to migrate it without having to change
2043 everything at once.
2044 </Para>
2046 <Para>
2047 Note that the value specified uses the conventional sign for magnetic
2048 declination, unlike the old *calibrate declination which needed a value with
2049 the opposite sign (because *calibrate specifies a zero error), so take care
2050 when updating old data, or if you're used to the semantics of *calibrate
2051 declination.
2052 </Para>
2054 <Para>
2055 If you have specified the output coordinate system (using *cs out) then you can
2056 use *declination auto (and we recommend that you do). This is supported since
2057 Survex 1.2.21 and automatically calculates magnetic declinations based on the
2058 IGRF (International Geomagnetic Reference Field) model. A revised version of
2059 the IGRF model is usually issued every 5 years, and calculates values using a
2060 model based on observations for years before it is issued, and on predictions
2061 for 5 years after it is issued. Survex 1.2.43 updated to using version 13 in
2062 early 2020.
2063 </Para>
2065 <Para>
2066 The IGRF model takes a date and a location as inputs. Survex uses the
2067 specified date of the survey, and uses the "x y z" coordinates specified
2068 in the *declination auto command as the location in the current input
2069 coordinate system (as set by *cs). Most users can just specify a single
2070 representative location somewhere in the area of the cave. If you're
2071 not sure what to use pick some coordinates roughly in the middle of
2072 the bounding box of the cave - it doesn't need to be a fixed point or a known
2073 refindable location, though it can be if you prefer.
2074 </Para>
2076 <Para>
2077 For each *declination auto command cavern will (since Survex 1.4.2) report
2078 the range of calculated declination values and the dates at which the ends of
2079 the range were obtained, and also the grid convergence (which doesn't vary with
2080 time). This appears in the log - if you processed the data with aven you can
2081 view this by using "File->View Log". It looks like this:
2082 </Para>
2084 <programlisting>
2085 /home/ol/1623.svx:20: info: Declination: -0.4° @ 1977-07-02 / 3.8° @ 2018-07-21, grid convergence: -0.9°
2086 *declination auto 36670.37 83317.43 1903.97
2087 </programlisting>
2089 <Para>
2090 You might wonder why Survex needs a representative location instead of
2091 calculating the magnetic declination and grid convergence for the actual
2092 position of each survey station. The reason is that we need to adjust the
2093 compass bearings before we can solve the network to find survey station
2094 locations. Both magnetic declination and grid convergence don't generally vary
2095 significantly over the area of a typical cave system - if you are mapping a
2096 very large cave system, or caves over a wide area, or are working close to a
2097 magnetic pole or where the output coordinate system is rather distorted, then
2098 you can specify *declination auto several times with different representative
2099 locations for different areas of the cave system - the one currently in effect
2100 is used for each survey leg.
2101 </Para>
2103 <Para>
2104 Survex 1.2.27 and later also automatically correct for grid convergence (the
2105 difference between Grid North and True North) when *declination auto is in use,
2106 based on the same specified representative location.
2107 </Para>
2109 <Para>
2110 Generally it's best to specify a suitable output coordinate system, and use
2111 *declination auto so Survex corrects for magnetic declination and grid
2112 convergence for you. Then Aven knows how to translate coordinates to allow
2113 export to formats such as GPX and KML, and to overlay terrain data.
2114 </Para>
2116 <Para>
2117 If you don't specify an output coordinate system, but fix one or more points
2118 then Survex works implicitly in the coordinate system your fixed points were
2119 specified in. This mode of operation is provided for compatibility with
2120 datasets from before support for explicit coordinate systems was added to
2121 Survex - it's much better to specify the output coordinate system as above.
2122 But if you have a survey of a cave which isn't connected to any known fixed
2123 points then you'll need to handle it this way, either fixing an entrance
2124 to some arbitrary coordinates (probably (0,0,0)) or letting Survex pick a
2125 station as the origin. If the survey was all done in a short enough period
2126 of time that the magnetic declination won't have changed significantly, you
2127 can just ignore it and Grid North in the implicit coordinate system will be
2128 Magnetic North at the time of the survey. If you want to correct for magnetic
2129 declination, you can't use *declination auto because the IGRF model needs the
2130 real world coordinates, but you can specify literal declination values for each
2131 survey using *declination &lt;declination&gt; &lt;units&gt;. Then Grid North
2132 in the implicit coordinate system is True North.
2133 </Para>
2135 </listitem>
2137 </VarListEntry>
2139 <VarListEntry><Term>See Also</Term>
2141 <listitem><Para>*calibrate</Para></listitem>
2143 </VarListEntry>
2145 </VariableList>
2147 </Sect3>
2149 <Sect3><Title>DEFAULT</Title>
2151 <VariableList>
2153 <VarListEntry><Term>Syntax</Term>
2155 <listitem><Para>*default &lt;settings list&gt;|all</Para></listitem>
2157 </VarListEntry>
2159 <VarListEntry><Term>Description</Term>
2161 <listitem><Para>
2162 The valid settings are CALIBRATE, DATA, and UNITS.
2163 </Para>
2165 <Para>
2166 *default restores defaults for given settings. This command is deprecated -
2167 you should instead use: *calibrate default, *data default, *units default.
2168 </Para></listitem>
2170 </VarListEntry>
2172 <VarListEntry><Term>See Also</Term>
2174 <listitem><Para>*calibrate, *data, *units</Para></listitem>
2176 </VarListEntry>
2178 </VariableList>
2180 </Sect3>
2182 <Sect3><Title>END</Title>
2184 <VariableList>
2186 <VarListEntry><Term>Syntax</Term>
2188 <listitem><Para>*end [&lt;survey&gt;]</Para></listitem>
2190 </VarListEntry>
2192 <VarListEntry><Term>Validity</Term>
2194 <listitem><Para>valid for closing a block started by *begin in the same file.
2195 </Para></listitem>
2197 </VarListEntry>
2199 <VarListEntry><Term>Description</Term>
2201 <listitem><Para>
2202 Closes a block started by *begin.
2203 </Para></listitem>
2205 </VarListEntry>
2207 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2209 <VarListEntry><Term>See Also</Term>
2211 <listitem><Para>*begin</Para></listitem>
2213 </VarListEntry>
2215 </VariableList>
2217 </Sect3>
2219 <Sect3><Title>ENTRANCE</Title>
2221 <VariableList>
2223 <VarListEntry><Term>Syntax</Term>
2225 <listitem><Para>*entrance &lt;station&gt;</Para></listitem>
2227 </VarListEntry>
2229 <VarListEntry><Term>Example</Term>
2231 <listitem>
2232 <Para>
2233 <programlisting>
2234 *entrance P163</programlisting>
2235 </Para>
2236 </listitem>
2238 </VarListEntry>
2240 <VarListEntry><Term>Description</Term>
2242 <listitem><Para>
2243 *entrance sets the <emphasis>entrance</emphasis> flag for a station.
2244 This information is used by aven to allow entrances to be highlighted.
2245 </Para>
2247 <!-- FIXME:
2248 (could be inferred from surface/ug join, but better to specify because
2249 of caves with no surf svy (or no underground survey)
2250 and also situations in which multiple surveys leave through an entrance)
2252 </listitem>
2254 </VarListEntry>
2256 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2258 <!-- <VarListEntry><Term>See Also</Term>
2260 <listitem><Para></Para></listitem>
2262 </VarListEntry>
2265 </VariableList>
2267 </Sect3>
2269 <Sect3><Title>EQUATE</Title>
2271 <VariableList>
2273 <VarListEntry><Term>Syntax</Term>
2275 <listitem><Para>*equate &lt;station&gt; &lt;station&gt;...</Para></listitem>
2277 </VarListEntry>
2279 <VarListEntry><Term>Example</Term>
2281 <listitem>
2282 <Para>
2283 <programlisting>
2284 *equate chosspot.1 triassic.27</programlisting>
2285 </Para>
2286 </listitem>
2288 </VarListEntry>
2290 <VarListEntry><Term>Description</Term>
2292 <listitem><Para>
2293 *equate specifies that the station names in the list refer to the
2294 same physical survey station. An error is given if there is only one station
2295 listed.
2296 </Para>
2298 <!-- FIXME:
2299 <Para>
2300 I think this is preferable to using:
2301 </Para>
2303 <programlisting> a b 0.00 0 0</programlisting>
2305 <Para>
2306 as EQUATE does not add in an extra position error. It is also clearer than
2307 substituting in the original name wherever passages are linked. If you
2308 disagree, you can always use one of the other methods!
2309 </Para>
2311 </listitem>
2313 </VarListEntry>
2315 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2317 <VarListEntry><Term>See Also</Term>
2319 <listitem><Para>*infer equates</Para></listitem>
2321 </VarListEntry>
2323 </VariableList>
2325 </Sect3>
2327 <Sect3><Title>EXPORT</Title>
2329 <VariableList>
2331 <VarListEntry><Term>Syntax</Term>
2333 <listitem><Para>*export &lt;station&gt;...</Para></listitem>
2335 </VarListEntry>
2337 <VarListEntry><Term>Example</Term>
2339 <!-- FIXME better example -->
2340 <listitem>
2341 <Para>
2342 <programlisting>
2343 *export 1 6 17</programlisting>
2344 </Para>
2345 </listitem>
2347 </VarListEntry>
2349 <VarListEntry><Term>Validity</Term>
2351 <listitem><Para>valid at the start of a *begin/*end block.
2352 </Para></listitem>
2354 </VarListEntry>
2356 <VarListEntry><Term>Description</Term>
2358 <listitem><Para>
2359 *export marks the stations named as referable to from the enclosing
2360 survey. To be able to refer to a station from a survey several levels
2361 above, it must be exported from each enclosing survey.
2362 </Para>
2364 <!-- FIXME:
2365 <Para>
2366 I think this is preferable to using:
2367 </Para>
2369 <programlisting> a b 0.00 0 0</programlisting>
2371 <Para>
2372 as EQUATE does not add in an extra position error. It is also clearer than
2373 substituting in the original name wherever passages are linked. If you
2374 disagree, you can always use one of the other methods!
2375 </Para>
2377 </listitem>
2379 </VarListEntry>
2381 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2383 <VarListEntry><Term>See Also</Term>
2385 <listitem><Para>*begin, *infer exports</Para></listitem>
2387 </VarListEntry>
2389 </VariableList>
2391 </Sect3>
2393 <Sect3><Title>FIX</Title>
2395 <VariableList>
2397 <VarListEntry><Term>Syntax</Term>
2399 <listitem><Para>*fix &lt;station&gt; [reference]
2400 [ &lt;x&gt; &lt;y&gt; &lt;z&gt;
2401 [ &lt;x std err&gt; &lt;y std err&gt; &lt;z std err&gt;
2402 [ &lt;cov(x,y)&gt; &lt;cov(y,z)&gt; &lt;cov(z,x)&gt; ] ] ]
2403 </Para></listitem>
2405 </VarListEntry>
2407 <VarListEntry><Term>Example</Term>
2409 <listitem>
2410 <Para>
2411 <programlisting>
2412 *fix entrance.0 32768 86723 1760</programlisting>
2414 <programlisting>
2415 *fix KT114_96 reference 36670.37 83317.43 1903.97</programlisting>
2416 </Para>
2417 </listitem>
2419 </VarListEntry>
2421 <VarListEntry><Term>Description</Term>
2423 <listitem>
2424 <Para>
2425 *fix fixes the position of &lt;station&gt; at the given coordinates.
2426 If you haven't specified the coordinate system with "*cs", you can
2427 omit the position and it will default to (0,0,0). The standard errors default
2428 to zero (fix station exactly). cavern will give an error if you attempt to fix
2429 the same survey station twice at different coordinates, or a warning if you fix
2430 it twice with matching coordinates.
2431 </Para>
2433 <Para>
2434 You can also specify just one standard error (in which case it is assumed
2435 equal in X, Y, and Z) or two (in which case the first is taken as the
2436 standard error in X and Y, and the second as the standard error in Z).
2437 </Para>
2439 <Para>
2440 If you have covariances for the fix, you can also specify these - the
2441 order is cov(x,y) cov(y,z) cov(z,x).
2442 </Para>
2444 <Para>
2445 If you've specified a coordinate system (see <command>*cs</command>) then
2446 that determines the meaning of X, Y and Z (if you want to specify the
2447 units for altitude, note that using a PROJ string containing
2448 <command>+vunits</command> allows this - e.g. <command>+vunits=us-ft</command>
2449 for US survey feet). If you don't specify a coordinate system, then the
2450 coordinates must be in metres. The standard deviations must always be
2451 in metres (and the covariances in metres squared).
2452 </Para>
2454 <Para>
2455 You can fix as many stations as you like - just use a *fix command for each
2456 one. Cavern will check that all stations are connected to
2457 at least one fixed point so that co-ordinates can be calculated for all
2458 stations.
2459 </Para>
2461 <Para>
2462 By default cavern will warn about stations which have been FIX-ed but
2463 are not used otherwise, as this might be due to a typo in the station
2464 name. Uses in survey data and (since 1.4.9) <command>*entrance</command>
2465 count for these purposes. This warning is unhelpful if you want to include a
2466 standard file of benchmarks, some of which won't be used. In this sort of
2467 situation, specify "REFERENCE" after the station name in the FIX command to
2468 suppress this warning for a particular station. It's OK to use "REFERENCE"
2469 on a station which is used.
2470 </Para>
2472 <Note><Para>
2473 X is Easting, Y is Northing, and Z is altitude. This convention was chosen
2474 since on a map, the horizontal (X) axis is usually East, and the vertical
2475 axis (Y) North. The choice of altitude (rather than depth) for Z is taken
2476 from surface maps, and makes for less confusion when dealing with cave
2477 systems with more than one entrance. It also gives a right-handed
2478 set of axes.
2479 </Para></Note>
2481 </listitem>
2482 </VarListEntry>
2484 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2486 <!-- <VarListEntry><Term>See Also</Term>
2488 <listitem><Para></Para></listitem>
2490 </VarListEntry>
2493 </VariableList>
2495 </Sect3>
2497 <!--
2498 <Sect3><Title></Title>
2500 <VariableList>
2502 <VarListEntry><Term>Syntax</Term>
2504 <listitem><Para>*</Para></listitem>
2506 </VarListEntry>
2508 <VarListEntry><Term>Example</Term>
2510 <listitem>
2511 <Para>
2512 <programlisting>
2513 *</programlisting>
2514 </Para>
2515 </listitem>
2517 </VarListEntry>
2519 <VarListEntry><Term>Description</Term>
2521 <listitem><Para>
2522 </Para></listitem>
2524 </VarListEntry>
2526 <VarListEntry><Term>Caveats </Term> </VarListEntry>
2528 <VarListEntry><Term>See Also</Term>
2530 <listitem><Para></Para></listitem>
2532 </VarListEntry>
2534 </VariableList>
2536 </Sect3>
2539 <Sect3><Title>FLAGS</Title>
2541 <VariableList>
2543 <VarListEntry><Term>Syntax</Term>
2545 <listitem><Para>*flags &lt;flags&gt;</Para></listitem>
2547 </VarListEntry>
2549 <VarListEntry><Term>Example</Term>
2551 <listitem>
2552 <Para>
2553 <programlisting>
2554 *flags duplicate not surface</programlisting>
2555 </Para>
2556 </listitem>
2558 </VarListEntry>
2560 <VarListEntry><Term>Description</Term>
2562 <listitem><Para>
2563 *flags updates the current flag settings.
2564 Flags not mentioned retain their previous state. Valid flags
2565 are DUPLICATE, SPLAY, and SURFACE, and a flag may be preceded with NOT to
2566 turn it off.
2567 </Para>
2569 <Para>
2570 Survey legs marked SURFACE are hidden from plots by default, and not
2571 included in cave survey length calculations. Survey legs marked as
2572 DUPLICATE or SPLAY are also not included in cave survey length
2573 calculations; legs marked SPLAY are ignored by the extend program.
2574 DUPLICATE is intended for the case when if you have two different
2575 surveys along the same section of passage (for example to tie two
2576 surveys into a permanent survey station); SPLAY is intended for
2577 cases such as radial legs in a large chamber.
2578 </Para>
2579 </listitem>
2581 </VarListEntry>
2583 <VarListEntry><Term>See Also</Term>
2585 <listitem><Para>*begin</Para></listitem>
2587 </VarListEntry>
2589 </VariableList>
2591 </Sect3>
2593 <Sect3><Title>INCLUDE</Title>
2595 <VariableList>
2597 <VarListEntry><Term>Syntax</Term>
2599 <listitem><Para>*include &lt;filename&gt;</Para></listitem>
2601 </VarListEntry>
2603 <VarListEntry><Term>Example</Term>
2605 <listitem>
2606 <Para>
2607 <programlisting>
2608 *include mission</programlisting>
2610 <programlisting>
2611 *include "the pits"</programlisting>
2612 </Para>
2613 </listitem>
2615 </VarListEntry>
2617 <VarListEntry><Term>Description</Term>
2619 <listitem><Para>
2620 *include processes &lt;filename&gt; as if it were inserted at this
2621 place in the current file. (i.e. The current settings are carried
2622 into &lt;filename&gt;, and any alterations to settings in &lt;filename&gt;
2623 will be carried back again). There's one exception to this (for
2624 obscure historical reasons) which is that the survey prefix is
2625 restored upon return to the original file. Since *begin and *end
2626 nesting cannot cross files, this can only make a difference if you
2627 use the deprecated *prefix command.
2628 </Para>
2630 <Para>If &lt;filename&gt; contains spaces, it must be enclosed in quotes.
2631 </Para>
2633 <Para>An included file which does not have a complete path
2634 is resolved relative to the directory which the parent file is in
2635 (just as relative HTML links do). Cavern will try adding a <filename>.svx</filename>
2636 extension, and will also try translating "\" to "/".
2637 </Para>
2639 <Para>
2640 To help users wanting to take a dataset from a platform where filenames
2641 are case-insenstive and process it on a platform where filenames are
2642 case-sensitive, if the file isn't found cavern will try a few variations of the
2643 case. First it will try all lower case (in Survex 1.4.5 and older this was
2644 the only case variant tried), then all lower case except with the first
2645 character of the leafname upper case, and finally all upper case. These
2646 different variants are only tried if the case as given doesn't match
2647 so there's no overhead in the normal situation.
2648 </Para>
2650 <Para>
2651 One specific trick this enables which is worth noting is that if you're using
2652 Unix and someone sends you a DOS/Windows dataset with mismatched filename case,
2653 you can unzip it using <command>unzip -L</command> to unpack all the filenames
2654 in lower case and UNIX cavern should successfully process it.
2655 </Para>
2657 <Para>
2658 The depth to which you can nest include files may be limited by the operating
2659 system you use. Usually the limit is fairly high (>30), but if you want to be
2660 able to process your dataset with <Application>Survex</Application> on any
2661 supported platform, it would be prudent not to go overboard with deeply nested
2662 include files.
2663 </Para>
2664 </listitem>
2665 </VarListEntry>
2667 </VariableList>
2669 </Sect3>
2671 <Sect3><Title>INFER</Title>
2673 <VariableList>
2675 <VarListEntry><Term>Syntax</Term>
2677 <listitem>
2678 <Para>*infer plumbs on|off</Para>
2680 <Para>*infer equates on|off</Para>
2682 <Para>*infer exports on|off</Para>
2683 </listitem>
2685 </VarListEntry>
2687 <!--
2688 <VarListEntry><Term>Example</Term>
2690 <listitem>
2691 <programlisting>
2692 </programlisting>
2694 </listitem>
2696 </VarListEntry>
2699 <VarListEntry><Term>Description</Term>
2701 <listitem>
2702 <Para>"*infer plumbs on" tells cavern to interpret gradients of +/- 90
2703 degrees as UP/DOWN (so it
2704 will not apply the clino correction to them). This is useful when
2705 the data has not been converted to have UP and DOWN in it.
2706 </Para>
2708 <para>"*infer equates on" tells cavern to interpret a leg with
2709 a tape reading of zero as a *equate. this prevents tape corrections
2710 being applied to them.
2711 </para>
2713 <para>"*infer exports on" is necessary when you have a dataset which is
2714 partly annotated with *export. It tells cavern not to complain about
2715 missing *export commands in part of the dataset. Also stations which
2716 were used to join surveys are marked as exported in the 3d file.
2717 </para>
2718 </listitem>
2720 </VarListEntry>
2722 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2724 <!--
2725 <VarListEntry><Term>See Also</Term>
2727 <listitem><Para>*end, *prefix</Para></listitem>
2729 </VarListEntry>
2732 </VariableList>
2734 </Sect3>
2736 <Sect3><Title>INSTRUMENT</Title>
2738 <VariableList>
2740 <VarListEntry><Term>Syntax</Term>
2742 <listitem><Para>*instrument &lt;instrument&gt; &lt;identifier&gt;</Para></listitem>
2744 </VarListEntry>
2746 <VarListEntry><Term>Example</Term>
2748 <listitem>
2749 <Para>
2750 <programlisting>
2751 *instrument compass "CUCC 2"
2752 *instrument clino "CUCC 2"
2753 *instrument tape "CUCC Fisco Ranger open reel"</programlisting>
2754 </Para>
2755 </listitem>
2757 </VarListEntry>
2759 <VarListEntry><Term>Validity</Term>
2761 <listitem><Para>valid at the start of a *begin/*end block.
2762 </Para></listitem>
2764 </VarListEntry>
2766 <VarListEntry><Term>Description</Term>
2768 <listitem><Para>
2769 *instrument specifies the particular instruments used to perform a
2770 survey.
2771 </Para></listitem>
2773 </VarListEntry>
2775 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2777 <VarListEntry><Term>See Also</Term>
2779 <listitem><Para>*begin, *date, *team</Para></listitem>
2781 </VarListEntry>
2783 </VariableList>
2785 </Sect3>
2787 <Sect3><Title>PREFIX</Title>
2789 <VariableList>
2791 <VarListEntry><Term>Syntax</Term>
2793 <listitem><Para>*prefix &lt;survey&gt;</Para></listitem>
2795 </VarListEntry>
2797 <VarListEntry><Term>Example</Term>
2799 <listitem>
2800 <Para>
2801 <programlisting>
2802 *prefix flapjack</programlisting>
2803 </Para>
2804 </listitem>
2806 </VarListEntry>
2808 <VarListEntry><Term>Description</Term>
2810 <listitem><Para>
2811 *prefix sets the current survey.
2812 </Para></listitem>
2814 </VarListEntry>
2816 <VarListEntry><Term>Caveats </Term>
2818 <listitem><Para>*prefix is deprecated - you should use *begin and *end
2819 instead.</Para></listitem>
2821 </VarListEntry>
2823 <VarListEntry><Term>See Also</Term>
2825 <listitem><Para>*begin, *end</Para></listitem>
2827 </VarListEntry>
2829 </VariableList>
2831 </Sect3>
2833 <Sect3><Title>REF</Title>
2835 <VariableList>
2837 <VarListEntry><Term>Syntax</Term>
2839 <listitem><Para>*ref &lt;string&gt;</Para></listitem>
2841 </VarListEntry>
2843 <VarListEntry><Term>Example</Term>
2845 <listitem>
2846 <Para>
2847 <programlisting>
2848 *ref "survey folder 2007#12"
2849 </programlisting>
2850 </Para>
2851 </listitem>
2853 </VarListEntry>
2855 <VarListEntry><Term>Validity</Term>
2857 <listitem><Para>valid at the start of a *begin/*end block.
2858 </Para></listitem>
2860 </VarListEntry>
2862 <VarListEntry><Term>Description</Term>
2864 <listitem><Para>
2865 *ref allows you to specify a reference. If the reference contains spaces, you
2866 must enclose it in double quotes. Survex doesn't try to interpret the
2867 reference in any way, so it's up to you how you use it - for example it could
2868 specify where the original survey notes can be found.
2869 </Para>
2871 <Para>
2872 *ref was added in Survex 1.2.23.
2873 </Para></listitem>
2875 </VarListEntry>
2877 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2879 <VarListEntry><Term>See Also</Term>
2881 <listitem><Para>*begin, *date, *instrument, *team</Para></listitem>
2883 </VarListEntry>
2885 </VariableList>
2887 </Sect3>
2889 <Sect3><Title>REQUIRE</Title>
2891 <VariableList>
2893 <VarListEntry><Term>Syntax</Term>
2895 <listitem><Para>*require &lt;version&gt;</Para></listitem>
2897 </VarListEntry>
2899 <VarListEntry><Term>Example</Term>
2901 <listitem>
2902 <Para>
2903 <programlisting>
2904 *require 0.98</programlisting>
2905 </Para>
2906 </listitem>
2908 </VarListEntry>
2910 <VarListEntry><Term>Description</Term>
2912 <listitem><Para>
2913 *require checks that the version of cavern in use is at least
2914 &lt;version&gt; and stops with an error if not.
2915 So if your dataset requires a feature
2916 introduced in a particular version, you can add a *require command and
2917 users will know what version they need to upgrade to, rather than
2918 getting an error message and having to guess what the real problem is.
2919 </Para></listitem>
2921 </VarListEntry>
2923 </VariableList>
2925 </Sect3>
2927 <Sect3><Title>SD</Title>
2929 <VariableList>
2931 <VarListEntry><Term>Syntax</Term>
2933 <listitem><Para>*sd &lt;quantity list&gt; &lt;standard deviation&gt;
2934 </Para></listitem>
2936 </VarListEntry>
2938 <VarListEntry><Term>Example</Term>
2940 <listitem>
2941 <Para>
2942 <programlisting>
2943 *sd tape 0.15 metres</programlisting>
2944 </Para>
2945 </listitem>
2947 </VarListEntry>
2949 <VarListEntry><Term>Description</Term>
2951 <listitem><Para>
2952 *sd sets the standard deviation of a measurement.
2953 </Para>
2955 <Para>
2956 &lt;quantity&gt; is one of (each group gives alternative names for the same
2957 quantity):
2958 </Para>
2960 <ItemizedList>
2961 <listitem><para>TAPE, LENGTH</para></listitem>
2962 <listitem><para>BACKTAPE, BACKLENGTH (added in Survex 1.2.25)</para></listitem>
2963 <listitem><para>COMPASS, BEARING</para></listitem>
2964 <listitem><para>BACKCOMPASS, BACKBEARING</para></listitem>
2965 <listitem><para>CLINO, GRADIENT</para></listitem>
2966 <listitem><para>BACKCLINO, BACKGRADIENT</para></listitem>
2967 <listitem><para>COUNTER, COUNT</para></listitem>
2968 <listitem><para>DEPTH</para></listitem>
2969 <listitem><para>DECLINATION</para></listitem>
2970 <listitem><para>DX, EASTING</para></listitem>
2971 <listitem><para>DY, NORTHING</para></listitem>
2972 <listitem><para>DZ, ALTITUDE</para></listitem>
2973 <listitem><para>LEFT</para></listitem>
2974 <listitem><para>RIGHT</para></listitem>
2975 <listitem><para>UP, CEILING</para></listitem>
2976 <listitem><para>DOWN, FLOOR</para></listitem>
2977 <listitem><para>LEVEL</para></listitem>
2978 <listitem><para>PLUMB</para></listitem>
2979 <listitem><para>POSITION</para></listitem>
2980 </ItemizedList>
2982 <Para>
2983 &lt;standard deviation&gt; must include units and thus is typically
2984 "0.05 metres", or "0.02 degrees". See *units below for full list
2985 of valid units.
2986 </Para>
2988 <!-- FIXME mention central limit theorem -->
2989 <Para>
2990 To utilise this command fully you need to understand what a
2991 <emphasis>standard deviation</emphasis> is.
2992 It gives a value to the 'spread' of the errors
2993 in a measurement. Assuming that these are normally distributed
2994 we can say that 95.44% of the actual lengths will fall within two
2995 standard deviations of the measured length. i.e. a tape SD of
2996 0.25 metres means that the actual length of a tape measurement
2997 is within + or - 0.5 metres of the recorded value 95.44% of the time.
2998 So if the measurement is 7.34m then the actual length is very
2999 likely to be between 6.84m and 7.84m. This example corresponds
3000 to BCRA grade 3. Note that this is just one interpretation of
3001 the BCRA standard, taking the permitted error values as 2SD 95.44%
3002 confidence limits. If you want to take the readings as being some
3003 other limit (e.g. 1SD = 68.26%) then you will need to change the BCRA3
3004 and BCRA5 files accordingly. This issue is explored in more
3005 detail in various surveying articles.
3006 <!--
3007 2.565 sd 99%
3008 2.5 sd 98.76%
3009 2 sd 95.44%
3010 1 sd 68.26%
3011 .97 sd 66.67%
3012 1.15 sd 75%
3014 </Para></listitem>
3016 </VarListEntry>
3018 <VarListEntry><Term>See Also</Term>
3020 <listitem><Para>*units</Para></listitem>
3022 </VarListEntry>
3024 </VariableList>
3026 </Sect3>
3028 <Sect3><Title>SET</Title>
3030 <VariableList>
3032 <VarListEntry><Term>Syntax</Term>
3034 <listitem><Para>*set &lt;item&gt; &lt;character list&gt;</Para></listitem>
3036 </VarListEntry>
3038 <VarListEntry><Term>Example</Term>
3040 <listitem>
3041 <Para>
3042 <programlisting>
3043 *set blank x09x20
3044 *set decimal ,</programlisting>
3046 Note that you need to eliminate comma from being a blank before setting it as
3047 a decimal - otherwise the comma in "*set decimal ," is parsed as a blank, and
3048 you set decimal to not have any characters representing it.
3049 </Para>
3050 </listitem>
3052 </VarListEntry>
3054 <VarListEntry><Term>Description</Term>
3056 <listitem><Para>
3057 *set sets the specified &lt;item&gt; to the character or characters
3058 given in &lt;character list&gt;. The example sets the decimal
3059 separator to be a comma.
3060 </Para>
3062 <Para>
3063 xAB means the character with hex value AB. Eg x20 is a space.
3064 </Para>
3066 <Para>
3067 The complete list of items that can be set, the defaults (in
3068 brackets), and the meaning of the item, is:
3069 </Para>
3071 <ItemizedList>
3073 <ListItem><Para>
3074 BLANK (x09x20,) Separates fields
3075 </Para></ListItem>
3077 <ListItem><Para>
3078 COMMENT (;) Introduces comments
3079 </Para></ListItem>
3081 <ListItem><Para>
3082 DECIMAL (.) Decimal point character
3083 </Para></ListItem>
3085 <ListItem><Para>
3086 EOL (x0Ax0D) End of line character
3087 </Para></ListItem>
3089 <ListItem><Para>
3090 KEYWORD (*) Introduces keywords
3091 </Para></ListItem>
3093 <ListItem><Para>
3094 MINUS (-) Indicates negative number
3095 </Para></ListItem>
3097 <ListItem><Para>
3098 NAMES (_-) Non-alphanumeric chars permitted in station
3099 names (letters and numbers are always permitted).
3100 </Para></ListItem>
3102 <ListItem><Para>
3103 OMIT (-) Contents of field omitted (e.g. in plumbed legs)
3104 </Para></ListItem>
3106 <ListItem><Para>
3107 PLUS (+) Indicates positive number
3108 </Para></ListItem>
3110 <ListItem><Para>
3111 ROOT (\) Prefix in force at start of current file (use of ROOT is deprecated)
3112 </Para></ListItem>
3114 <ListItem><Para>
3115 SEPARATOR (.) Level separator in prefix hierarchy
3116 </Para></ListItem>
3118 <!-- FIXME OPEN ({) and CLOSE (}) -->
3119 </ItemizedList>
3121 <Para>
3122 The special characters may not be alphanumeric.
3123 </Para>
3125 </listitem>
3127 </VarListEntry>
3129 </VariableList>
3131 </Sect3>
3133 <Sect3><Title>SOLVE</Title>
3135 <VariableList>
3137 <VarListEntry><Term>Syntax</Term>
3139 <listitem><Para>*solve</Para></listitem>
3141 </VarListEntry>
3143 <VarListEntry><Term>Example</Term>
3145 <listitem>
3146 <Para>
3147 <programlisting>
3148 *include 1997data
3149 *solve
3150 *include 1998data
3151 </programlisting>
3152 </Para>
3153 </listitem>
3155 </VarListEntry>
3157 <VarListEntry><Term>Description</Term>
3159 <listitem><Para>
3160 Distributes misclosures around any loops in the survey and fixes
3161 the positions of all existing stations. This command is intended
3162 for situations where you have some new surveys adding extensions
3163 to an already drawn-up survey which you wish to avoid completely
3164 redrawing. You can read in the old data, use *SOLVE to fix it, and then
3165 read in the new data. Then old stations will be in the same
3166 positions as they are in the existing drawn up survey, even if new loops
3167 have been formed by the extensions.
3168 </Para></listitem>
3170 </VarListEntry>
3172 </VariableList>
3174 </Sect3>
3176 <Sect3><Title>TEAM</Title>
3178 <VariableList>
3180 <VarListEntry><Term>Syntax</Term>
3182 <listitem><Para>*team &lt;person&gt; [&lt;role&gt;...]</Para></listitem>
3184 </VarListEntry>
3186 <VarListEntry><Term>Example</Term>
3188 <listitem>
3189 <Para>
3190 <programlisting>
3191 *team "Nick Proctor" compass clino tape
3192 *team "Anthony Day" notes pictures tape
3193 </programlisting>
3194 </Para>
3195 </listitem>
3197 </VarListEntry>
3199 <VarListEntry><Term>Validity</Term>
3201 <listitem><Para>valid at the start of a *begin/*end block.
3202 </Para></listitem>
3203 <!-- FIXME valid roles are? -->
3205 </VarListEntry>
3207 <VarListEntry><Term>Description</Term>
3209 <listitem><Para>
3210 *team specifies the people involved in a survey and optionally what role or
3211 roles they filled during that trip. Unless the person is only identified by
3212 one name you need to put double quotes around their name.
3213 </Para></listitem>
3215 </VarListEntry>
3217 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3219 <VarListEntry><Term>See Also</Term>
3221 <listitem><Para>*begin, *date, *instrument</Para></listitem>
3223 </VarListEntry>
3225 </VariableList>
3227 </Sect3>
3229 <Sect3><Title>TITLE</Title>
3231 <VariableList>
3233 <VarListEntry><Term>Syntax</Term>
3235 <listitem><Para>*title &lt;title&gt;</Para></listitem>
3237 </VarListEntry>
3239 <VarListEntry><Term>Example</Term>
3241 <listitem>
3242 <programlisting>
3243 *title Dreamtime</programlisting>
3245 <programlisting>
3246 *title "Mission Impossible"</programlisting>
3247 </listitem>
3249 </VarListEntry>
3251 <VarListEntry><Term>Description</Term>
3253 <listitem><Para>*title allows you to set the descriptive title for a survey.
3254 If the title contains spaces, you need to enclose it in quotes ("").
3255 If there is no *title command, the title defaults to the survey name
3256 given in the *begin command.
3257 </Para>
3258 </listitem>
3260 </VarListEntry>
3262 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3264 <!--
3265 <VarListEntry><Term>See Also</Term>
3267 <listitem><Para>*end, *prefix</Para></listitem>
3269 </VarListEntry>
3272 </VariableList>
3274 </Sect3>
3276 <Sect3><Title>TRUNCATE</Title>
3278 <VariableList>
3280 <VarListEntry><Term>Syntax</Term>
3282 <listitem><Para>*truncate &lt;length&gt;|off</Para></listitem>
3284 </VarListEntry>
3286 <!-- FIXME:
3287 <VarListEntry><Term>Example</Term>
3289 <listitem>
3290 <programlisting>
3291 </programlisting>
3293 </listitem>
3295 </VarListEntry>
3298 <VarListEntry><Term>Description</Term>
3300 <listitem><Para>Station names may be of any length in <Application>Survex</Application>, but some
3301 other (mostly older) cave surveying software only regard the first few
3302 characters of a name as significant (e.g. "entran" and "entrance"
3303 might be treated as the same). To facilitate using data imported from
3304 such a package <Application>Survex</Application> allows you to truncate names to whatever
3305 length you want (but by default truncation is off).
3306 </Para>
3308 <Para>Figures for the number of characters which are significant in various
3309 software packages: Compass currently has a limit of 12,
3310 CMAP has a limit of 6,
3311 Smaps 4 had a limit of 8,
3312 <!-- FIXME any limits for other software, winkarst for example? -->
3313 Surveyor87/8 used 8.
3314 <Application>Survex</Application> itself used 8 per prefix
3315 level up to version 0.41, and 12 per prefix level up to 0.73 (more recent
3316 versions removed this rather archaic restriction).
3317 </Para>
3318 </listitem>
3320 </VarListEntry>
3322 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3324 <VarListEntry><Term>See Also</Term>
3326 <listitem><Para>*case</Para></listitem>
3328 </VarListEntry>
3330 </VariableList>
3332 </Sect3>
3334 <Sect3><Title>UNITS</Title>
3336 <VariableList>
3338 <VarListEntry><Term>Syntax</Term>
3340 <listitem><Para>
3341 *units &lt;quantity list&gt; [&lt;factor&gt;] &lt;unit&gt;
3342 </Para>
3343 <Para>
3344 *units default
3345 </Para></listitem>
3347 </VarListEntry>
3349 <VarListEntry><Term>Example</Term>
3351 <listitem>
3352 <Para>
3353 <programlisting>
3354 *units tape metres</programlisting>
3356 <programlisting>
3357 *units compass backcompass clino backclino grads</programlisting>
3359 <programlisting>
3360 *units dx dy dz 1000 metres ; data given as kilometres</programlisting>
3362 <programlisting>
3363 *units left right up down feet</programlisting>
3364 </Para>
3365 </listitem>
3367 </VarListEntry>
3369 <VarListEntry><Term>Description</Term>
3371 <listitem><Para>
3372 &lt;quantity&gt; is one of the following (grouped entries are just alternative names for the same thing):
3373 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
3374 </Para>
3376 <Para>Changes current units of all the quantities listed to [&lt;factor&gt;]
3377 &lt;unit&gt;. Note that quantities can be expressed either as
3378 the instrument (e.g. COMPASS) or the measurement (e.g. BEARING).
3379 </Para>
3381 <Para>&lt;factor&gt; allows you to easy specify situations such as measuring
3382 distance with a diving line knotted every 10cm (*units distance 0.1 metres).
3383 If &lt;factor&gt; is omitted it defaults to 1.0. If specified, it must be
3384 non-zero.
3385 </Para>
3387 <Para>Valid units for listed quantities are:
3388 </Para>
3390 <Para>TAPE/LENGTH, BACKTAPE/BACKLENGTH, COUNTER/COUNT, DEPTH, DX/EASTING, DY/NORTHING, DZ/ALTITUDE
3391 in YARDS|FEET|METRIC|METRES|METERS (default: METRES)
3392 </Para>
3394 <Para>CLINO/GRADIENT, BACKCLINO/BACKGRADIENT
3395 in DEGS|DEGREES|GRADS|MINUTES|PERCENT|PERCENTAGE (default: DEGREES)
3396 </Para>
3398 <Para>COMPASS/BEARING, BACKCOMPASS/BACKBEARING, DECLINATION
3399 in DEGS|DEGREES|GRADS|MINUTES|QUADS|QUADRANTS (default: DEGREES)
3400 </Para>
3402 <Para>(360 degrees = 400 grads)
3403 </Para>
3405 <Para>
3406 QUADRANTS are a style of bearing used predominantly in land survey, and occasionally
3407 in survey with handheld instruments. All bearings are N or S, a numeric from 0 to
3408 90, followed by E or W. For example S34E to refer to 146 degrees, or 34 degrees in
3409 the SE quadrant. In this format, exact cardinal directions may be simply alphabetic.
3410 E.g. N is equivalent to N0E and E is equivalent to N90E. This unit was added in Survex
3411 1.2.44.
3412 </Para>
3414 <Para>
3415 Survex has long support MILS as an alias for GRADS. However, this seems to
3416 be a bogus definition of a "mil" which is unique to Survex (except that Therion
3417 has since copied it) - there are several different definitions of a "mil" but
3418 they vary from 6000 to 6400 in a full circle, not 400. Because of this we
3419 deprecated MILS in Survex 1.2.38 - you can still process data which uses them
3420 but you'll now get a warning, and we recommend you update your data.
3421 </Para>
3423 <Para>
3424 For example, if your data uses
3426 <programlisting>
3427 *units compass mils</programlisting>
3429 then you need to determine what the intended units actually are. If there
3430 are 400 in a full circle, then instead use this (which will work with older
3431 Survex versions too):
3433 <programlisting>
3434 *units compass grads</programlisting>
3436 If the units are actually mils, you can specify that in terms of degrees.
3437 For example, for NATO mils (6400 in a full circle) one mil is 360/6400
3438 degrees, and 360/6400=0.05625 so you can use this (which also works with older
3439 Survex versions):
3441 <programlisting>
3442 *units compass 0.05625 degrees</programlisting>
3443 </Para>
3444 </listitem>
3445 </VarListEntry>
3447 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3449 <VarListEntry><Term>See Also</Term>
3451 <listitem><Para>*calibrate</Para></listitem>
3453 </VarListEntry>
3455 </VariableList>
3457 </Sect3>
3459 </Sect2>
3461 </Sect1>
3463 <!-- FIXME rename to "Cookbook"? -->
3464 <Sect1><Title>Contents of <filename>.svx</filename> files: How do I?</Title>
3465 <?dbhtml filename="svxhowto.htm">
3467 <Para>
3468 Here is some example <Application>Survex</Application> data (a very small cave numbered 1623/163):
3469 </Para>
3471 <programlisting>
3472 2 1 26.60 222 17.5
3473 2 3 10.85 014 7
3474 2 4 7.89 254 -11
3475 4 5 2.98 - DOWN
3476 5 6 9.29 271 -28.5</programlisting>
3478 <Para>
3479 You can vary the data ordering. The default is:
3480 </Para>
3482 <Para>
3483 from-station to-station tape compass clino
3484 </Para>
3486 <Para>
3487 This data demonstrates a number of useful features of <Application>Survex</Application>:
3488 </Para>
3490 <Para>
3491 Legs can be measured either way round, which allows the use of
3492 techniques like "leap-frogging" (which is where legs
3493 alternate forwards and backwards).
3494 </Para>
3496 <Para>
3497 Also notice that there is a spur in the survey (2 to 3). You
3498 do not need to specify this specially.
3499 </Para>
3501 <Para>
3502 <Application>Survex</Application> places few restrictions on station naming (see "Survey
3503 Station Names" in the previous section), so you can number the stations
3504 as they were in the original survey notes. Although not apparent from
3505 this example, there is no requirement for each leg to connect to an
3506 existing station. <Application>Survex</Application> can accept data in any order, and will
3507 check for connectedness once all the data has been read in.
3508 </Para>
3510 <Para>
3511 Each survey is also likely to have other information associated
3512 with it, such as instrument calibrations, etc. This has been
3513 omitted from this example to keep things simple.
3514 </Para>
3516 <Para>
3517 Most caves will take more than just one survey trip to map. Commonly
3518 the numbering in each survey will begin at 1, so we need to be
3519 able to tell apart stations with the same number in different
3520 surveys.
3521 </Para>
3523 <Para>
3524 To accomplish this, <Application>Survex</Application> has a very flexible system of hierarchical
3525 prefixes. All you need do is give each survey a unique name or
3526 number, and enter the data like so:
3527 </Para>
3529 <programlisting>
3530 *begin 163
3531 *export 1
3532 2 1 26.60 222 17.5
3533 2 3 10.85 014 7
3534 2 4 7.89 254 -11
3535 4 5 2.98 - DOWN
3536 5 6 9.29 271 -28.5
3537 *end 163</programlisting>
3539 <Para><Application>Survex</Application> will name the stations by attaching the current prefix.
3540 In this case, the stations will be named 163.1, 163.2, etc.
3541 </Para>
3543 <Para>We have a convention with the CUCC Austria data that the entrance survey
3544 station of a cave is named P&lt;cave number&gt;, P163 in this case. We
3545 can accomplish this like so:
3546 </Para>
3548 <programlisting>
3549 *equate P163 163.1
3550 *entrance P163
3551 *begin 163
3552 *export 1
3553 2 1 26.60 222 17.5
3554 2 3 10.85 014 7
3555 2 4 7.89 254 -11
3556 4 5 2.98 - DOWN
3557 5 6 9.29 271 -28.5
3558 *end 163</programlisting>
3560 <Sect2><Title>Specify surface survey data</Title>
3562 <Para>
3563 Say you have 2 underground surveys and 2 surface ones with 2 fixed reference
3564 points. You want to mark the surface surveys so that their length isn't
3565 included in length statistics, and so that Aven knows to display them
3566 differently. To do this you mark surface data with the "surface" flag
3567 - this is set with "*flags surface" like so:
3568 </Para>
3570 <programlisting>
3571 ; fixed reference points
3572 *fix fix_a 12345 56789 1234
3573 *fix fix_b 23456 67890 1111
3575 ; surface data (enclosed in *begin ... *end to stop the *flags command
3576 ; from "leaking" out)
3577 *begin
3578 *flags surface
3579 *include surface1
3580 *include surface2
3581 *end
3583 ; underground data
3584 *include cave1
3585 *include cave2</programlisting>
3587 <Para>
3588 You might also have a survey which starts on the surface and heads into a
3589 cave. This can be easily handled too - here's an example which goes in
3590 one entrance, through the cave, and out of another entrance:
3591 </Para>
3593 <programlisting>
3594 *begin BtoC
3595 *title "161b to 161c"
3596 *date 1990.08.06 ; trip 1990-161c-3 in 1990 logbook
3598 *begin
3599 *flags surface
3600 02 01 3.09 249 -08.5
3601 02 03 4.13 252.5 -26
3602 *end
3604 04 03 6.00 020 +37
3605 04 05 3.07 329 -31
3606 06 05 2.67 203 -40.5
3607 06 07 2.20 014 +04
3608 07 08 2.98 032 +04
3609 08 09 2.73 063.5 +21
3610 09 10 12.35 059 +15
3612 *begin
3613 *flags surface
3614 11 10 4.20 221.5 -11.5
3615 11 12 5.05 215 +03.5
3616 11 13 6.14 205 +12.5
3617 13 14 15.40 221 -14
3618 *end
3620 *end BtoC</programlisting>
3622 <Para>
3623 Note that to avoid needless complication, Survex regards each leg as
3624 being either "surface" or "not surface" - if a leg spans the boundary you'll
3625 have to call it one or the other. It's good surveying practice to
3626 deliberately put a station at the surface/underground interface
3627 (typically the highest closed contour or drip line) so this generally
3628 isn't an onerous restriction.
3629 </Para>
3631 </Sect2>
3633 <Sect2><Title>Specify the ordering and type of data</Title>
3635 <Para>The *DATA command is used to specify the data style, and the
3636 order in which the readings are given.</Para>
3638 </Sect2>
3640 <Sect2><Title>Deal with Plumbs or Legs Across Static Water</Title>
3642 <!-- FIXME
3643 <Para>
3644 They can be given
3645 as +90, or -90, but as they are not usually measured with the
3646 clino, but with a plumb of some sort, then it is useful to distinguish
3647 them in this way so that any clino adjustment is not applied to
3648 these values.
3649 </Para>
3651 FIXME: paste in section from mail to list
3653 <Para>
3654 Note that a similar effect can be achieved by using the "*infer plumbs" command
3655 to stop clino corrections being applied to -90 and +90 clino readings.
3656 </Para>
3659 <Para>
3660 Plumbed legs should be given using 'UP' or 'DOWN' in place of the
3661 clino reading and a dash (or a different specified 'OMIT' character)
3662 in place of the compass reading. This distinguishes
3663 them from legs measured with a compass and clino. Here's an example:
3664 </Para>
3666 <programlisting>
3667 1 2 21.54 - UP
3668 3 2 7.36 017 +17
3669 3 4 1.62 091 +08
3670 5 4 10.38 - DOWN</programlisting>
3672 <Para>
3673 U/D or +V/-V may be used instead of UP/DOWN; the check is not case
3674 sensitive.
3675 </Para>
3677 <Para>
3678 Legs surveyed across the surface of a static body of water where no
3679 clino reading is taken (since the surface of the water can be assumed
3680 to be flat) can be indicated by using LEVEL in place of a clino reading.
3681 This prevents the clino correction being applied. Here's an example:
3682 </Para>
3684 <programlisting>
3685 1 2 11.37 190 -12
3686 3 2 7.36 017 LEVEL
3687 3 4 1.62 091 LEVEL</programlisting>
3689 </Sect2>
3691 <Sect2><Title>Specify a BCRA grade</Title>
3693 <Para>The *SD command can be used to specify the standard deviations of the
3694 various measurements (tape, compass, clino, etc). Examples files are
3695 supplied which define BCRA Grade 3 and BCRA Grade 5 using a number of *sd
3696 commands. You can use these by simply including them at the relevant point,
3697 as follows:
3698 </Para>
3700 <programlisting>
3701 *begin somewhere
3702 ; This survey is only grade 3
3703 *include grade3
3704 2 1 26.60 222 17.5
3705 2 3 10.85 014 7
3706 ; etc
3707 *end somewhere</programlisting>
3709 <Para>The default values for the standard deviations are those for
3710 BCRA grade 5. Note that it is good practice to keep the *include
3711 Grade3 within *Begin and *End commands otherwise it will apply
3712 to following survey data, which may not be what you intended.
3713 </Para>
3715 </Sect2>
3717 <Sect2><Title>Specify different accuracy for a leg</Title>
3719 <Para>For example, suppose the tape on the plumbed leg in this survey
3720 is suspected of being less accurate than the rest of the survey because
3721 the length was obtained by measuring the length of the rope used to rig
3722 the pitch. We can set a higher sd for this one measurement and use a
3723 *begin/*end block to make sure this setting only applies to the one
3724 leg:
3725 </Para>
3727 <programlisting>
3728 2 1 26.60 222 17.5
3729 2 3 10.85 014 7
3730 2 4 7.89 254 -11
3731 *begin
3732 ; tape measurement was taken from the rope length
3733 *sd tape 0.5 metres
3734 4 5 34.50 - DOWN
3735 *end
3736 5 6 9.29 271 -28.5</programlisting>
3738 <!-- FIXME also *calibrate and *instrument? Except rope is measure with the
3739 tape... -->
3740 </Sect2>
3742 <Sect2><Title>Enter Repeated Readings</Title>
3744 <Para>If your survey data contains multiple versions of each leg (for example,
3745 pockettopo produces such data), then provided these are adjacent to one another
3746 Survex 1.2.17 and later will automatically average these and treat them as a
3747 single leg.
3748 </Para>
3750 </Sect2>
3752 <Sect2><Title>Enter Radiolocation Data</Title>
3754 <!-- FIXME comments from David Gibson here -->
3755 <Para>This is done by using the *SD command to specify the appropriate
3756 errors for the radiolocation `survey leg' so that the loop closure
3757 algorithm knows how to distribute errors if it forms part of a loop.
3758 </Para>
3760 <Para>The best approach for a radiolocation where the underground station
3761 is vertically below the surface station is to represent it as a
3762 plumbed leg, giving suitable SDs for the length and plumb angle. The
3763 horizontal positioning of this is generally quite accurate, but the
3764 vertical positioning may be much less well known. E.g: we have a
3765 radiolocation of about 50m depth +/- 20m and horizontal accuracy of
3766 +/- 8m. Over 50m the +/-8m is equivalent to an angle of 9 degrees, so
3767 that is the expected plumb error. 20m is the expected error in the
3768 length. To get the equivalent SD we assume that 99.74% of readings will
3769 be within 3 standard deviations of the error value. Thus we divide the
3770 expected errors by 3 to get the SD we should specify:
3771 </Para> <!-- 3 SD? or same as BCRA3.SVX, etc -->
3773 <programlisting>
3774 *begin
3775 *sd length 6.67 metres
3776 *sd plumb 3 degrees
3777 surface underground 50 - down
3778 *end</programlisting>
3780 <Para>
3781 We wrap the radiolocation leg in a *begin/*end block to make
3782 sure that the special *sd settings only apply to this one leg.
3783 </Para>
3785 <Para>For more information on the expected errors from radiolocations
3786 see Compass Points Issue 10, available online at
3787 <ulink url="http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm">http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm</ulink>
3788 </Para>
3790 </Sect2>
3792 <Sect2><Title>Enter Diving Data</Title>
3794 <Para>Surveys made underwater using a diver's depth gauge can be
3795 processed - use the *Data command to specify that the following data
3796 is of this type.
3797 </Para>
3799 </Sect2>
3801 <Sect2><Title>Enter Theodolite data</Title>
3803 <Para>
3804 Theodolite data with turned angles is not yet explicitly catered
3805 for, so for now you will need to convert it into equivalent legs in
3806 another style - normal or cylpolar are likely to be the best choices.
3807 </Para>
3809 <Para>
3810 If there is no vertical info in your theodolite data then you should
3811 use the cylpolar style and use *sd command to specify very low
3812 accuracy (high SD) in the depth so that the points will move in the
3813 vertical plane as required if the end points are fixed or the survey
3814 is part of a loop.
3815 </Para>
3817 </Sect2>
3819 </Sect1>
3821 <Sect1><Title>General: How do I?</Title>
3822 <?dbhtml filename="genhowto.htm">
3824 <Sect2><Title>Create a new survey</Title>
3826 <Para>You simply create a text file containing the relevant survey data,
3827 using a text editor, and save it with a suitable name with a <filename>.svx</filename>
3828 extension. The
3829 easiest way is to look at some of the example data and use that
3830 as a template. Nearly all surveys will need a bit of basic info
3831 as well as the survey data itself: e.g. the date (*date), comments
3832 about where, what cave, a name for the survey (using *begin and *end),
3833 instrument error corrections etc. Here is a typical survey file:
3834 </Para>
3836 <Para>All the lines starting with ';' are comments, which are ignored
3837 by <Application>Survex</Application>. You can also see the use of 'DOWN' for plumbs, and
3838 *calibrate tape for dealing with a tape length error (in this case
3839 the end of the tape had fallen off so measurements were made from the
3840 20cm point).</Para>
3842 <programlisting>
3843 *equate chaos.1 triassic.pt3.8
3844 *equate chaos.2 triassic.pt3.9
3846 *begin chaos
3847 *title "Bottomless Pit of Eternal Chaos to Redemption pitch"
3848 *date 1996.07.11
3849 *team "Nick Proctor" compass clino tape
3850 *team "Anthony Day" notes pictures tape
3851 *instrument compass "CUCC 2"
3852 *instrument clino "CUCC 2"
3853 ;Calibration: Cairn-Rock 071 072 071, -22 -22 -22
3854 ; Rock-Cairn 252 251 252, +21 +21 +21
3855 ;Calibration at 161d entrance from cairn nr entrance to
3856 ;prominent rock edge lower down. This is different from
3857 ;calibration used for thighs survey of 5 July 1996
3859 *export 1 2
3861 ;Tape is 20cm too short
3862 *calibrate tape +0.2
3864 1 2 9.48 208 +08
3865 2 3 9.30 179 -23
3866 3 4 2.17 057 +09
3867 5 4 10.13 263 +78
3868 5 6 2.10 171 -73
3869 7 6 7.93 291 +75
3870 *begin
3871 *calibrate tape 0
3872 8 7 35.64 262 +86 ;true length measured for this leg
3873 *end
3874 8 9 24.90 - DOWN
3875 10 9 8.61 031 -43
3876 10 11 2.53 008 -34
3877 11 12 2.70 286 -20
3878 13 12 5.36 135 +23
3879 14 13 1.52 119 -12
3880 15 14 2.00 036 +13
3881 16 15 2.10 103 +12
3882 17 16 1.40 068 -07
3883 17 18 1.53 285 -42
3884 19 18 5.20 057 -36
3885 19 20 2.41 161 -67
3886 20 21 27.47 - DOWN
3887 21 22 9.30 192 -29
3888 *end chaos</programlisting>
3890 </Sect2>
3892 <Sect2><Title>Join surveys together</Title>
3894 <Para>Once you have more than one survey you need to specify how they
3895 link together. To do this use *export to make the stations to be
3896 joined accessible in the enclosing survey, then *equate in the
3897 enclosing survey to join them together.
3898 <!-- FIXME example -->
3899 </Para>
3901 </Sect2>
3903 <Sect2><Title>Organise my surveys</Title>
3905 <Para>This is actually a large subject. There are many ways you can
3906 organise your data using <Application>Survex</Application>. Take a look at the example dataset
3907 for some ideas of ways to go about it.
3908 </Para>
3910 <Sect3><Title>Fixed Points (Control Points)</Title>
3912 <Para>The *fix command is used to specify fixed points (also know as control
3913 points). See the description of this command in the "Cavern Commands"
3914 section of this manual.
3915 </Para>
3917 </Sect3>
3919 <Sect3><Title>More than one survey per trip</Title>
3921 <Para>Suppose you have two separate bits of surveying which were done on the
3922 same trip. So the calibration details, etc. are the same for both. But you
3923 want to give a different survey name to the two sections. This is easily
3924 achieved like so:
3925 </Para>
3927 <programlisting>
3928 *begin
3929 *calibrate compass 1.0
3930 *calibrate clino 0.5
3931 *begin altroute
3932 ; first survey
3933 *end altroute
3934 *begin faraway
3935 ; second survey
3936 *end faraway
3937 *end</programlisting>
3939 </Sect3>
3941 </Sect2>
3943 <Sect2><Title>Add surface topography</Title>
3945 <Para>Survex 1.2.18 added support for loading terrain data and rendering it as
3946 a transparent surface. Currently the main documentation for this is maintained
3947 as a <ulink url="https://trac.survex.com/wiki/TerrainData">wiki page</ulink>
3948 as this allows us to update it between releases.
3949 </Para>
3951 <Para>
3952 We recommend using this new code in preference, but previously the simplest
3953 approach was to generate a <filename>.svx</filename> file with the surface mesh
3954 in and display it with the survey data.
3955 </Para>
3957 <Para>
3958 It is possible to generate
3959 a mesh or contours overlaying your area by various means. NASA have made
3960 1 arc-second (approximately 30m) terrain data available for the USA for
3961 some years, with only 3 arc-second data available for other countries.
3962 However, starting in 2014 they're gradually making 1 arc-second data
3963 available for more countries.
3964 </Para>
3966 <Para>
3967 If you want a better resolution that this, reading heights from the
3968 contours on a map is one approach. It's laborious, but feasible for
3969 a small area.
3970 </Para>
3972 <Para>
3973 Details of several methods are given in the BCRA Cave Surveying
3974 Group magazine Compass Points issue 11, available online at
3975 <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>
3976 </Para>
3978 <Para>If you're using another program to generate a <filename>.svx</filename> file for the surface
3979 mesh, it's best to use the NOSURVEY data style.
3980 Simply fix all the grid intersections at the correct
3981 coordinates and height, and put legs between them using the NOSURVEY style.
3982 Here's a grid of 4 squares and 9 intersections:
3983 </Para>
3985 <programlisting>
3986 *fix 00 000 000 1070
3987 *fix 01 000 100 1089
3988 *fix 02 000 200 1093
3990 *fix 10 100 000 1062
3991 *fix 11 100 100 1080
3992 *fix 12 100 200 1089
3994 *fix 20 200 000 1050
3995 *fix 21 200 100 1065
3996 *fix 22 200 200 1077
3998 *data nosurvey station
4022 22</programlisting>
4024 <Para>
4025 This is far simpler than trying to create fake tape/compass/clino legs of
4026 the right length for each line in the mesh. It's also very fast to process
4027 with cavern.
4028 </Para>
4030 </Sect2>
4032 <Sect2><Title>Overlay a grid</Title>
4034 <Para>Aven is able to display a grid, but this functionality isn't currently
4035 available in printouts.
4036 You can achieve a similar effect for now by creating a <filename>.svx</filename> file
4037 where the survey legs form a grid.
4038 </Para>
4040 </Sect2>
4042 <Sect2><Title>Import data from other programs</Title>
4044 <Para><Application>Survex</Application> supports a number of features to help with importing
4045 existing data.</Para>
4047 <Para>
4048 Survey data in Compass or Walls format can be processed directly. Processed
4049 survey data in Compass or CMAP formats can be viewed.
4050 </Para>
4052 <Para>For other formats, you may be able to read the data by renaming the file to have
4053 a .svx extension and adding a few Survex commands at the start of the file so Survex
4054 can read the data which follows. For example, you can specify the ordering of items on a line using *Data
4055 (see <Application>Survex</Application> Keywords above), and you can specify the characters used
4056 to mean different things using *Set (see <Application>Survex</Application> Keywords above).
4057 </Para>
4059 <Para>The Ignore and Ignoreall options to the *Data command are often
4060 particularly useful, e.g. if you have a dataset with LRUD info or comments
4061 on the ends of lines.
4062 </Para>
4064 <Sect3><Title>Changing Meanings of Characters</Title>
4066 <Para>e.g. if you have some data with station names containing the
4067 characters '?' and '+' (which are not permitted in a name by default)
4068 then the command:
4069 </Para>
4071 <programlisting>
4072 *SET NAMES ?+</programlisting>
4074 <Para>
4075 specifies that question marks and plus signs are permitted in station names.
4076 A-Z, a-z, and 0-9 are always permitted. '_' and '-' are also permitted by
4077 default, but aren't in this example.
4078 </Para>
4080 <Para>If your data uses a comma ',' instead of a decimal point, then
4081 you use
4082 </Para>
4084 <programlisting>
4085 *SET DECIMAL ,</programlisting>
4087 <Para>to specify that ',' is now the decimal separator instead of '.'.
4088 </Para>
4090 <!-- FIXME
4091 <Para>Note that there are plenty of ways you can use this facility to
4092 completely confuse the software, as it may not be able to work out what is
4093 going on, or it may simply be ambiguous. It can cope with some ambiguity (e.g.
4094 the '-' character is used both for 'MINUS' and for 'OMIT'), but there are
4095 limits. If you have a dataset that you can not make <Application>Survex</Application>
4096 understand, then send it to us, and we will see what can be done.
4097 </Para>
4100 </Sect3>
4102 <!--
4103 Nobody seems to have the CfH convertor...
4104 but it's probably no longer useful anyway
4106 <Sect3><Title>Other Converters</Title>
4108 <Para>We have an Excel 5 macro for converting The Lotus 123 spreadsheets
4109 used by the German survey software Cad F&uuml;r H&ouml;hlen into
4110 <Application>Survex</Application> data files. Other converters may also come to be available.
4111 These will normally be available via the
4112 <ulink url="https://survex.com/"><Application>Survex</Application> Web pages</ulink>.
4113 </Para>
4115 </Sect3>
4118 </Sect2>
4120 <Sect2><Title>See errors and warnings that have gone off the screen</Title>
4122 <Para>When you run <Application>Survex</Application> it will process the specified survey data
4123 files in order, reporting any warnings and errors. If there are no
4124 errors, the output files are written and various statistics about the
4125 survey are displayed. If there are a lot of warnings or errors, they can
4126 scroll off the screen and it's not always possible to scroll back to
4127 read them.
4128 </Para>
4130 <Para>The easiest way to see all the text is to use <command>cavern
4131 --log</command> to redirect output to a <filename>.log</filename> file,
4132 which you can then inspect with a text editor.
4133 </Para>
4135 <!-- <command>cavern cavename &gt; tmpfile</command> -->
4137 </Sect2>
4139 <Sect2><Title>Create an Extended Elevation</Title>
4141 <Para>Use the Extend program. This takes <filename>.3d</filename> files and
4142 'flattens' them. See 'Extend' for details.
4143 </Para>
4145 </Sect2>
4147 </Sect1>
4149 <!--
4150 <Sect1><Title>Appendices</Title>
4151 <?dbhtml filename="appendix.htm">
4153 <Para>Files provided
4154 </Para>
4156 <Para>Command specification
4157 </Para>
4159 </Sect1>
4161 <Sect1><Title>Working with Larry Fish's Compass</Title>
4162 <?dbhtml filename="compass.htm">
4164 <Para>
4165 Survex can read Compass survey data - it supports survey data files and
4166 project files (.DAT and .MAK files), closed data files (.CLP), and processed
4167 survey data (.PLT and .PLF files). Survex 1.4.6 made significant improvements to
4168 this support so we recommend using this version or newer if you're working with
4169 Compass data.
4170 </Para>
4172 <Sect2><Title>Compass .DAT support</Title>
4173 <Para>
4174 A Compass .DAT file contains raw survey data. You can process a .DAT file
4175 with cavern or aven as if it were a .svx file.
4176 </Para>
4178 <Para>
4179 You can even use <command>*include compassfile.dat</command> in a
4180 <filename>.svx</filename> file and it'll work, which allows combining
4181 separate cave survey projects maintained in Survex and Compass.
4182 </Para>
4184 <Para>
4185 One point to note when doing so (this tripped us up!) is that station names
4186 in DAT files are case sensitive and so Survex reads DAT files with the
4187 equivalent of <command>*case preserve</command>. The default in SVX files is
4188 <command>*case lower</command>. So this won't work
4190 <programlisting>
4191 *fix CE1 0 0 0
4192 *include datfilewhichusesCE1.dat</programlisting>
4194 because the CE1 in the *fix is actually interpreted as ce1. The solution
4195 is to turn on preserving of case while you fix the point like so:
4197 <programlisting>
4198 *begin
4199 *case preserve
4200 *fix CE1 0 0 0
4201 *end
4202 *include datfilewhichusesCE1.dat</programlisting>
4204 If you want to be able to refer to the fixed point from Survex data too
4205 then you can add in a *equate to achieve that:
4207 <programlisting>
4208 *begin
4209 *case preserve
4210 *fix CE1 0 0 0
4211 *equate CE1 ce1
4212 *end
4213 *include datfilewhichusesCE1.dat
4214 *include svxfilewhichusesce1.svx</programlisting>
4216 Or if you're just wanting to link a Compass survey to a Survex one, you
4217 can use a *equate with *case preserve on:
4219 <programlisting>
4220 *begin
4221 *case preserve
4222 *equate CE1 ce1
4223 *end
4224 *include datfilewhichusesCE1.dat
4225 *include svxfilewhichusesce1.svx</programlisting>
4226 </Para>
4228 <Para>
4229 Survex understands most DAT file features. Known current limitations and
4230 assumptions:
4232 <ItemizedList>
4233 <ListItem><Para>
4234 The cave name, survey short name, survey comment and survey team
4235 information are currently ignored (because this information isn't
4236 currently saved in the .3d file even for .svx files).
4237 </Para></ListItem>
4238 <ListItem><Para>
4239 Survey date January 1st 1901 is treated as "no date specified", since
4240 this is the date Compass stores in this situation, and it seems very
4241 unlikely to occur in real data.
4242 </Para></ListItem>
4243 <ListItem><Para>
4244 Passage dimensions are currently ignored.
4245 </Para></ListItem>
4246 <ListItem><Para>
4247 Shot flag C is currently ignored.
4248 </Para></ListItem>
4249 <ListItem><Para>
4250 Shot flag L is mapped to Survex's "duplicate" leg flag.
4251 </Para></ListItem>
4252 <ListItem><Para>
4253 Shot flag P is mapped to Survex's "surface" leg flag. The Compass
4254 documentation describes shot flag P as "Exclude this shot from
4255 plotting", but the suggested use for it is for surface data, and
4256 shots flagged P "[do] not support passage modeling". Even if it's
4257 actually being used for a different purpose, Survex programs don't show
4258 surface legs by default so the end effect is at least to not plot as
4259 intended.
4260 </Para></ListItem>
4261 <ListItem><Para>
4262 Shot flag S is mapped to Survex's "splay" leg flag.
4263 </Para></ListItem>
4264 <ListItem><Para>
4265 Surveys which indicate a depth gauge was used for azimuth readings are
4266 now marked as STYLE_DIVING in the 3d file.
4267 </Para></ListItem>
4268 </ItemizedList>
4269 </Para>
4271 </Sect2>
4273 <Sect2><Title>Compass .MAK support</Title>
4275 <Para>
4276 A Compass .MAK file defines a survey project to process, and specifies one or
4277 more .DAT files to process, along with coordinate systems and fixed points.
4278 You can process a .MAK file with cavern or aven as if it were a .svx file.
4279 </Para>
4281 <Para>
4282 Survex understands most MAK file features. Known current limitations and
4283 assumptions:
4285 <ItemizedList>
4286 <ListItem><Para>
4287 Survex handles the UTM zone and datum provided the combination can be
4288 expressed as an EPSG code (lack of any EPSG codes for a datum suggests
4289 it's obsolete; lack of a code for a particular datum+zone combination
4290 suggests the zone is outside of the defined area of use of the datum).
4291 Example Compass files we've seen use "North American 1927" outside of
4292 where it's defined for use, presumably because some users fail to change
4293 the datum from Compass' default. To enable reading such files we return
4294 a PROJ4 string of the form "+proj=utm ..." for "North American 1927" and
4295 "North American 1983" for UTM zones which don't have an EPSG code.
4296 Please let us know if support for additional cases which aren't
4297 currently supported would be useful to you.
4298 </Para></ListItem>
4299 <ListItem><Para>
4300 The @ command which specifes a base location to calculate magnetic
4301 declinations at is handled, provided the datum and UTM zone are
4302 supported (see previous bullet point). The UTM convergence angle
4303 specified as part of this command is ignored as Survex knows how to
4304 calculate it.
4305 </Para></ListItem>
4306 <ListItem><Para>
4307 Link stations are ignored. These have two uses in Compass. They were
4308 a way to allow processing large surveys on computers from last century
4309 which had limited memory. Survex can easily handle even the largest
4310 surveys on current hardware and ignoring them is not a problem in this
4311 case.
4312 </Para>
4313 <Para>
4314 The other use is they provide a way to process surveys together
4315 which use the same station names for different stations. In this
4316 case we recommend writing a .svx file to replace the MAK file which
4317 wraps the <command>*include</command> of each DAT file in
4318 <command>*begin survey1</command>/<command>*end survey1</command>, etc so that
4319 stations have unique qualified names. Then the link stations can
4320 be implementing using e.g. <command>*equate survey1.XX1 survey2.XX1</command>.
4321 This example from the Compass documentation:
4323 <programlisting>
4324 #FILE1.DAT; /no links
4325 #FILE2.DAT,A22,A16;
4326 #FILE3.DAT,A16,B14;</programlisting>
4328 would look like this:
4330 <programlisting>
4331 *begin file1
4332 *include FILE1.DAT
4333 *end file1
4334 *begin file2
4335 *include FILE2.DAT
4336 *end file2
4337 *equate file1.A22 file2.A22
4338 *begin file3
4339 *include FILE3.DAT
4340 *end file3
4341 *equate file1.A16 file3.A16
4342 *equate file2.B14 file3.B14</programlisting>
4344 Note that the .svx version is able to more precisely represent what's actually
4345 required here - in the MAK version "you must carry A16 into FILE2 even though
4346 FILE2 doesn't need it for its own processing". If you want the exact analog of
4347 the MAK version you can change the A16 equate to:
4349 <programlisting>
4350 *equate file1.A16 file2.A16 file3.A16</programlisting>
4351 </Para></ListItem>
4353 <ListItem><Para>
4354 The following commands (and any other unknown commands) are currently
4355 ignored:
4356 % (Convergence angle (file-level)),
4357 * (Convergence angle (non file-level)),
4358 ! (Project parameters)
4359 </Para></ListItem>
4360 </ItemizedList>
4361 </Para>
4362 </Sect2>
4364 <Sect2><Title>Compass .CLP support</Title>
4365 <Para>
4366 A Compass .CLP file contains raw survey data after adjusting for loop closure.
4367 The actual format is otherwise identical to a Compass .DAT file, and Survex
4368 1.4.6 and later support processing a .CLP file with cavern or aven as if it
4369 were a .svx file (the extra support is to recognise the .CLP extension, and
4370 to not apply the instrument corrections a second time).
4371 </Para>
4373 <Para>
4374 You can even use <command>*include compassfile.clp</command> in a
4375 <filename>.svx</filename> file and it'll work, which allows combining
4376 separate cave survey projects maintained in Survex and Compass.
4377 </Para>
4379 <Para>
4380 Usually it is preferable to process the survey data without loop closure
4381 adjustments (i.e. .DAT) so that when new data is added errors get
4382 distributed appropriately across old and new data, but it might be
4383 useful to use the .CLP file if you want to keep existing stations at the same
4384 adjusted positions, for example to be able to draw extensions on an existing
4385 drawn-up survey which was processed with Compass.
4386 </Para>
4388 <Para>
4389 Another possible reason to use the data from a .CLP file is if that's all
4390 you have because the original .DAT file has been lost.
4391 </Para>
4392 </Sect2>
4394 <Sect2><Title>Compass .PLF/.PLT support</Title>
4395 <Para>
4396 A Compass .PLT file contains processed survey data. The extension .PLF is
4397 also used for "special feature files" which have essentially the same format.
4398 You can load these files with <command>aven</command> as if they were .3d
4399 files, and similarly for other Survex tools which expect a .3d file such as
4400 <command>survexport</command>, <command>extend</command>,
4401 <command>diffpos</command>, <command>3dtopos</command> and
4402 <command>dump3d</command>. (This support is actually provided by Survex's img
4403 library, so other programs which use this library should also be able to read
4404 Compass .PLT files without much extra work.)
4405 </Para>
4407 <Para>
4408 Survex understands most PLT file features. Known current limitations and
4409 assumptions:
4411 <ItemizedList>
4412 <ListItem><Para>
4413 Survey date January 1st 1901 is treated as "no date specified", since
4414 this is the date Compass stores in this situation, and it seems very
4415 unlikely to occur in real data.
4416 </Para></ListItem>
4417 <ListItem><Para>
4418 Passage dimensions are translated to passage tubes, but Survex may
4419 interpret them differently from Compass.
4420 </Para></ListItem>
4421 <ListItem><Para>
4422 Shot flag C is currently ignored.
4423 </Para></ListItem>
4424 <ListItem><Para>
4425 Shot flag L is mapped to Survex's "duplicate" leg flag.
4426 </Para></ListItem>
4427 <ListItem><Para>
4428 Shot flag P and plot command d are mapped to Survex's "surface" leg
4429 flag. The Compass documentation describes shot flag P as "Exclude this
4430 shot from plotting", but the suggested use for it is for surface data,
4431 and shots flagged P "[do] not support passage modeling". Even if it's
4432 actually being used for a different purpose, Survex programs don't show
4433 surface legs by default so the end effect is at least to not plot as
4434 intended. Stations are flagged as surface and/or underground based
4435 on whether they are at the ends of legs flagged surface or non-surface
4436 (a station at the boundary can be flagged as both).
4437 </Para></ListItem>
4438 <ListItem><Para>
4439 Shot flag S is mapped to Survex's "splay" leg flag. A station at the
4440 far end of a shot flagged S gets the "station on wall" flag set since
4441 the Compass PLT format specification says:
4442 <quote>
4443 The shot is a "splay" shot, which is a shot from a station to the
4444 wall to define the passage shape.
4445 </quote>
4446 </Para></ListItem>
4447 <ListItem><Para>
4448 Stations with "distance from entrance" of zero are flagged as entrances.
4449 </Para></ListItem>
4450 <ListItem><Para>
4451 Stations which are present in multiple surveys are flagged as exported
4452 (like when <command>*infer exports</command> is in effect in .svx files).
4453 </Para></ListItem>
4454 <ListItem><Para>
4455 Stations listed as fixed points are flagged as fixed points.
4456 </Para></ListItem>
4457 <ListItem><Para>
4458 If a PLT file only uses one datum and UTM zone combination and it is
4459 supported (the same combinations are supported as for MAK files) then
4460 they are converted to the appropriate EPSG code or PROJ4 string and this
4461 is reported as the coordinate system. Please let us know if support for
4462 additional cases which aren't currently supported would be useful to you.
4463 Files with multiple datums could be handled too, but we'd need to convert
4464 coordinates to a common coordinate system in the img library, which would
4465 need it to depend on PROJ. Please let us know if support for mixed
4466 datums would be useful to you.
4467 </Para></ListItem>
4468 </ItemizedList>
4469 </Para>
4471 </Sect2>
4473 </Sect1>
4475 <Sect1><Title>Mailing List</Title>
4476 <?dbhtml filename="maillist.htm">
4478 <Para>The best way to contact the authors and other Survex users is the
4479 Survex mailing list - for details visit:
4480 <ulink url="https://survex.com/maillist.html">https://survex.com/maillist.html</ulink>
4481 </Para>
4483 <Para>We'd be delighted to hear how you get on with <Application>Survex</Application> and
4484 welcome comments and suggestions for improvements.</Para>
4486 <Para>
4487 And we'd love you to contribute your skills to help make <Application>Survex</Application> even
4488 better. Point out areas of the documentation which could be made clearer, or
4489 sections which are missing entirely. Download test releases, try them out, and
4490 let us know if you find problems or have suggestions for improvements.
4491 If there's no translation to your language, you could provide one.
4492 Or if you're a developer, <emphasis>"Say it with code"</emphasis>. There's
4493 plenty to do, so feel free to join in.
4494 </Para>
4496 </Sect1>
4498 <Sect1><Title>Working with David McKenzie's Walls</Title>
4499 <?dbhtml filename="walls.htm">
4501 <Para>
4502 Survex 1.4.9 and later can read Walls unprocessed survey data (.SRV and .WPJ
4503 files). The support is currently somewhat experimental, as the documentation
4504 of the SRV format is incomplete and incorrect in places, while the WPJ format
4505 seems to be largely undocumented, and David is sadly no longer around to ask.
4506 </Para>
4508 <Para>
4509 The current status is that most .SRV files should process individually (but
4510 see details below of features which are not handled), while there are still some
4511 known issues which cause problems with some .WPJ files.
4512 </Para>
4514 <Para>
4515 Walls is no longer being developed, so the focus of support for Walls
4516 formats is primarily to help people with existing Walls data to migrate.
4517 If you are in this situation and the incomplete WPJ support is a problem, you
4518 should be able to write a .svx file to replace your WPJ file - you can use
4519 "*include somedata.srv" to include a Walls .srv from a .svx file.
4520 </Para>
4522 <Para>
4523 <ItemizedList>
4524 <ListItem><Para>
4525 Walls allows hanging surveys, whereas these are currently treated as an
4526 error by Survex. This is probably the current top priority to address.
4527 </Para></ListItem>
4528 <ListItem><Para>
4529 Survex reports warnings in some suspect situations which Walls quietly
4530 accepts. In general this seems helpful, but if there are particular
4531 instances which are noisy and not useful, let us know.
4532 </Para></ListItem>
4533 <ListItem><Para>
4534 #FIX - currently Survex does not support horizontal-only or vertical
4535 only fixes. These are currently given an SD of 1000m in that direction
4536 instead, but that is not the same as completely decoupling the fix in
4537 that direction.
4538 </Para></ListItem>
4539 <ListItem><Para>
4540 #FIX - degree:minute:second fixes (e.g. W97:43:52.5) are not currently
4541 supported.
4542 </Para></ListItem>
4543 <ListItem><Para>
4544 Walls FLAG values seems to be arbitrary text strings. We try to infer
4545 appropriate Survex station flags by checking for certain key words in
4546 that text (currently we map words ENTRANCE and FIX to the corresponding
4547 Survex station flags) and otherwise ignore FLAG values.
4548 </Para></ListItem>
4549 <ListItem><Para>
4550 We don't currently support all the datum names which Walls does because
4551 we haven't managed to find an EPSG code for any UTM zones in some of
4552 these datums. This probably means they're not actually in current
4553 use.
4554 </Para></ListItem>
4555 <ListItem><Para>
4556 We currently assume all two digit years are 19xx (Walls documents
4557 it 'also accepts "some date formats common in the U.S. (mm/dd/yy,
4558 mm-dd-yyyy, etc.)' but doesn't say how it interprets 'yy'.
4559 </Para></ListItem>
4560 <ListItem><Para>
4561 The documentation specifies that the SAVE and RESTORE options should be
4562 processed before other options. Currently Survex just processes all
4563 options in the order specified, which makes no difference to any
4564 real-world data we've seen. We need to test with Walls32.exe to
4565 determine exactly how this works (and if RESET is also special).
4566 </Para></ListItem>
4567 <ListItem><Para>
4568 LRUD data is currently ignored.
4569 </Para></ListItem>
4570 <ListItem><Para>
4571 The TAPE= option is currently quietly skipped, and tape measurements
4572 are assumed to be station to station.
4573 </Para></ListItem>
4574 <ListItem><Para>
4575 In TYPEAB= and TYPEVB=, the threshold is ignored, as is the X meaning to
4576 only use foresights (but still check backsights). Survex uses a
4577 threshold based on the specified instrument SDs, and averages foresights
4578 and backsights.
4579 </Para></ListItem>
4580 <ListItem><Para>
4581 FLAG= is quietly skipped.
4582 </Para></ListItem>
4583 <ListItem><Para>
4584 UV=, UVH= and UVV= are all quietly skipped.
4585 </Para></ListItem>
4586 <ListItem><Para>
4587 The GRID= option currently gives an "Unknown command" warning, and is
4588 skipped. If your Walls data specifies a UTM zone then Survex will
4589 automatically correct for grid convergence.
4590 </Para></ListItem>
4591 <ListItem><Para>
4592 The INCH= option currently gives an "Unknown command" warning, and is
4593 skipped.
4594 </Para></ListItem>
4595 <ListItem><Para>
4596 The RECT= option currently gives an "Unknown command" warning, and is
4597 skipped (this option specifies how much to orient cartesian style data
4598 relative to true North, not to be confused with the RECT option which
4599 is upported).
4600 </Para></ListItem>
4601 <ListItem><Para>
4602 Walls documents allowing a "maxiumum of eight characters" in unprefixed
4603 names - we don't bother trying to enforce this restriction, but this
4604 should not make a difference in valid data.
4605 </Para></ListItem>
4606 <ListItem><Para>
4607 Walls seems to allow \ in place of / in some places (e.g. #FLAG). We
4608 aim to support this too, but it doesn't seem to be documented so may
4609 not currently be supported in the correct places.
4610 </Para></ListItem>
4611 <ListItem><Para>
4612 The inheritance of settings in WPJ files is probably not correctly
4613 implemented currently.
4614 </Para></ListItem>
4615 <ListItem><Para>
4616 The Walls documentation mentions a NOTE= option, but doesn't document
4617 what it does, and testing with Walls32.exe it doesn't seem to actually
4618 be supported!
4619 </Para></ListItem>
4620 <ListItem><Para>
4621 The two UPS zones for the polar regions (specified as UTM zone values
4622 of -61 and 61 in Walls) are supported with datum WGS84, but we do not
4623 have any real data to test this support with.
4624 </Para></ListItem>
4625 </ItemizedList>
4626 </Para>
4628 <Para>
4629 If you find some Walls data which Survex doesn't handle or handles incorrectly,
4630 and it is not already noted above, please let us know. If you can provide some
4631 data demonstrating the problem, that's really helpful. It's also useful to know
4632 if there are things listed above that are problematic to help prioritise
4633 efforts.
4634 </Para>
4636 <Sect1><Title>Working with Bob Thrun's CMAP</Title>
4637 <?dbhtml filename="walls.htm">
4639 <Para>
4640 Survex can read CMAP processed survey data, commonly known as CMAP XYZ files.
4641 CMAP no longer seems to be used, but we've kept the support in place so
4642 it's there if anyone finds old data and wants to view it.
4643 </Para>
4645 <Para>
4646 Support was added long ago (Survex 1.0.4) but you really want to use Survex
4647 1.4.9 or later due to a feet to metres conversion bug in all versions before
4648 this, which scaled all returned coordinates from CMAP XYZ files by a factor of
4649 about 10.76.
4650 </Para>
4652 <Para>
4653 CMAP XYZ files contain a timestamp. CMAP was originally written for computers
4654 where the clock was just set to localtime so it seems likely this timestamp is
4655 in localtime, but it does not specify a timezone. Survex assumes it's in UTC,
4656 which is at least fairly central in the possibilities, but may mean timestamps
4657 are off by up to about half a day. The timestamps in example files all use two
4658 digit years. It's not documented how CMAP handles years 2000 and later, so we
4659 assume 4 digit years are correct, years &lt; 50 are 20xx, and other years get
4660 1900 added to them (so year 101 is 2001).
4661 </Para>
4663 <Para>
4664 CMAP XYZ files don't seem to contain any stations flags. There's a single
4665 character "type" which acts as a leg flag of sorts, but it seems the
4666 meaning is up to the user so we don't try to interpret it. We assume all
4667 the data is underground (so all stations get the "underground" flag).
4668 </Para>
4670 <Para>
4671 There are two variants of CMAP XYZ files. CMAP v16 and later produce
4672 the "shot" variant (with extension ".sht"), which is well supported by
4673 Survex.
4674 </Para>
4676 <Para>
4677 Older CMAP versions produced the "station" variant (with extension ".adj" for
4678 adjusted data and ".una" for unadjusted data). Survex only supports
4679 reading stations from these - the survey legs linking them are currently
4680 ignored.
4681 </Para>
4683 <Sect1><Title>Future Developments</Title>
4684 <?dbhtml filename="future.htm">
4686 <Para>
4687 Now that <Application>Survex</Application> has reached version 1.0, we are continuing progress
4688 towards version 2, in a series of steps, evolving out of
4689 Survex 1.0. The GUI framework is being based on aven, with
4690 the printer drivers and other utility programs being pulled in
4691 and integrated into the menus.</Para>
4693 <Para>Aven is built on <Application>wxWidgets</Application>, which means that it can easily support
4694 Unix, Microsoft Windows, and macOS.</Para>
4696 <Para>More information on our plans is on the <ulink
4697 url="https://survex.com/">web site</ulink>.
4698 </Para>
4700 </Sect1>
4702 </article>