Update manual for Microsoft Windows changes
[survex.git] / doc / manual.sgml
blobf1ed43aa8fd845ba0f51286411ab57368acecaf5
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.2.35 Manual</Title>
86 <AuthorGroup>
87 <Author>
88 <FirstName>Olly</FirstName>
89 <SurName>Betts</SurName>
90 <AuthorBlurb><Para>
91 Olly Betts wrote most of <Application>Survex</Application>.
92 </Para></AuthorBlurb>
93 <Affiliation>
94 <Address><Email>olly@survex.com</Email></Address>
95 </Affiliation>
96 </Author>
97 <Author>
98 <SurName>Wookey</SurName>
99 <AuthorBlurb><Para>
100 Wookey is a small furry creature.
101 </Para></AuthorBlurb>
102 <Affiliation>
103 <Address><Email>wookey@survex.com</Email></Address>
104 </Affiliation>
105 </Author>
106 </AuthorGroup>
107 <copyright>
108 <year>1998-2016</year>
109 <holder role="mailto:olly@survex.com">Olly Betts</holder>
110 </copyright>
111 <Abstract>
112 <Para>
113 This is the manual for <Application>Survex</Application> - an open-source software package for
114 cave surveyors.
115 </Para>
116 </Abstract>
117 </articleinfo>
119 <Sect1><Title>Introduction</Title>
120 <?dbhtml filename="intro.htm">
122 <Para>
123 This section describes what <Application>Survex</Application> is, and outlines the scope of this
124 manual.
125 </Para>
127 <Sect2><Title>About <Application>Survex</Application></Title>
129 <Para><Application>Survex</Application> is a multi-platform open-source cave surveying
130 package.
131 Version 1.2 runs on UNIX, Microsoft Windows, and Mac OS X.
132 We're investigating support for phones and tablets.
133 </Para>
135 <Para>We are well aware that not everyone has access to super hardware
136 - often surveying projects are run on little or no budget and any
137 computers used are donated. We aim to ensure that <Application>Survex</Application> is
138 feasible to use on low-spec machines. Obviously it won't be as
139 responsive, but we intend it to be usable.
140 Please help us to achieve this by giving us some feedback
141 if you use <Application>Survex</Application> on a slow machine.</Para>
143 <Para><Application>Survex</Application> is capable of processing extremely complex caves very
144 quickly and has a very effective, real-time cave viewer which allows
145 you to rotate, zoom, and pan the cave using mouse or keyboard. We have
146 tested it extensively using <Acronym>CUCC</Acronym> and <Acronym>ARGE</Acronym>'s surveys of the caves
147 under the Loser Plateau in Austria (over 25,000 survey legs, and over
148 140km of underground survey data). This can all be processed in around
149 10 seconds on a low-end netbook.
150 Survex is also used by many other survey projects around the world,
151 including the
152 <ulink url="http://www.oucc.org.uk/draenen/draenenmain.htm"
153 >Ogof Draenen</ulink> survey, the
154 <ulink url="http://www.easegill.org.uk/">Easegill</ulink> resurvey project,
155 the <Acronym>OFD</Acronym> survey, the
156 <!-- url="http://milos2.zoo.ox.ac.uk/~oucc/reports/surveys/surveys.htm" -->
157 <ulink url="http://www.oucc.org.uk/reports/surveys/surveys.htm"
158 ><Acronym>OUCC</Acronym> Picos expeditions</ulink>, and the
159 <ulink url="http://www.hongmeigui.net/">Hong Meigui China
160 expeditions</ulink>. <!-- FIXME more? --></Para>
162 <Para><Application>Survex</Application> is still actively being worked on. Version 1.0 was
163 complete in some sense, but development continues - initially in reshaping
164 Survex into a more integrated GUI package.</Para>
166 <Para>We encourage feedback from users on important features or problems,
167 which will help to direct future development. See the "Mailing List" section
168 of this manual for the best way to contact us.</Para>
170 </Sect2>
172 <!--
173 <Para>Because <Application>Survex</Application> is still being actively developed, this document
174 has an unfortunate tendency to lag slightly behind the capabilities of the
175 software. The latest version is now available on the web at <ulink
176 url="https://survex.com/">https://survex.com/</ulink> - check there for latest info.
177 </Para>
180 <!--
181 <Sect2><Title>Other Documentation</Title>
183 <variablelist>
184 <varlistentry>
185 <term>NEWS or NEWS.txt</term>
186 <listitem><Para>a list of changes of interest to
187 <Application>Survex</Application> users, broken down by version number. Consult this file
188 when upgrading to find out what has changed since the version you were
189 using previously.
190 </Para></listitem>
191 </varlistentry>
193 <varlistentry>
194 <term>ChangeLog or CHANGES.txt</term>
195 <listitem><Para>a much more detailed list of changes, aimed at developers
196 rather than end users.
197 </Para></listitem>
198 </varlistentry>
200 <varlistentry>
201 <term>BUGS or BUGS.txt</term>
202 <listitem><Para>a list of known bugs.
203 </Para></listitem>
204 </varlistentry>
206 <varlistentry>
207 <term>TODO or TODO.txt</term>
208 <listitem><Para>planned changes and enhancements.
209 </Para></listitem>
210 </varlistentry>
212 FIXME: merge INSTALL* into here, then process separately and textify
213 to produce INSTALL*
215 <varlistentry>
216 <term>INSTALL or INSTALL.txt</term>
217 <listitem><Para>instructions for installing <Application>Survex</Application>. The
218 Microsoft Windows version comes packaged up with an installation wizard,
219 so this file doesn't exist there (you just run the package and follow
220 the on-screen instructions).
221 </Para></listitem>
222 </varlistentry>
223 </variablelist>
225 </Sect2>
228 <Sect2><Title>About this Manual</Title>
230 <Para>
231 If there's a part of this manual you find hard to understand, please do
232 let us know. We already know Survex well, so it can be hard for us
233 to spot areas where the manual doesn't given enough information, or
234 doesn't explain things clearly enough to follow when you don't know what's
235 going on. It's helpful is you can suggest a better wording, but don't worry
236 if you can't, just explain the problem as precisely as you can.
237 </Para>
239 <Para>
240 The master version of this manual is an <acronym>SGML</acronym>
241 document written using the <ulink url="http://www.docbook.org/">docbook
242 <acronym>DTD</acronym></ulink>,
243 and automatically converted to a number of other formats. If
244 you are going to send us <emphasis>major</emphasis> changes, it's much easier
245 to include them if you work from this master. You can get it
246 from the source archive (docs/manual.sgml) or from <ulink
247 url="https://survex.com/docs.html">the Survex website</ulink>.
248 </Para>
250 <Sect3><Title>Terminology</Title>
252 <Para>Throughout this document we use British terminology for
253 surveying.</Para>
255 <variablelist>
256 <varlistentry>
257 <term>station</term>
258 <listitem><para>a point in the cave that you survey from and/or to
259 </para></listitem></varlistentry>
261 <varlistentry>
262 <term>leg</term>
263 <listitem><para>a line joining two stations
264 </para></listitem></varlistentry>
266 <varlistentry>
267 <term>survey</term>
268 <listitem><para>a group of legs surveyed on the same trip
269 </para></listitem></varlistentry>
271 </variablelist>
273 </Sect3>
275 </Sect2>
277 <!-- FIXME: Further sources of info: website, mailing lists, other docs -->
279 </Sect1>
281 <Sect1><Title>Getting Started</Title>
282 <?dbhtml filename="getstart.htm">
284 <Para>This section covers how to obtain the software, and how to unpack and
285 install it, and how to configure it.</Para>
287 <Sect2><Title>Obtaining <Application>Survex</Application></Title>
289 <Para>The latest version is available from the <Application>Survex</Application> website:
290 <ulink url="https://survex.com/">https://survex.com/</ulink>. It is also
291 freely redistributable, so you welcome to get a copy from someone else
292 who has already downloaded it.</Para>
294 <Para>If you want some sample data to experiment with, you can download some
295 from the Survex website too:
296 <ulink url="https://survex.com/software/sample.tar.gz">https://survex.com/software/sample.tar.gz</ulink></Para>
298 </Sect2>
300 <Sect2><Title>Installing <Application>Survex</Application></Title>
302 <Para>The details of installation depend greatly on what platform you
303 are using, so there is a separate section below for each platform.</Para>
305 <Sect3><Title>Linux</Title>
307 <Para>
308 We supply pre-compiled versions for x86 Linux machines in RPM format
309 (suitable for Redhat, Mandrake, and some other distributions).
310 Survex Debian packages are available from Debian mirror sites in
311 the usual way.
312 </Para>
314 <Para>
315 You'll need root access to install these prebuilt packages.
316 If you don't have root access you will need to build from source
317 (see the next section).
318 </Para>
320 <!-- FIXME Add Gnome file association note for Linux/Unix
321 <Para>On Microsoft Windows, <Application>Survex</Application> installs with
322 suitable file associations so that you can drive it from the GUI.
323 On UNIX you need to drive <Application>Survex</Application> from a command-line
324 prompt (or set some a filemanager or graphics shell).
325 </Para>
328 </Sect3>
330 <Sect3><Title>Other versions of UNIX</Title>
332 <Para>For other UNIX versions you'll need to get the source code
333 and compile it on your system. Unpack the sources and read
334 the file called INSTALL in the top level for details about building
335 from source.
336 </Para>
338 </Sect3>
340 <Sect3><Title>Microsoft Windows</Title>
342 <Para>
343 This version comes packaged with an installation wizard. Just
344 run the downloaded package and it will lead you through the
345 installation process. If you want the file associations to be
346 set up for all user, run the installer as administrator, or as a
347 user with administrator rights.
348 </Para>
350 <Para>
351 The survey viewer that's part of <Application>Survex</Application> is called
352 aven, and uses OpenGL for 3d rendering.
353 </Para>
355 <Para>
356 If you find that 3D rendering is sometimes very slow (e.g. one user reported
357 very slow performance when running full screen, while running in a window
358 was fine) then try installing the OpenGL driver supplied by the manufacturer
359 of your graphics card rather than the driver Microsoft supply.
360 </Para>
362 <Para>
363 The installer creates a Survex group in the Programs sub-menu of the
364 Start menu containing the following items:
365 </Para>
367 <ItemizedList>
369 <ListItem><Para>Aven</Para></ListItem>
371 <ListItem><Para>Documentation</Para></ListItem>
373 <ListItem><Para>Uninstall Survex</Para></ListItem>
375 </ItemizedList>
377 <Para>
378 Icons are installed for <filename>.svx</filename>, <filename>.3d</filename>, <filename>.err</filename>, and <filename>.pos</filename> files, and also for
379 Compass Plot files (<filename>.plt</filename> and <filename>.plf</filename>)
380 (which Survex can read). <!-- FIXME XYZ -->
381 Double-clicking on a <filename>.svx</filename> file loads it for editing. To process it to
382 produce a <filename>.3d</filename> file, right click and choose "Process" from
383 the menu - this runs aven to process the <filename>.svx</filename> file and
384 automatically load the resultant <filename>.3d</filename> file.
385 All the <Application>Survex</Application> file types can be right clicked on to give a menu of
386 possible actions.
387 </Para>
389 <VariableList>
390 <VarListEntry><Term><filename>.svx</filename></Term>
391 <ListItem>
392 <VariableList>
393 <VarListEntry><Term>Process</Term>
394 <ListItem><Para>
395 Process file with aven to produce <filename>.3d</filename> file (and <filename>.err</filename> file)
396 </Para></ListItem>
397 </VarListEntry>
398 </VariableList>
399 </ListItem>
400 </VarListEntry>
402 <VarListEntry><Term><filename>.3d</filename></Term>
403 <ListItem>
404 <VariableList>
405 <VarListEntry><Term>Open</Term>
406 <ListItem><Para>
407 Load file into Aven
408 </Para></ListItem>
409 </VarListEntry>
410 <VarListEntry><Term>Print</Term>
411 <ListItem><Para>
412 Print the file via Aven
413 </Para></ListItem>
414 </VarListEntry>
415 <VarListEntry><Term>Extend</Term>
416 <ListItem><Para>
417 Produce extended elevation
418 </Para></ListItem>
419 </VarListEntry>
420 <VarListEntry><Term>Convert to DXF</Term>
421 <ListItem><Para>
422 This entry used to be provided to allow converting to a DXF file (suitable
423 for importing into many CAD packages) but this functionality is now available
424 from inside Aven with the ability to control what is exported, and this entry
425 was dropped in 1.2.35.
426 </Para></ListItem>
427 </VarListEntry>
428 <VarListEntry><Term>Convert for hand plotting</Term>
429 <ListItem><Para>
430 This entry used to be provided to allow converting to a <filename>.pos</filename> file
431 listing all the stations and their coordinates, but this functionality is now
432 available from inside Aven with the ability to control what is exported. and
433 this entry was dropped in 1.2.35.
434 </Para></ListItem>
435 </VarListEntry>
436 </VariableList>
437 </ListItem>
438 </VarListEntry>
440 <VarListEntry><Term><filename>.err</filename></Term>
441 <ListItem>
442 <VariableList>
443 <VarListEntry><Term>Open</Term>
444 <ListItem><Para>
445 Load file into Notepad
446 </Para></ListItem>
447 </VarListEntry>
448 <VarListEntry><Term>Sort by Error</Term>
449 <ListItem><Para>
450 Sort <filename>.err</filename> file by the error in each traverse
451 </Para></ListItem>
452 </VarListEntry>
453 <VarListEntry><Term>Sort by Horizontal Error</Term>
454 <ListItem><Para>
455 Sort <filename>.err</filename> file by the horizontal error in each traverse
456 </Para></ListItem>
457 </VarListEntry>
458 <VarListEntry><Term>Sort by Vertical Error</Term>
459 <ListItem><Para>
460 Sort <filename>.err</filename> file by the vertical error in each traverse
461 </Para></ListItem>
462 </VarListEntry>
463 <VarListEntry><Term>Sort by Percentage Error</Term>
464 <ListItem><Para>
465 Sort <filename>.err</filename> file by the percentage error in each traverse
466 </Para></ListItem>
467 </VarListEntry>
468 <VarListEntry><Term>Sort by Error per Leg</Term>
469 <ListItem><Para>
470 Sort <filename>.err</filename> file by the error per leg in each traverse
471 </Para></ListItem>
472 </VarListEntry>
473 </VariableList>
474 </ListItem>
475 </VarListEntry>
476 </VariableList>
478 </Sect3>
480 </Sect2>
482 <Sect2><Title>Configuration</Title>
484 <Sect3><Title>Selecting Your Preferred Language</Title>
486 <Para>Survex has extensive internationalisation capabilities. The
487 language used for messages from Survex and most of the library calls
488 it uses can be changed. By default this is picked up from the
489 language the operating system is set to use (from "Regional Settings"
490 in Control Panel on Microsoft Windows, from the
491 <systemitem>LANG</systemitem> environment variable on UNIX
492 If no setting
493 is found, or <Application>Survex</Application> hasn't been translated into the
494 requested language, UK English is used.</Para>
496 <Para>
497 However you may want to override the language manually -
498 for example if Survex isn't available in your native language
499 you'll want to choose the supported language you understand best.
500 </Para>
502 <Para>
503 To do this, you set the
504 <systemitem>SURVEXLANG</systemitem> environment variable. Here's a list
505 of the codes currently supported:</Para>
507 <informaltable frame="all">
508 <tgroup cols="2">
509 <thead>
510 <row><entry>Code</entry><entry>Language</entry></row>
511 </thead>
512 <tbody>
513 <row><entry>en</entry><entry>International English</entry></row>
514 <row><entry>en_US</entry><entry>US English</entry></row>
515 <row><entry>bg</entry><entry>Bulgarian</entry></row>
516 <row><entry>ca</entry><entry>Catalan</entry></row>
517 <row><entry>de</entry><entry>German</entry></row>
518 <row><entry>de_CH</entry><entry>Swiss German</entry></row>
519 <row><entry>el</entry><entry>Greek</entry></row>
520 <row><entry>es</entry><entry>Spanish</entry></row>
521 <row><entry>fr</entry><entry>French</entry></row>
522 <row><entry>hu</entry><entry>Hungarian</entry></row>
523 <row><entry>id</entry><entry>Indonesian</entry></row>
524 <row><entry>it</entry><entry>Italian</entry></row>
525 <row><entry>pl</entry><entry>Polish</entry></row>
526 <row><entry>pt</entry><entry>Portuguese</entry></row>
527 <row><entry>pt_BR</entry><entry>Brazillian Portuguese</entry></row>
528 <row><entry>ro</entry><entry>Romanian</entry></row>
529 <row><entry>ru</entry><entry>Russian</entry></row>
530 <row><entry>sk</entry><entry>Slovak</entry></row>
531 <row><entry>zh_CN</entry><entry>Chinese (Simplified)</entry></row>
532 </tbody>
533 </tgroup>
534 </informaltable>
536 <Para>Here are examples of how to set this environment variable to give
537 messages in French (language code fr):</Para>
539 <VariableList>
540 <VarListEntry><Term>Microsoft Windows</Term>
541 <ListItem><Para>
542 For MS Windows proceed as follows (this description was written from
543 MS Windows 2000, but it should be fairly similar in other versions): Open the
544 Start Menu, navigate to the Settings sub-menu, and
545 open Control Panel. Open System (picture of a computer) and click on the
546 Advanced tab. Choose `Environmental Variables', and create a new one: name
547 <systemitem>SURVEXLANG</systemitem>, value <systemitem>fr</systemitem>.
548 Click OK and the new value should be effective immediately.
549 </Para></ListItem>
550 </VarListEntry>
551 <VarListEntry><Term>UNIX - csh/tcsh</Term>
552 <ListItem><Para><userinput>setenv SURVEXLANG fr</userinput></Para></ListItem>
553 </VarListEntry>
554 <VarListEntry><Term>UNIX - sh/bash</Term>
555 <ListItem><Para><userinput>SURVEXLANG=fr ; export SURVEXLANG</userinput></Para></ListItem>
556 </VarListEntry>
557 </VariableList>
559 <Para>If <Application>Survex</Application> isn't available in your language, you could
560 help out by providing a translation. The initial translation is
561 likely to be about a day's work; after that translations for
562 new or changed messages are occasionally required. Contact us for details
563 if you're interested.</Para>
565 </Sect3>
567 </Sect2>
569 </Sect1>
571 <!-- FIXME
573 type in .svx file
575 run cavern (through aven)
577 run aven
579 how to print/export etc
583 <!-- FIXME perhaps move this after data files section? -->
584 <Sect1><Title>Survex Programs</Title>
585 <?dbhtml filename="cmdline.htm">
587 <Sect2><Title>Standard Options</Title>
589 <Para>All <Application>Survex</Application> programs respond to the following command line options:
590 </Para>
592 <VariableList>
594 <VarListEntry><Term>--help</Term><listitem><Para>
595 display option summary and exit
596 </Para></listitem></VarListEntry>
598 <VarListEntry><Term>--version</Term><listitem><Para>
599 output version information and exit
600 </Para></listitem></VarListEntry>
602 </VariableList>
604 </Sect2>
606 <Sect2><Title>Short and Long Options</Title>
608 <Para>
609 Options have two forms: short (a dash followed by a single letter e.g.
610 <command>cavern -q</command>) and long (two dashes followed by one or more words e.g.
611 <command>cavern --quiet</command>). The long form is generally easier to
612 remember, while the short form is quicker to type. Options are often
613 available in both forms.
614 </Para>
616 <Note><Para>Command line options are case sensitive, so "-B" and "-b"
617 are different (this didn't used to be the case before Survex 0.90). Case
618 sensitivity doubles the number of available short options (and is also the
619 norm on UNIX).
620 </Para></Note>
621 </Sect2>
623 <Sect2><Title>Filenames on the Command Line</Title>
625 <Para>Filenames with spaces can be processed (provided your operating system
626 supports them - UNIX does, and so do modern versions of Microsoft
627 Windows). You need to enclose the filename in quotes like so:
628 <userinput>cavern "Spider Cave"</userinput>
629 </Para>
631 <Para>A file specified on the command line of any of the <Application>Survex</Application> suite
632 of programs will be looked for as specified. If it is not found, then the
633 file is looked for with the appropriate extension appended. So
634 <userinput>cavern survey</userinput> will look first for
635 <filename>survey</filename>, then for <filename>survey.svx</filename>.
636 </Para>
638 </Sect2>
640 <Sect2><title>Command Reference</title>
642 <refentry id="cavern">
643 <?dbhtml filename="cavern.htm">
644 &man.cavern;
645 </refentry>
646 <refentry id="aven">
647 <?dbhtml filename="aven.htm">
648 &man.aven;
649 </refentry>
650 <refentry id="diffpos">
651 <?dbhtml filename="diffpos.htm">
652 &man.diffpos;
653 </refentry>
654 <refentry id="extend">
655 <?dbhtml filename="extend.htm">
656 &man.extend;
657 </refentry>
658 <refentry id="sorterr">
659 <?dbhtml filename="sorterr.htm">
660 &man.sorterr;
661 </refentry>
662 <refentry id="survexport">
663 <?dbhtml filename="survexport.htm">
664 &man.survexport;
665 </refentry>
667 </Sect2>
669 </Sect1>
671 <Sect1><Title><Application>Survex</Application> data files</Title>
672 <?dbhtml filename="datafile.htm">
674 <Para>Survey data is entered in the form of text files. You can use any
675 text editor you like for this, so long as it has the capability of
676 writing a plain ASCII text file. The data format is very flexible;
677 unlike some other cave surveying software, Survex does not require
678 survey legs to be rearranged to suit the computer, and the ordering
679 of instrument readings on each line is fully specifiable. So you can enter
680 your data much as it appears on the survey notes, which is important
681 in reducing the opportunities for transcription errors.
682 </Para>
684 <Para>
685 Also all the special characters are user-definable - for example,
686 the separators can be spaces and tabs, or commas (e.g. when exporting from a
687 spreadsheet), etc; the decimal point can be a slash (for clarity), a comma
688 (as used in continental Europe), or anything else you care to choose.
689 This flexibility
690 means that it should be possible to read in data from almost any sort of
691 survey data file without much work.
692 </Para>
694 <Para><Application>Survex</Application> places no restrictions on you in terms of the ordering
695 of survey legs. You can enter or process data in any order and <Application>Survex</Application> will
696 read it all in before determining how it is connected. You can also use the
697 hierarchical naming so that you do not need to worry about using the same
698 station name twice.
699 </Para>
701 <!-- FIXME don't encourage separate processing -->
702 <Para>The usual arrangement is to have one file which lists all the others
703 that are included (e.g., <filename>161.svx</filename>). Then
704 <command>cavern 161</command> will process all your data. To just process a
705 section use the filename for that section, e.g. <command>cavern dtime</command>
706 will process the dreamtime file/section of Kaninchenh&ouml;hle. To
707 help you out, if all legs in a survey are connected to one another
708 but the survey has no fixed points, cavern
709 will 'invent' a fixed point and print a warning message to this
710 effect.
711 </Para>
713 <Para>
714 It is up to you what data you put in which files. You
715 can have one file per trip, or per area of the cave, or just one
716 file for the whole cave if you like.
717 On a large survey project it makes sense to group related surveys in the
718 same file or directory.
719 </Para>
720 <!-- FIXME: wook sez:
722 Point out in documentation that file structure and survey structure don't
723 have to be the same. And in particular that folder/directory names can be
724 different.
726 Which is partly covered above, though the last bit isn't...
729 <!-- FIXME "Anatomy of a Survey" section -->
730 <Sect2><Title>Readings</Title>
732 <Para>Blank lines (i.e. lines consisting solely of BLANK characters)
733 are ignored. The last line in the file need not be terminated by
734 an end of line character. All fields on a line must be separated
735 by at least one BLANK character. An OMIT character
736 (default '-') indicates that a field is unused. If the field is
737 not optional, then an error is given.
738 </Para>
740 </Sect2>
742 <Sect2><Title>Survey Station Names</Title>
744 <Para><Application>Survex</Application> has a powerful system for naming stations. It
745 uses a hierarchy of survey names, similar to the nested folders
746 your computer stores files in.
747 So point 6 in the entrance survey of Kaninchenh&ouml;hle
748 (cave number 161) is referred to as: 161.entrance.6
749 </Para>
751 <Para>This seems a natural way to refer to station names. It also
752 means that it is very easy to include more levels, for example if you
753 want to plot all the caves in the area you just list them all in
754 another file, specifying a new prefix. So to group 3 nearby caves
755 on the Loser Plateau you would use a file like
756 this:
757 </Para>
759 <programlisting>
760 *begin Loser
761 *include 161
762 *include 2YrGest
763 *include 145
764 *end Loser</programlisting>
766 <Para>
767 The entrance series point mentioned above would now be referred
768 to as: Loser.161.entrance.6
769 </Para>
771 <!--
772 <Para>This may seem a tad complex but is really very natural once you
773 get the hang of it.
774 </Para>
776 <Para>You do not have to use this system at all, and can just give all
777 stations unique identifiers if you like:
778 </Para>
780 <Para>1, 2, 3, 4, 5, ... 1381, 1382
781 </Para>
783 <Para>or
784 </Para>
786 <Para>AA06, AA07, P34, ZZ6, etc.
787 </Para>
789 <!-- FIXME:
790 <Para>However you'll loose the ability to handle subsurveys if you do.
791 </Para>
794 <Para>Station and survey names may contain any alphanumeric characters and
795 additionally any characters in NAMES (default `_' and `-'). Alphabetic
796 characters may be forced to upper or lower case by using the *case
797 command. Station names may be any length - if you want to only treat
798 the first few characters as significant you can get cavern to truncate
799 the names using the *truncate command.
800 </Para>
802 <Sect3><Title>Anonymous Stations</Title>
804 <Para>
805 Survex supports the concept of anonymous survey stations. That is
806 survey stations without a name. Each time an anonymous station name is
807 used it represents a different point. Currently three types of anonymous
808 station are supported, referred to by one, two or three separator characters
809 - with the default separator of '.', that means '.', '..', and '...' are
810 anonymous stations. Their meanings are:</Para>
812 <VariableList>
813 <VarListEntry><Term>Single separator ('.' by default)</Term>
814 <ListItem><Para>
815 An anonymous non-wall point at the end of an implicit splay.
816 </Para></ListItem></VarListEntry>
818 <VarListEntry><Term>Double separator ('..' by default)</Term>
819 <ListItem><Para>
820 An anoymous wall point at the end of an implicit splay.
821 </Para></ListItem></VarListEntry>
823 <VarListEntry><Term>Triple separator ('...' by default)</Term>
824 <ListItem><Para>
825 an anoymous point with no implicit flags on the leg (intended for cases like
826 a disto leg along a continuing passage).
827 </Para></ListItem></VarListEntry>
828 </VariableList>
830 <Para>
831 You can map '-' to '..' (for compatibility with data from pocket topo) using
832 the command:
833 </Para>
835 <programlisting>
836 *alias station - ..
837 </programlisting>
839 <Para>Support for anonymous stations and for '*alias station - ..' was added in
840 Survex 1.2.7.</Para>
842 </Sect3>
844 </Sect2>
846 <Sect2><Title>Numeric fields</Title>
848 <Para>[&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;integer part&gt; [ &lt;DECIMAL&gt;
849 [ &lt;decimal fraction&gt; ] ]
850 </Para>
852 <Para>
853 or [&lt;MINUS&gt;|&lt;PLUS&gt;] &lt;DECIMAL&gt; &lt;dec fraction&gt;
854 </Para>
856 <Para><!-- FIXME: put informal description first -->
857 i.e. optional PLUS or MINUS sign in front, with
858 optional DECIMAL character (default '.'), which may be
859 embedded, leading or trailing. No spaces are allowed between the
860 various elements.
861 </Para>
863 <Para>
864 All of these are valid examples: +47, 23, -22, +4.5, 1.3, -0.7, +.15, .4,
865 -.05
866 </Para>
868 </Sect2>
870 <Sect2><Title>Accuracy</Title>
872 <Para>Accuracy assessments may be provided or defaulted for any survey
873 leg. These determine the distribution of loop closure errors over the
874 legs in the loop. See *SD for more information.
875 </Para>
877 </Sect2>
879 <!--
880 <Sect2><Title>Survey Coordinate Range</Title>
882 <Para>
883 If we store distances to nearest 10um (0.01mm) in 4 bytes, this
884 gives a range of ~20 km. This method is currently not used, but
885 has several advantages (data storage space [double uses 8 bytes
886 - with my C compiler], speed (unless your FP chip works in parallel
887 with your CPU [e.g. the new Acorn FPU for the ARM], and numerical
888 accuracy [compared to using floats at least]) and so may be adopted
889 in future). Nearest 0.1mm gives -200 km, which is enough for most
890 people, but may mean rounding errors become significant.
891 </Para>
893 <Para>
894 I will have to do some sums...
895 </Para>
897 </Sect2>
901 <Sect2><Title>Cavern Commands</Title>
903 <Para>Commands in <filename>.svx</filename> files are introduced by an asterisk
904 (by default - this can be changed using the <command>set</command> command).
905 </Para>
907 <Para>The commands are documented in a common format:
908 </Para>
910 <!-- FIXME: make this a RefGroup (or whatever that's called) of RefEntry-s? -->
911 <itemizedlist>
912 <listitem><para>Command Name</para></listitem>
913 <listitem><para>Syntax</para></listitem>
914 <listitem><para>Example</para></listitem>
915 <listitem><para>Validity</para></listitem>
916 <!-- FIXME
917 anywhere, in a block, at start of a block, after a begin (for *end)
919 <listitem><para>Description</para></listitem>
920 <listitem><para>Caveats</para></listitem>
921 <listitem><para>See Also</para></listitem>
922 <!-- FIXME
923 "Usefulness" - or status maybe?
924 deprecated, esoteric (*set), useful, vital
926 </itemizedlist>
928 <Sect3><Title>ALIAS</Title>
930 <VariableList>
932 <VarListEntry><Term>Syntax</Term>
934 <listitem><Para>*alias station &lt;alias&gt; [&lt;target&gt;]</Para></listitem>
936 </VarListEntry>
938 <VarListEntry><Term>Example</Term>
940 <listitem>
941 <Para>
942 <programlisting>
943 *begin parsons_nose
944 *alias station - ..
945 1 2 12.21 073 -12
946 2 - 4.33 011 +02
947 2 - 1.64 180 +03
948 2 3 6.77 098 -04
949 *end parsons_nose</programlisting>
950 </Para>
951 </listitem>
953 </VarListEntry>
955 <VarListEntry><Term>Description</Term>
957 <listitem><Para>*alias allows you to map a station name which appears in
958 the survey data to a different name internally. At present, you can only
959 create an alias of '-' to '..', which is intended to support the pocket topo
960 style notation of '-' being a splay to an anonymous point on the cave wall.
961 And you can unalias '-' with '*alias station -'.
962 </Para>
964 <Para>
965 Aliases are scoped by *begin/*end blocks - when a *end is reached, the aliases
966 in force at the corresponding begin are restored.
967 </Para>
969 <Para>
970 *alias was added in Survex 1.2.7.
971 </Para></listitem>
973 </VarListEntry>
975 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
977 <VarListEntry><Term>See Also</Term>
979 <listitem><Para>*begin, *end</Para></listitem>
981 </VarListEntry>
983 </VariableList>
985 </Sect3>
987 <Sect3><Title>BEGIN</Title>
989 <VariableList>
991 <VarListEntry><Term>Syntax</Term>
993 <listitem><Para>*begin [&lt;survey&gt;]</Para></listitem>
995 </VarListEntry>
997 <VarListEntry><Term>Example</Term>
999 <listitem>
1000 <Para>
1001 <programlisting>
1002 *begin littlebit
1003 1 2 10.23 106 -02
1004 2 3 1.56 092 +10
1005 *end littlebit</programlisting>
1007 <programlisting>
1008 ; length of leg across shaft estimated
1009 *begin
1010 *sd tape 2 metres
1011 9 10 6. 031 -07
1012 *end</programlisting>
1013 </Para>
1014 </listitem>
1016 </VarListEntry>
1018 <VarListEntry><Term>Description</Term>
1020 <listitem><Para>*begin stores the current values of the current settings
1021 such as instrument calibration, data format, and so on.
1022 These stored values are restored after the corresponding *end.
1023 If a survey name is given, this is used inside the *begin/*end block,
1024 and the corresponding *end should have the same survey name.
1025 *begin/*end blocks may be nested to indefinite depth.
1026 </Para></listitem>
1028 </VarListEntry>
1030 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1032 <VarListEntry><Term>See Also</Term>
1034 <listitem><Para>*end, *prefix</Para></listitem>
1036 </VarListEntry>
1038 </VariableList>
1040 </Sect3>
1042 <Sect3><Title>CALIBRATE</Title>
1044 <VariableList>
1046 <VarListEntry><Term>Syntax</Term>
1048 <listitem>
1049 <Para>*calibrate &lt;quantity list&gt; &lt;zero error&gt; [&lt;scale&gt;]
1050 </Para>
1051 <Para>*calibrate &lt;quantity list&gt; &lt;zero error&gt; &lt;units&gt; [&lt;scale&gt;]
1052 </Para>
1053 <Para>*calibrate default
1054 </Para>
1055 </listitem>
1057 </VarListEntry>
1059 <VarListEntry><Term>Example</Term>
1061 <listitem>
1062 <Para>
1063 <programlisting>
1064 *calibrate tape +0.3
1065 </programlisting>
1066 </Para>
1067 </listitem>
1069 </VarListEntry>
1071 <VarListEntry><Term>Description</Term>
1073 <listitem>
1075 <Para>
1076 *calibrate is used to specify instrument calibrations, via a zero error
1077 and a scale factor. By default, the zero error is 0.0 and the scale
1078 factor 1.0 for all quantities.
1079 </Para>
1081 <Para>
1082 &lt;quantity&gt; is one of TAPE|COMPASS|CLINO|COUNTER|DEPTH|DECLINATION|X|Y|Z
1083 </Para>
1085 <Para>
1086 Several quantities can be given in &lt;quantity list&gt; - the specified
1087 calibration will be applied to each of them.
1088 </Para>
1090 <Para>
1091 You need to be careful about the sign of the ZeroError. Survex follows
1092 the convention used with scientific instruments - the ZeroError is what
1093 the instrument reads when measuring a reading which should be zero. So
1094 for example, if your tape measure has the end missing, and you are using the
1095 30cm mark to take all measurements from, then a zero distance would be measured
1096 as 30cm and you would correct this with:
1097 </Para>
1099 <programlisting>*CALIBRATE tape +0.3</programlisting>
1101 <Para>If you tape was too long, starting at -20cm (it does happen!)
1102 then you can correct it with:
1103 </Para>
1105 <programlisting>*CALIBRATE tape -0.2</programlisting>
1107 <Para>Note: ZeroError is irrelevant for Topofil counters and depth
1108 gauges since pairs of readings are subtracted.
1109 </Para>
1111 <Para>
1112 In the first form in the synopsis above, the zero error is measured by the
1113 instrument itself (e.g. reading off the number where a truncated tape now ends)
1114 and any scale factor specified applies to it, like so:
1115 </Para>
1117 <Para>
1118 Value = ( Reading - ZeroError ) * Scale (Scale defaults to 1.0)
1119 </Para>
1121 <Para>
1122 In the second form above (supported since Survex 1.2.21), the zero error has
1123 been measured externally (e.g. measuring how much too long your tape is with
1124 a ruler) - the units of the zero error are explicitly specified and any scale
1125 factor isn't applied to it:
1126 </Para>
1128 <Para>
1129 Value = ( Reading * Scale ) - ZeroError (Scale defaults to 1.0)
1130 </Para>
1132 <Para>
1133 If the scale factor is 1.0, then the two forms are equivalent, though they
1134 still allow you to differentiate between how the zero error has been determined.
1135 </Para>
1137 <Para>
1138 With older Survex versions, you would specify the magnetic declination
1139 (difference between True North and Magnetic North) by using *calibrate
1140 declination to set an explicit value (with no scale factor allowed). Since
1141 Survex 1.2.22, it's recommended to instead use the new *declination command
1142 instead - see the documentation of that command for more details.
1143 </Para>
1145 </listitem>
1147 </VarListEntry>
1149 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1151 <VarListEntry><Term>See Also</Term>
1153 <listitem><Para>*declination, *units</Para></listitem>
1155 </VarListEntry>
1157 </VariableList>
1159 </Sect3>
1161 <Sect3><Title>CASE</Title>
1163 <VariableList>
1165 <VarListEntry><Term>Syntax</Term>
1167 <listitem><para>*case preserve|toupper|tolower</para></listitem>
1169 </VarListEntry>
1171 <VarListEntry><Term>Example</Term>
1173 <listitem>
1174 <Para>
1175 <programlisting>
1176 *begin bobsbit
1177 ; Bob insists on using case sensitive station names
1178 *case preserve
1179 1 2 10.23 106 -02
1180 2 2a 1.56 092 +10
1181 2 2A 3.12 034 +02
1182 2 3 8.64 239 -01
1183 *end bobsbit</programlisting>
1184 </Para>
1185 </listitem>
1187 </VarListEntry>
1189 <VarListEntry><Term>Description</Term>
1191 <listitem><Para>*case determines how the case of letters in survey names is
1192 handled. By default all names are forced to lower case (which gives a case
1193 insensitive match, but you can tell cavern to force to upper case, or leave
1194 the case as is (in which case '2a' and '2A' will be regarded as different).
1195 </Para></listitem>
1197 </VarListEntry>
1199 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1201 <VarListEntry><Term>See Also</Term>
1203 <listitem><Para>*truncate</Para></listitem>
1205 </VarListEntry>
1207 </VariableList>
1209 <!-- FIXME - work this text in here or elsewhere
1211 What I mean (though failed to express very well) is that a dataset without
1212 this information isn't the same dataset (in general anyway). For example:
1214 A1 a2 10.32 140 -05
1215 a2 a3 4.91 041 -01
1216 a1 a3 7.01 206 02
1218 is either a traverse of 3 legs or a (probably badly misclosed) loop. If
1219 these names are on the original survey notes, the surveyors ought to say
1220 whether "A1" is the same as "a1" (although the usual case for using this
1221 feature is probably for importing data from elsewhere). Similarly for
1222 truncation. Whether a clino of +/-90 degrees (or +/-100 grad, etc) is
1223 interpreted as a plumb is something that should have been noted in the cave
1224 (unless it's implicit because it's standard practice for a survey project).
1226 It's a similar issue to calibration data in many ways. You can argue it's
1227 not part of "the survey", but without it the survey won't be the same shape,
1228 and it's not useful to process the same survey with different settings for
1229 compass calibration or name case sensitivity.
1231 >Clearly that is unhelpfully strict, but it is
1232 >important to be semantically clear about what is 'data' and what is 'commands
1233 >or meta-data' which describe what to do with/how to interpret that data.
1235 Think of the lines starting with a "*" as "command or meta-data".
1237 >The most-correct solution to this is (I believe) Martin Heller's idea about
1238 >including 'rules' in the datastream, but that's too big a subject for right
1239 >now.
1241 >The reason '-C' was made into a command-line option, was that it made very
1242 >little sense to change it part way though a dataset. What exactly happens if
1243 >you suddenly tell cavern to become case-sensitive halfway through a run?
1245 -C has always had 3 settings - "leave case alone", "force to lower", and
1246 "force to upper". It doesn't really mean "case sensitivity" but rather
1247 something like "case processing". So you can usefully change it during a
1248 run. So if my dataset treats "NoTableChamber" (so named because it was
1249 lacking in furniture) as different from "NotableChamber" (which was notable
1250 for other reasons) I can process it with a dataset from someone else which
1251 needs to be treated as case insensitive like so:
1253 *begin my_cave
1254 *include my_dataset
1255 *end my_cave
1257 *equate my_cave.NoTableChamber.14 your_cave.linkpassage.13
1259 *begin your_cave
1260 *case tolower
1261 *include your_dataset
1262 *end your_cave
1264 You may be thinking of -U<n>, which used to mean "only compare the first n
1265 characters of station names", but that doesn't allow arbitrary datasets to
1266 be processed together.
1268 So we changed it to mean "truncate station names to n characters", and
1269 allowed it to be changed at any point, rather than being set once for the
1270 whole run.
1274 </Sect3>
1276 <Sect3><Title>COPYRIGHT</Title>
1278 <VariableList>
1280 <VarListEntry><Term>Syntax</Term>
1282 <listitem><Para>*copyright &lt;date&gt; &lt;text&gt;</Para></listitem>
1284 </VarListEntry>
1286 <VarListEntry><Term>Example</Term>
1288 <listitem>
1289 <Para>
1290 <programlisting>
1291 *begin littlebit
1292 *copyright 1983 CUCC
1293 1 2 10.23 106 -02
1294 2 3 1.56 092 +10
1295 *end littlebit</programlisting>
1296 </Para>
1297 </listitem>
1299 </VarListEntry>
1301 <VarListEntry><Term>Validity</Term>
1303 <listitem><Para>valid at the start of a *begin/*end block.
1304 </Para></listitem>
1306 </VarListEntry>
1308 <VarListEntry><Term>Description</Term>
1310 <listitem><Para>*copyright allows the copyright information to be
1311 stored in a way that can be automatically collated.
1312 </Para></listitem>
1314 </VarListEntry>
1316 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1318 <VarListEntry><Term>See Also</Term>
1320 <listitem><Para>*begin</Para></listitem>
1322 </VarListEntry>
1324 </VariableList>
1326 </Sect3>
1328 <Sect3><Title>CS</Title>
1330 <VariableList>
1332 <VarListEntry><Term>Syntax</Term>
1334 <listitem><Para>*cs [out] &lt;coordinate system&gt;</Para></listitem>
1336 </VarListEntry>
1338 <VarListEntry><Term>Example</Term>
1340 <listitem>
1341 <Para>
1342 <programlisting>
1343 *cs UTM60S
1344 *fix beehive 313800 5427953 20</programlisting>
1345 </Para>
1347 <Para>
1348 <programlisting>
1349 ; Output in the coordinate system used in the Totes Gebirge in Austria
1350 *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>
1351 </Para>
1352 </listitem>
1354 </VarListEntry>
1356 <VarListEntry><Term>Description</Term>
1358 <listitem><Para>*cs allows the coordinate systems used for fixed points and for
1359 processed survey data to be specified.
1360 </Para>
1362 <Para>
1363 *cs was added in Survex 1.2.14, but handling of fixed points specified with
1364 latitude and longitude didn't work until 1.2.21. And *fix with standard
1365 deviations specified also didn't work until 1.2.21.
1366 </Para>
1368 <Para>
1369 The currently supported coordinate systems are:
1370 </Para>
1372 <Para>CUSTOM followed by a PROJ4 string (like in the example above).</Para>
1374 <Para>EPSG: followed by a positive integer code. EPSG codes cover most
1375 coordinate systems in use, and PROJ supports many of these. The website
1376 <ulink url="https://epsg.io/">https://epsg.io/</ulink> is a useful resource for
1377 finding the EPSG code you want. Supported since Survex 1.2.15.</Para>
1379 <Para>ESRI: followed by a positive integer code. ESRI codes are used by
1380 ArcGIS to specify coordinate systems (in a similar way to EPSG codes), and PROJ
1381 supports many of them. Supported since Survex 1.2.15.</Para>
1383 <Para>EUR79Z30 for UTM zone 30, EUR79 datum. Supported since Survex 1.2.15.
1384 </Para>
1386 <Para>IJTSK for the modified version of the Czechoslovak S-JTSK system where
1387 the axes point East and North. Supported since Survex 1.2.15.</Para>
1389 <Para>IJTSK03 for a variant of IJTSK. Supported since Survex 1.2.15.</Para>
1391 <Para>JTSK for the Czechoslovak S-JTSK system. The axes on this point West
1392 and South, so it's not supported as an output coordinate system.
1393 Supported since Survex 1.2.16.</Para>
1395 <Para>JTSK03 for a variant of JTSK. Supported since Survex 1.2.16.</Para>
1397 <Para>LONG-LAT for longitude/latitude. The WGS84 datum is assumed.
1398 NB <command>*fix</command> expects the coordinates in the order x,y,z which
1399 means longitude (i.e. E/W), then latitude (i.e. N/S), then altitude.
1400 Supported since Survex 1.2.15.</Para>
1402 <Para>OSGB: followed by a two letter code for the UK Ordnance Survey National
1403 Grid. The first letter should be 'H', 'N', 'O', 'S' or 'T'; the second any
1404 letter except 'I'. Supported since Survex 1.2.15.</Para>
1406 <Para>S-MERC for the "Web Mercator" spherical mercator projection, used by
1407 online map sites like OpenStreetMap, Google maps, Bing maps, etc. Supported
1408 since Survex 1.2.15.
1409 </Para>
1411 <Para>UTM followed by a zone number (1-60), optionally followed by "N" or "S"
1412 (default is North). The WGS84 datum is assumed.</Para>
1414 <Para>
1415 By default, Survex works in an unspecified coordinate system (and this was the
1416 only option before *cs was added). However, it's useful for coordinate system
1417 which the processed survey data is in to be specified if you want to use the
1418 processed data in ways which required knowing the coordinate system (such as
1419 exporting a list of entrances for use in a GPS). You can now do this by using
1420 "*cs out".
1421 </Para>
1423 <Para>
1424 It is also useful to be able to take coordinates for fixed points in whatever
1425 coordinate system you receive them in and put them directly into Survex, rather
1426 than having to convert with an external tool. For example, you may have your
1427 GPS set to show coordinates in UTM with the WGS84 datum, even though you want
1428 the processed data to be in some local coordinate system. And someone else
1429 may provide GPS coordinates in yet another coordinate system. You just need
1430 to set the appropriate coordinate system with "*cs" before each group of "*fix"
1431 commands in a particular coordinate system.
1432 </Para>
1434 <Para>
1435 If you're going to make use of "*cs", then the coordinate system must be
1436 specified for everything, so a coordinate system must be in effect for all
1437 "*fix" commands, and you must set the output coordinate system before any
1438 points are fixed.
1439 </Para>
1441 <Para>
1442 Also, if "*cs" is in use, then you can't omit the coordinates in a "*fix"
1443 command, and a fixed point won't be invented if none exists.
1444 </Para>
1446 <Para>
1447 If you use "*cs out" more than once, the second and subsequent commands are
1448 silently ignored - this makes it possible to combine two datasets with
1449 different "*cs out" settings without having to modify either of them.
1450 </Para>
1452 <Para>
1453 Something to be aware of with "*cs" is that altitudes are currently assumed to
1454 be "height above the ellipsoid", whereas GPS units typically give you "height
1455 above sea level", or more accurately "height above a particular geoid". This
1456 is something we're looking at how best to address, but you shouldn't need to
1457 worry about it if your fixed points are in the same coordinate system as your
1458 output, or if they all use the same ellipsoid. For a more detailed discussion
1459 of this, please see: http://expo.survex.com/handbook/survey/coord.htm
1460 </Para>
1461 </listitem>
1463 </VarListEntry>
1465 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1467 <VarListEntry><Term>See Also</Term>
1469 <listitem><Para>*fix</Para></listitem>
1471 </VarListEntry>
1473 </VariableList>
1475 </Sect3>
1476 <Sect3><Title>DATA</Title>
1478 <VariableList>
1480 <VarListEntry><Term>Syntax</Term>
1482 <listitem>
1483 <Para>*data &lt;style&gt; &lt;ordering&gt;</Para>
1484 <Para>*data</Para>
1485 </listitem>
1487 <!-- BACKCOMPASS BACKCLINO -->
1488 </VarListEntry>
1490 <VarListEntry><Term>Example</Term>
1492 <listitem>
1493 <Para>
1494 <programlisting>
1495 *data normal from to compass tape clino</programlisting>
1496 </Para>
1498 <Para>
1499 <programlisting>
1500 *data normal station ignoreall newline compass tape clino</programlisting>
1501 </Para>
1502 </listitem>
1504 </VarListEntry>
1506 <VarListEntry><Term>Description</Term>
1508 <listitem><Para>
1509 &lt;style&gt; = DEFAULT|NORMAL|DIVING|CARTESIAN|TOPOFIL|CYLPOLAR|NOSURVEY|PASSAGE
1510 </Para>
1512 <Para>
1513 &lt;ordering&gt; = ordered list of instruments - which are valid depends on the
1514 style.
1515 </Para>
1517 <Para>
1518 In Survex 1.0.2 and later, TOPOFIL is simply a synonym for NORMAL, left in to
1519 allow older data to be processed without modification. Use the name NORMAL
1520 by preference.
1521 </Para>
1523 <Para>
1524 There are two variants of each style - interleaved and non-interleaved.
1525 Non-interleaved is "one line per leg", interleaved has a line for the data
1526 shared between two legs (e.g. STATION=FROM/TO, DEPTH=FROMDEPTH/TODEPTH,
1527 COUNT=FROMCOUNT/TOCOUNT). Note that not all interleavable readings have to
1528 be interleaved - for example:
1530 <programlisting>
1531 *data diving station newline fromdepth compass tape todepth</programlisting>
1533 In addition, interleaved data can have a DIRECTION reading, which can be "F"
1534 for a foresight or "B" for a backsight.
1535 </Para>
1537 <Para>
1538 In NORMAL, DIVING, and CYLPOLAR data styles, TAPE may be replaced by
1539 FROMCOUNT/TOCOUNT (or COUNT in interleaved data) to allow processing of surveys
1540 performed with a Topofil instead of a tape.
1541 </Para>
1543 <Para>
1544 In Survex 1.2.31 and later, you can use <command>*data</command> without any
1545 arguments to keep the currently set data style, but resetting any state. This
1546 is useful when you're entering passage tubes with branches - see the description
1547 of the "PASSAGE" style below.
1548 </Para>
1550 <VariableList>
1552 <VarListEntry><Term>DEFAULT</Term>
1553 <listitem><Para>Select the default data style and ordering (NORMAL style, ordering: from to tape compass clino).</Para></listitem>
1554 </VarListEntry>
1556 <VarListEntry><Term>NORMAL</Term>
1557 <listitem><Para>The usual tape/compass/clino centreline survey.
1558 For non-interleaved data the allowed readings are:
1559 FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO;
1560 for interleaved data the allowed readings are:
1561 STATION DIRECTION TAPE COMPASS CLINO BACKCOMPASS BACKCLINO.
1562 The CLINO/BACKCLINO reading is not required - if it's not given, the vertical
1563 standard deviation is taken to be proportional to the tape measurement.
1564 Alternatively, individual clino readings can be given as OMIT (default "-")
1565 which allows for data where only some clino readings are missing.
1566 E.g.:
1568 <programlisting>
1569 *data normal from to compass clino tape
1570 1 2 172 -03 12.61</programlisting>
1572 <programlisting>
1573 *data normal station newline direction tape compass clino
1575 F 12.61 172 -03
1576 2</programlisting>
1578 <programlisting>
1579 *data normal from to compass clino fromcount tocount
1580 1 2 172 -03 11532 11873</programlisting>
1582 <programlisting>
1583 *data normal station count newline direction compass clino
1584 1 11532
1585 F 172 -03
1586 2 11873</programlisting>
1588 </Para></listitem>
1589 </VarListEntry>
1591 <VarListEntry><Term>DIVING</Term>
1592 <listitem><Para>
1593 An underwater survey where the vertical information is from a diver's depth
1594 gauge. This style can also be also used for an above-water survey where the
1595 altitude is measured with an altimeter. DEPTH is defined as the altitude (Z)
1596 so increases upwards by default. So for a diver's depth gauge, you'll need to
1597 use *CALIBRATE with a negative scale factor (e.g. *calibrate depth 0 -1).
1598 </Para>
1600 <Para>For non-interleaved data the allowed readings are:
1601 FROM TO TAPE COMPASS CLINO BACKCOMPASS BACKCLINO FROMDEPTH TODEPTH DEPTHCHANGE (the vertical
1602 can be given as readings at each station, (FROMDEPTH/TODEPTH) or as a change
1603 along the leg (DEPTHCHANGE)).</Para>
1605 <Para>Survex 1.2.20 and later allow an optional CLINO and/or BACKCLINO reading
1606 in DIVING style. At present these extra readings are checked for syntactic
1607 validity, but are otherwise ignored. The intention is that a future version
1608 will check them against the other readings to flag up likely blunders, and
1609 average with the slope data from the depth gauge and tape reading.</Para>
1611 <Para>For interleaved data the allowed readings are:
1612 STATION DIRECTION TAPE COMPASS BACKCOMPASS DEPTH DEPTHCHANGE.
1613 (the vertical change can be given as a reading at the station (DEPTH) or as a change along the leg (DEPTHCHANGE)).
1615 <programlisting>
1616 *data diving from to tape compass fromdepth todepth
1617 1 2 14.7 250 -20.7 -22.4</programlisting>
1619 <programlisting>
1620 *data diving station depth newline tape compass
1621 1 -20.7
1622 14.7 250
1623 2 -22.4</programlisting>
1625 <programlisting>
1626 *data diving from to tape compass depthchange
1627 1 2 14.7 250 -1.7</programlisting>
1628 </Para>
1629 </listitem>
1630 </VarListEntry>
1632 <VarListEntry><Term>CARTESIAN</Term>
1633 <listitem><Para>
1634 Cartesian data style allows you to specify the (x,y,z) changes between
1635 stations. It's useful for digitising surveys where the original survey
1636 data has been lost and all that's available is a drawn up version.
1638 <programlisting>
1639 *data cartesian from to northing easting altitude
1640 1 2 16.1 20.4 8.7</programlisting>
1642 <programlisting>
1643 *data cartesian station newline northing easting altitude
1645 16.1 20.4 8.7
1646 2</programlisting>
1648 <!--FIXME: dx dy dz-->
1649 </Para>
1651 <Note><Para>
1652 Cartesian data are relative to <emphasis>true</emphasis> North not
1653 <emphasis>magnetic</emphasis> North (i.e. they are unaffected by
1654 <command>*calibrate declination</command>).
1655 </Para></Note>
1656 </listitem>
1657 </VarListEntry>
1659 <VarListEntry><Term>CYLPOLAR</Term>
1660 <listitem><Para>
1661 A CYLPOLAR style survey is very similar to a diving survey, except that the tape
1662 is always measured horizontally rather than along the slope of the leg.
1664 <programlisting>
1665 *data cypolar from to tape compass fromdepth todepth
1666 1 2 9.45 311 -13.3 -19.0</programlisting>
1668 <programlisting>
1669 *data cylpolar station depth newline tape compass
1670 1 -13.3
1671 9.45 311
1672 2 -19.0</programlisting>
1674 <programlisting>
1675 *data cylpolar from to tape compass depthchange
1676 1 2 9.45 311 -5.7</programlisting>
1677 </Para></listitem>
1678 </VarListEntry>
1680 <VarListEntry><Term>NOSURVEY</Term>
1681 <listitem><Para>
1682 A NOSURVEY survey doesn't have any measurements - it merely indicates that
1683 there is line of sight between the pairs of stations.
1685 <programlisting>
1686 *data nosurvey from to
1689 9 11</programlisting>
1691 <programlisting>
1692 *data nosurvey station
1697 *data nosurvey station
1699 11</programlisting>
1700 </Para></listitem>
1701 </VarListEntry>
1703 <VarListEntry><Term>PASSAGE</Term>
1704 <listitem><Para>
1705 This survey style defines a 3D "tube" modelling a passage in the cave.
1706 The tube uses the survey stations listed in the order listed. It's
1707 permitted to use survey stations which aren't directly linked by
1708 the centre-line survey. This can be useful - sometimes the centreline
1709 will step sideways or up/down to allow a better sight for the next
1710 leg and you can ignore the extra station. You can also define tubes
1711 along unsurveyed passages, akin to "nosurvey" legs in the centreline
1712 data.</Para>
1714 <Para>This means that you need to split off side passages into seperate
1715 tubes, and hence separate sections of passage data, starting with
1716 a new *data command.</Para>
1718 <Para>
1719 Simple example of how to use this data style (note the use of ignoreall
1720 to allow a free-form text description to be given):
1722 <programlisting>
1723 *data passage station left right up down ignoreall
1724 1 0.1 2.3 8.0 1.4 Sticking out point on left wall
1725 2 0.0 1.9 9.0 0.5 Point on left wall
1726 3 1.0 0.7 9.0 0.8 Highest point of boulder
1727 </programlisting>
1729 Each <command>*data passage</command> data block describes a single continuous
1730 tube - to break a tube or to enter a side passage you need to have a second
1731 block. With Survex 1.2.30 and older, you had to repeat the entire
1732 <command>*data passage</command> line to start a new tube, but in Survex 1.2.31
1733 and later, you can just use <command>*data</command> without any arguments.
1734 </Para>
1736 <Para>
1737 For example here the main passage is 1-2-3 and a side passage is 2-4:
1739 <programlisting>
1740 *data passage station left right up down ignoreall
1741 1 0.1 2.3 8.0 1.4 Sticking out point on left wall
1742 2 0.0 1.9 9.0 0.5 Point on left wall opposite side passage
1743 3 1.0 0.7 9.0 0.8 Highest point of boulder
1744 ; If you're happy to require Survex 1.2.31 or later, you can just use
1745 ; "*data" here instead.
1746 *data passage station left right up down ignoreall
1747 2 0.3 0.2 9.0 0.5
1748 4 0.0 0.5 6.5 1.5 Fossil on left wall
1749 </programlisting>
1750 </Para>
1751 </listitem>
1752 </VarListEntry>
1753 </VariableList>
1755 <Para>
1756 IGNORE skips a field (it may be used any number of times),
1757 and IGNOREALL may be used last to ignore the rest of the data line.
1758 </Para>
1760 <Para>
1761 LENGTH is a synonym for TAPE; BEARING for COMPASS; GRADIENT for CLINO; COUNT for COUNTER.<!--FIXME : others?-->
1762 </Para>
1764 <Para>
1765 The units of each quantity may be set with the UNITS command.
1766 </Para>
1768 <!-- FIXME: plumbed diving legs -->
1770 <!--FIXME:
1771 <Para>
1772 Uses for CYLPOLAR:
1773 Perhaps a Grade 3 survey, or when surveying with a level and stick (?)
1774 [note - UBSS use it for the old County Clare data]
1775 </Para>
1778 </listitem>
1780 </VarListEntry>
1782 </VariableList>
1784 </Sect3>
1786 <Sect3><Title>DATE</Title>
1787 <VariableList>
1789 <VarListEntry><Term>Syntax</Term>
1791 <listitem><Para>*date &lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]][-&lt;year&gt;[.&lt;month&gt;[.&lt;day&gt;]]]</Para></listitem>
1793 </VarListEntry>
1795 <VarListEntry><Term>Example</Term>
1797 <listitem>
1798 <Para>
1799 <programlisting>
1800 *date 2001</programlisting>
1802 <programlisting>
1803 *date 2000.10</programlisting>
1805 <programlisting>
1806 *date 1987.07.27</programlisting>
1808 <programlisting>
1809 *date 1985.08.12-1985.08.13</programlisting>
1810 </Para>
1811 </listitem>
1813 </VarListEntry>
1815 <VarListEntry><Term>Validity</Term>
1817 <listitem><Para>valid at the start of a *begin/*end block.
1818 </Para></listitem>
1820 </VarListEntry>
1822 <VarListEntry><Term>Description</Term>
1824 <listitem><Para>
1825 *date specifies the date that the survey was done. A range of dates
1826 can be specified (useful for overnight or multi-day surveying trips).
1827 </Para></listitem>
1829 </VarListEntry>
1831 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
1833 <VarListEntry><Term>See Also</Term>
1835 <listitem><Para>*begin, *instrument, *team</Para></listitem>
1837 </VarListEntry>
1839 </VariableList>
1841 </Sect3>
1843 <Sect3><Title>DECLINATION</Title>
1845 <VariableList>
1847 <VarListEntry><Term>Syntax</Term>
1849 <listitem>
1850 <Para>*declination &lt;auto&gt; &lt;x&gt; &lt;y&gt; &lt;z&gt;</Para>
1851 <Para>*declination &lt;declination&gt; &lt;units&gt;</Para>
1852 </listitem>
1854 </VarListEntry>
1856 <VarListEntry><Term>Description</Term>
1858 <listitem>
1860 <Para>
1861 The *declination command is the modern way to specify magnetic declinations in
1862 Survex. Prior to 1.2.22, *calibrate declination was used instead. If you
1863 use a mixture of *calibrate declination and *declination, they interact in
1864 the natural way - whichever was set most recently is used for each compass
1865 reading (taking into account survey scope). We don't generally recommend
1866 mixing the two, but it's useful to understand how they interact if you want to
1867 combine datasets using the old and new commands, and perhaps if you have a
1868 large existing dataset and want to migrate it without having to change
1869 everything at once.
1870 </Para>
1872 <Para>
1873 Magnetic declination is the difference between Magnetic North and True North.
1874 It varies both with location and over time. Compass bearings are measured
1875 relative to Magnetic North - adding the magnetic declination gives bearings
1876 relative to True North.
1877 </Para>
1879 <Para>
1880 If you have specified the output coordinate system (using *cs out) then you can
1881 use *declination auto (and we recommend that you do). This is supported since
1882 Survex 1.2.21 and automatically calculates magnetic declinations based on the
1883 IGRF (International Geomagnetic Reference Field) model for the specified date
1884 of each survey and at the specified representative location (given in the
1885 current input coordinate system, as set with *cs). Survex 1.2.27 and
1886 later also automatically correct for grid convergence (the difference between
1887 Grid North and True North) when *declination auto is in use, based on the same
1888 specified representative location.
1889 </Para>
1891 <Para>
1892 You might wonder why Survex needs a representative location instead of
1893 calculating the magnetic declination and grid convergence for the actual
1894 position of each survey station. The reason is that we need to adjust the
1895 compass bearings before we can solve the network to find survey station
1896 locations. Both magnetic declination and grid convergence don't generally vary
1897 significantly over the area of a typical cave system - if you are mapping a
1898 very large cave system, or caves over a wide area, or are working close to a
1899 magnetic pole or where the output coordinate system is rather distorted, then
1900 you can specify *declination auto several times with different locations - the
1901 one currently in effect is used for each survey leg.
1902 </Para>
1904 <Para>
1905 Generally it's best to specify a suitable output coordinate system, and use
1906 *declination auto so Survex corrects for magnetic declination and grid
1907 convergence for you. Then Aven knows how to translate coordinates to allow
1908 export to formats such as GPX and KML, and to overlay terrain data.
1909 </Para>
1911 <Para>
1912 If you don't specify an output coordinate system, but fix one or more points
1913 then Survex works implicitly in the coordinate system your fixed points were
1914 specified in. This mode of operation is provided for compatibility with
1915 datasets from before support for explicit coordinate systems was added to
1916 Survex - it's much better to specify the output coordinate system as above.
1917 But if you have a survey of a cave which isn't connected to any known fixed
1918 points then you'll need to handle it this way, either fixing an entrance
1919 to some arbitrary coordinates (probably (0,0,0)) or letting Survex pick a
1920 station as the origin. If the survey was all done in a short enough period
1921 of time that the magnetic declination won't have changed significantly, you
1922 can just ignore it and Grid North in the implicit coordinate system will be
1923 Magnetic North at the time of the survey. If you want to correct for magnetic
1924 declination, you can't use *declination auto because the IGRF model needs the
1925 real world coordinates, but you can specify literal declination values for each
1926 survey using *declination &lt;declination&gt; &lt;units&gt;. Then Grid North
1927 in the implicit coordinate system is True North.
1928 </Para>
1930 <Para>
1931 Note that the value specified uses the conventional sign for magnetic
1932 declination, unlike the old *calibrate declination which needed a value with
1933 the opposite sign (because *calibrate specifies a zero error), so take care
1934 when updating old data, or if you're used to the semantics of *calibrate
1935 declination.
1936 </Para>
1938 </listitem>
1940 </VarListEntry>
1942 <VarListEntry><Term>See Also</Term>
1944 <listitem><Para>*calibrate</Para></listitem>
1946 </VarListEntry>
1948 </VariableList>
1950 </Sect3>
1952 <Sect3><Title>DEFAULT</Title>
1954 <VariableList>
1956 <VarListEntry><Term>Syntax</Term>
1958 <listitem><Para>*default &lt;settings list&gt;|all</Para></listitem>
1960 </VarListEntry>
1962 <VarListEntry><Term>Description</Term>
1964 <listitem><Para>
1965 The valid settings are CALIBRATE, DATA, and UNITS.
1966 </Para>
1968 <Para>
1969 *default restores defaults for given settings. This command is deprecated -
1970 you should instead use: *calibrate default, *data default, *units default.
1971 </Para></listitem>
1973 </VarListEntry>
1975 <VarListEntry><Term>See Also</Term>
1977 <listitem><Para>*calibrate, *data, *units</Para></listitem>
1979 </VarListEntry>
1981 </VariableList>
1983 </Sect3>
1985 <Sect3><Title>END</Title>
1987 <VariableList>
1989 <VarListEntry><Term>Syntax</Term>
1991 <listitem><Para>*end [&lt;survey&gt;]</Para></listitem>
1993 </VarListEntry>
1995 <VarListEntry><Term>Validity</Term>
1997 <listitem><Para>valid for closing a block started by *begin in the same file.
1998 </Para></listitem>
2000 </VarListEntry>
2002 <VarListEntry><Term>Description</Term>
2004 <listitem><Para>
2005 Closes a block started by *begin.
2006 </Para></listitem>
2008 </VarListEntry>
2010 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2012 <VarListEntry><Term>See Also</Term>
2014 <listitem><Para>*begin</Para></listitem>
2016 </VarListEntry>
2018 </VariableList>
2020 </Sect3>
2022 <Sect3><Title>ENTRANCE</Title>
2024 <VariableList>
2026 <VarListEntry><Term>Syntax</Term>
2028 <listitem><Para>*entrance &lt;station&gt;</Para></listitem>
2030 </VarListEntry>
2032 <VarListEntry><Term>Example</Term>
2034 <listitem>
2035 <Para>
2036 <programlisting>
2037 *entrance P163</programlisting>
2038 </Para>
2039 </listitem>
2041 </VarListEntry>
2043 <VarListEntry><Term>Description</Term>
2045 <listitem><Para>
2046 *entrance sets the <emphasis>entrance</emphasis> flag for a station.
2047 This information is used by aven to allow entrances to be highlighted.
2048 </Para>
2050 <!-- FIXME:
2051 (could be inferred from surface/ug join, but better to specify because
2052 of caves with no surf svy (or no underground survey)
2053 and also situations in which multiple surveys leave through an entrance)
2055 </listitem>
2057 </VarListEntry>
2059 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2061 <!-- <VarListEntry><Term>See Also</Term>
2063 <listitem><Para></Para></listitem>
2065 </VarListEntry>
2068 </VariableList>
2070 </Sect3>
2072 <Sect3><Title>EQUATE</Title>
2074 <VariableList>
2076 <VarListEntry><Term>Syntax</Term>
2078 <listitem><Para>*equate &lt;station&gt; &lt;station&gt;...</Para></listitem>
2080 </VarListEntry>
2082 <VarListEntry><Term>Example</Term>
2084 <listitem>
2085 <Para>
2086 <programlisting>
2087 *equate chosspot.1 triassic.27</programlisting>
2088 </Para>
2089 </listitem>
2091 </VarListEntry>
2093 <VarListEntry><Term>Description</Term>
2095 <listitem><Para>
2096 *equate specifies that the station names in the list refer to the
2097 same physical survey station. An error is given if there is only one station
2098 listed.
2099 </Para>
2101 <!-- FIXME:
2102 <Para>
2103 I think this is preferable to using:
2104 </Para>
2106 <programlisting> a b 0.00 0 0</programlisting>
2108 <Para>
2109 as EQUATE does not add in an extra position error. It is also clearer than
2110 substituting in the original name wherever passages are linked. If you
2111 disagree, you can always use one of the other methods!
2112 </Para>
2114 </listitem>
2116 </VarListEntry>
2118 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2120 <VarListEntry><Term>See Also</Term>
2122 <listitem><Para>*infer equates</Para></listitem>
2124 </VarListEntry>
2126 </VariableList>
2128 </Sect3>
2130 <Sect3><Title>EXPORT</Title>
2132 <VariableList>
2134 <VarListEntry><Term>Syntax</Term>
2136 <listitem><Para>*export &lt;station&gt;...</Para></listitem>
2138 </VarListEntry>
2140 <VarListEntry><Term>Example</Term>
2142 <!-- FIXME better example -->
2143 <listitem>
2144 <Para>
2145 <programlisting>
2146 *export 1 6 17</programlisting>
2147 </Para>
2148 </listitem>
2150 </VarListEntry>
2152 <VarListEntry><Term>Validity</Term>
2154 <listitem><Para>valid at the start of a *begin/*end block.
2155 </Para></listitem>
2157 </VarListEntry>
2159 <VarListEntry><Term>Description</Term>
2161 <listitem><Para>
2162 *export marks the stations named as referable to from the enclosing
2163 survey. To be able to refer to a station from a survey several levels
2164 above, it must be exported from each enclosing survey.
2165 </Para>
2167 <!-- FIXME:
2168 <Para>
2169 I think this is preferable to using:
2170 </Para>
2172 <programlisting> a b 0.00 0 0</programlisting>
2174 <Para>
2175 as EQUATE does not add in an extra position error. It is also clearer than
2176 substituting in the original name wherever passages are linked. If you
2177 disagree, you can always use one of the other methods!
2178 </Para>
2180 </listitem>
2182 </VarListEntry>
2184 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2186 <VarListEntry><Term>See Also</Term>
2188 <listitem><Para>*begin, *infer exports</Para></listitem>
2190 </VarListEntry>
2192 </VariableList>
2194 </Sect3>
2196 <Sect3><Title>FIX</Title>
2198 <VariableList>
2200 <VarListEntry><Term>Syntax</Term>
2202 <listitem><Para>*fix &lt;station&gt; [reference]
2203 [ &lt;x&gt; &lt;y&gt; &lt;z&gt;
2204 [ &lt;x std err&gt; &lt;y std err&gt; &lt;z std err&gt;
2205 [ &lt;cov(x,y)&gt; &lt;cov(y,z)&gt; &lt;cov(z,x)&gt; ] ] ]
2206 </Para></listitem>
2208 </VarListEntry>
2210 <VarListEntry><Term>Example</Term>
2212 <listitem>
2213 <Para>
2214 <programlisting>
2215 *fix entrance.0 32768 86723 1760</programlisting>
2217 <programlisting>
2218 *fix KT114_96 reference 36670.37 83317.43 1903.97</programlisting>
2219 </Para>
2220 </listitem>
2222 </VarListEntry>
2224 <VarListEntry><Term>Description</Term>
2226 <listitem>
2227 <Para>
2228 *fix fixes the position of &lt;station&gt; at the given coordinates.
2229 If you haven't specified the coordinate system with "*cs", you can
2230 omit the position and it will default to (0,0,0). The standard errors default
2231 to zero (fix station exactly). cavern will give an error if you attempt to fix
2232 the same survey station twice at different coordinates, or a warning if you fix
2233 it twice with matching coordinates.
2234 </Para>
2236 <Para>
2237 You can also specify just one standard error (in which case it is assumed
2238 equal in X, Y, and Z) or two (in which case the first is taken as the
2239 standard error in X and Y, and the second as the standard error in Z).
2240 </Para>
2242 <Para>
2243 If you have covariances for the fix, you can also specify these - the
2244 order is cov(x,y) cov(y,z) cov(z,x).
2245 </Para>
2247 <Para>
2248 If you've specified a coordinate system (see <command>*cs</command>) then
2249 that determines the meaning of X, Y and Z (if you want to specify the
2250 units for altitude, note that using a PROJ string containing
2251 <command>+vunits</command> allows this - e.g. <command>+vunits=us-ft</command>
2252 for US survey feet). If you don't specify a coordinate system, then the
2253 coordinates must be in metres. The standard deviations must always be
2254 in metres (and the covariances in metres squared).
2255 </Para>
2257 <Para>
2258 You can fix as many stations as you like - just use a *fix command for each
2259 one. Cavern will check that all stations are connected to
2260 at least one fixed point so that co-ordinates can be calculated for all
2261 stations.
2262 </Para>
2264 <Para>
2265 By default cavern will warn about stations which have been FIX-ed but
2266 not used otherwise, as this might be due to a typo in the station
2267 name. This is unhelpful if you want to include a standard file of benchmarks,
2268 some of which won't be used. In this sort of situation, specify "REFERENCE"
2269 after the station name in the FIX command to suppress this warning for a
2270 particular station.
2271 </Para>
2273 <Note><Para>
2274 X is Easting, Y is Northing, and Z is altitude. This convention was chosen
2275 since on a map, the horizontal (X) axis is usually East, and the vertical
2276 axis (Y) North. The choice of altitude (rather than depth) for Z is taken
2277 from surface maps, and makes for less confusion when dealing with cave
2278 systems with more than one entrance. It also gives a right-handed
2279 set of axes.
2280 </Para></Note>
2282 </listitem>
2283 </VarListEntry>
2285 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2287 <!-- <VarListEntry><Term>See Also</Term>
2289 <listitem><Para></Para></listitem>
2291 </VarListEntry>
2294 </VariableList>
2296 </Sect3>
2298 <!--
2299 <Sect3><Title></Title>
2301 <VariableList>
2303 <VarListEntry><Term>Syntax</Term>
2305 <listitem><Para>*</Para></listitem>
2307 </VarListEntry>
2309 <VarListEntry><Term>Example</Term>
2311 <listitem>
2312 <Para>
2313 <programlisting>
2314 *</programlisting>
2315 </Para>
2316 </listitem>
2318 </VarListEntry>
2320 <VarListEntry><Term>Description</Term>
2322 <listitem><Para>
2323 </Para></listitem>
2325 </VarListEntry>
2327 <VarListEntry><Term>Caveats </Term> </VarListEntry>
2329 <VarListEntry><Term>See Also</Term>
2331 <listitem><Para></Para></listitem>
2333 </VarListEntry>
2335 </VariableList>
2337 </Sect3>
2340 <Sect3><Title>FLAGS</Title>
2342 <VariableList>
2344 <VarListEntry><Term>Syntax</Term>
2346 <listitem><Para>*flags &lt;flags&gt;</Para></listitem>
2348 </VarListEntry>
2350 <VarListEntry><Term>Example</Term>
2352 <listitem>
2353 <Para>
2354 <programlisting>
2355 *flags duplicate not surface</programlisting>
2356 </Para>
2357 </listitem>
2359 </VarListEntry>
2361 <VarListEntry><Term>Description</Term>
2363 <listitem><Para>
2364 *flags updates the current flag settings.
2365 Flags not mentioned retain their previous state. Valid flags
2366 are DUPLICATE, SPLAY, and SURFACE, and a flag may be preceded with NOT to
2367 turn it off.
2368 </Para>
2370 <Para>
2371 Survey legs marked SURFACE are hidden from plots by default, and not
2372 included in cave survey length calculations. Survey legs marked as
2373 DUPLICATE or SPLAY are also not included in cave survey length
2374 calculations; legs marked SPLAY are ignored by the extend program.
2375 DUPLICATE is intended for the case when if you have two different
2376 surveys along the same section of passage (for example to tie two
2377 surveys into a permanent survey station); SPLAY is intended for
2378 cases such as radial legs in a large chamber.
2379 </Para>
2380 </listitem>
2382 </VarListEntry>
2384 <VarListEntry><Term>See Also</Term>
2386 <listitem><Para>*begin</Para></listitem>
2388 </VarListEntry>
2390 </VariableList>
2392 </Sect3>
2394 <Sect3><Title>INCLUDE</Title>
2396 <VariableList>
2398 <VarListEntry><Term>Syntax</Term>
2400 <listitem><Para>*include &lt;filename&gt;</Para></listitem>
2402 </VarListEntry>
2404 <VarListEntry><Term>Example</Term>
2406 <listitem>
2407 <Para>
2408 <programlisting>
2409 *include mission</programlisting>
2411 <programlisting>
2412 *include "the pits"</programlisting>
2413 </Para>
2414 </listitem>
2416 </VarListEntry>
2418 <VarListEntry><Term>Description</Term>
2420 <listitem><Para>
2421 *include processes &lt;filename&gt; as if it were inserted at this
2422 place in the current file. (i.e. The current settings are carried
2423 into &lt;filename&gt;, and any alterations to settings in &lt;filename&gt;
2424 will be carried back again). There's one exception to this (for
2425 obscure historical reasons) which is that the survey prefix is
2426 restored upon return to the original file. Since *begin and *end
2427 nesting cannot cross files, this can only make a difference if you
2428 use the deprecated *prefix command.
2429 </Para>
2431 <Para>If &lt;filename&gt; contains spaces, it must be enclosed in quotes.
2432 </Para>
2434 <Para>An included file which does not have a complete path
2435 is resolved relative to the directory which the parent file is in
2436 (just as relative HTML links do). Cavern will try adding a <filename>.svx</filename>
2437 extension, and will also try translating "\" to "/".
2438 And as a last
2439 resort, it will try a lower case version of the filename (so if you
2440 use Unix and someone sends you a DOS/Windows dataset with mismatched
2441 case, unzip it with "unzip -L" and UNIX cavern will process it).
2442 </Para>
2444 <Para>
2445 The depth to which you can nest
2446 include files may be limited by the operating system
2447 you use. Usually the limit is fairly high (>30), but if you want to be able to
2448 process your dataset with <Application>Survex</Application> on any supported platform, it
2449 would be prudent not to go overboard with nested include files.
2450 </Para>
2451 </listitem>
2452 </VarListEntry>
2454 </VariableList>
2456 </Sect3>
2458 <Sect3><Title>INFER</Title>
2460 <VariableList>
2462 <VarListEntry><Term>Syntax</Term>
2464 <listitem>
2465 <Para>*infer plumbs on|off</Para>
2467 <Para>*infer equates on|off</Para>
2469 <Para>*infer exports on|off</Para>
2470 </listitem>
2472 </VarListEntry>
2474 <!--
2475 <VarListEntry><Term>Example</Term>
2477 <listitem>
2478 <programlisting>
2479 </programlisting>
2481 </listitem>
2483 </VarListEntry>
2486 <VarListEntry><Term>Description</Term>
2488 <listitem>
2489 <Para>"*infer plumbs on" tells cavern to interpret gradients of +/- 90
2490 degrees as UP/DOWN (so it
2491 will not apply the clino correction to them). This is useful when
2492 the data has not been converted to have UP and DOWN in it.
2493 </Para>
2495 <para>"*infer equates on" tells cavern to interpret a leg with
2496 a tape reading of zero as a *equate. this prevents tape corrections
2497 being applied to them.
2498 </para>
2500 <para>"*infer exports on" is necessary when you have a dataset which is
2501 partly annotated with *export. It tells cavern not to complain about
2502 missing *export commands in part of the dataset. Also stations which
2503 were used to join surveys are marked as exported in the 3d file.
2504 </para>
2505 </listitem>
2507 </VarListEntry>
2509 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2511 <!--
2512 <VarListEntry><Term>See Also</Term>
2514 <listitem><Para>*end, *prefix</Para></listitem>
2516 </VarListEntry>
2519 </VariableList>
2521 </Sect3>
2523 <Sect3><Title>INSTRUMENT</Title>
2525 <VariableList>
2527 <VarListEntry><Term>Syntax</Term>
2529 <listitem><Para>*instrument &lt;instrument&gt; &lt;identifier&gt;</Para></listitem>
2531 </VarListEntry>
2533 <VarListEntry><Term>Example</Term>
2535 <listitem>
2536 <Para>
2537 <programlisting>
2538 *instrument compass "CUCC 2"
2539 *instrument clino "CUCC 2"
2540 *instrument tape "CUCC Fisco Ranger open reel"</programlisting>
2541 </Para>
2542 </listitem>
2544 </VarListEntry>
2546 <VarListEntry><Term>Validity</Term>
2548 <listitem><Para>valid at the start of a *begin/*end block.
2549 </Para></listitem>
2551 </VarListEntry>
2553 <VarListEntry><Term>Description</Term>
2555 <listitem><Para>
2556 *instrument specifies the particular instruments used to perform a
2557 survey.
2558 </Para></listitem>
2560 </VarListEntry>
2562 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2564 <VarListEntry><Term>See Also</Term>
2566 <listitem><Para>*begin, *date, *team</Para></listitem>
2568 </VarListEntry>
2570 </VariableList>
2572 </Sect3>
2574 <Sect3><Title>PREFIX</Title>
2576 <VariableList>
2578 <VarListEntry><Term>Syntax</Term>
2580 <listitem><Para>*prefix &lt;survey&gt;</Para></listitem>
2582 </VarListEntry>
2584 <VarListEntry><Term>Example</Term>
2586 <listitem>
2587 <Para>
2588 <programlisting>
2589 *prefix flapjack</programlisting>
2590 </Para>
2591 </listitem>
2593 </VarListEntry>
2595 <VarListEntry><Term>Description</Term>
2597 <listitem><Para>
2598 *prefix sets the current survey.
2599 </Para></listitem>
2601 </VarListEntry>
2603 <VarListEntry><Term>Caveats </Term>
2605 <listitem><Para>*prefix is deprecated - you should use *begin and *end
2606 instead.</Para></listitem>
2608 </VarListEntry>
2610 <VarListEntry><Term>See Also</Term>
2612 <listitem><Para>*begin, *end</Para></listitem>
2614 </VarListEntry>
2616 </VariableList>
2618 </Sect3>
2620 <Sect3><Title>REF</Title>
2622 <VariableList>
2624 <VarListEntry><Term>Syntax</Term>
2626 <listitem><Para>*ref &lt;string&gt;</Para></listitem>
2628 </VarListEntry>
2630 <VarListEntry><Term>Example</Term>
2632 <listitem>
2633 <Para>
2634 <programlisting>
2635 *ref "survey folder 2007#12"
2636 </programlisting>
2637 </Para>
2638 </listitem>
2640 </VarListEntry>
2642 <VarListEntry><Term>Validity</Term>
2644 <listitem><Para>valid at the start of a *begin/*end block.
2645 </Para></listitem>
2647 </VarListEntry>
2649 <VarListEntry><Term>Description</Term>
2651 <listitem><Para>
2652 *ref allows you to specify a reference. If the reference contains spaces, you
2653 must enclose it in double quotes. Survex doesn't try to interpret the
2654 reference in any way, so it's up to you how you use it - for example it could
2655 specify where the original survey notes can be found.
2656 </Para>
2658 <Para>
2659 *ref was added in Survex 1.2.23.
2660 </Para></listitem>
2662 </VarListEntry>
2664 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
2666 <VarListEntry><Term>See Also</Term>
2668 <listitem><Para>*begin, *date, *instrument, *team</Para></listitem>
2670 </VarListEntry>
2672 </VariableList>
2674 </Sect3>
2676 <Sect3><Title>REQUIRE</Title>
2678 <VariableList>
2680 <VarListEntry><Term>Syntax</Term>
2682 <listitem><Para>*require &lt;version&gt;</Para></listitem>
2684 </VarListEntry>
2686 <VarListEntry><Term>Example</Term>
2688 <listitem>
2689 <Para>
2690 <programlisting>
2691 *require 0.98</programlisting>
2692 </Para>
2693 </listitem>
2695 </VarListEntry>
2697 <VarListEntry><Term>Description</Term>
2699 <listitem><Para>
2700 *require checks that the version of cavern in use is at least
2701 &lt;version&gt; and stops with an error if not.
2702 So if your dataset requires a feature
2703 introduced in a particular version, you can add a *require command and
2704 users will know what version they need to upgrade to, rather than
2705 getting an error message and having to guess what the real problem is.
2706 </Para></listitem>
2708 </VarListEntry>
2710 </VariableList>
2712 </Sect3>
2714 <Sect3><Title>SD</Title>
2716 <VariableList>
2718 <VarListEntry><Term>Syntax</Term>
2720 <listitem><Para>*sd &lt;quantity list&gt; &lt;standard deviation&gt;
2721 </Para></listitem>
2723 </VarListEntry>
2725 <VarListEntry><Term>Example</Term>
2727 <listitem>
2728 <Para>
2729 <programlisting>
2730 *sd tape 0.15 metres</programlisting>
2731 </Para>
2732 </listitem>
2734 </VarListEntry>
2736 <VarListEntry><Term>Description</Term>
2738 <listitem><Para>
2739 *sd sets the standard deviation of a measurement.
2740 </Para>
2742 <Para>
2743 &lt;quantity&gt; is one of (each group gives alternative names for the same
2744 quantity):
2745 </Para>
2747 <ItemizedList>
2748 <listitem><para>TAPE, LENGTH</para></listitem>
2749 <listitem><para>BACKTAPE, BACKLENGTH (added in Survex 1.2.25)</para></listitem>
2750 <listitem><para>COMPASS, BEARING</para></listitem>
2751 <listitem><para>BACKCOMPASS, BACKBEARING</para></listitem>
2752 <listitem><para>CLINO, GRADIENT</para></listitem>
2753 <listitem><para>BACKCLINO, BACKGRADIENT</para></listitem>
2754 <listitem><para>COUNTER, COUNT</para></listitem>
2755 <listitem><para>DEPTH</para></listitem>
2756 <listitem><para>DECLINATION</para></listitem>
2757 <listitem><para>DX, EASTING</para></listitem>
2758 <listitem><para>DY, NORTHING</para></listitem>
2759 <listitem><para>DZ, ALTITUDE</para></listitem>
2760 <listitem><para>LEFT</para></listitem>
2761 <listitem><para>RIGHT</para></listitem>
2762 <listitem><para>UP, CEILING</para></listitem>
2763 <listitem><para>DOWN, FLOOR</para></listitem>
2764 <listitem><para>LEVEL</para></listitem>
2765 <listitem><para>PLUMB</para></listitem>
2766 <listitem><para>POSITION</para></listitem>
2767 </ItemizedList>
2769 <Para>
2770 &lt;standard deviation&gt; must include units and thus is typically
2771 "0.05 metres", or "0.02 degrees". See *units below for full list
2772 of valid units.
2773 </Para>
2775 <!-- FIXME mention central limit theorem -->
2776 <Para>
2777 To utilise this command fully you need to understand what a
2778 <emphasis>standard deviation</emphasis> is.
2779 It gives a value to the 'spread' of the errors
2780 in a measurement. Assuming that these are normally distributed
2781 we can say that 95.44% of the actual lengths will fall within two
2782 standard deviations of the measured length. i.e. a tape SD of
2783 0.25 metres means that the actual length of a tape measurement
2784 is within + or - 0.5 metres of the recorded value 95.44% of the time.
2785 So if the measurement is 7.34m then the actual length is very
2786 likely to be between 6.84m and 7.84m. This example corresponds
2787 to BCRA grade 3. Note that this is just one interpretation of
2788 the BCRA standard, taking the permitted error values as 2SD 95.44%
2789 confidence limits. If you want to take the readings as being some
2790 other limit (e.g. 1SD = 68.26%) then you will need to change the BCRA3
2791 and BCRA5 files accordingly. This issue is explored in more
2792 detail in various surveying articles.
2793 <!--
2794 2.565 sd 99%
2795 2.5 sd 98.76%
2796 2 sd 95.44%
2797 1 sd 68.26%
2798 .97 sd 66.67%
2799 1.15 sd 75%
2801 </Para></listitem>
2803 </VarListEntry>
2805 <VarListEntry><Term>See Also</Term>
2807 <listitem><Para>*units</Para></listitem>
2809 </VarListEntry>
2811 </VariableList>
2813 </Sect3>
2815 <Sect3><Title>SET</Title>
2817 <VariableList>
2819 <VarListEntry><Term>Syntax</Term>
2821 <listitem><Para>*set &lt;item&gt; &lt;character list&gt;</Para></listitem>
2823 </VarListEntry>
2825 <VarListEntry><Term>Example</Term>
2827 <listitem>
2828 <Para>
2829 <programlisting>
2830 *set blank x09x20
2831 *set decimal ,</programlisting>
2833 Note that you need to eliminate comma from being a blank before setting it as
2834 a decimal - otherwise the comma in "*set decimal ," is parsed as a blank, and
2835 you set decimal to not have any characters representing it.
2836 </Para>
2837 </listitem>
2839 </VarListEntry>
2841 <VarListEntry><Term>Description</Term>
2843 <listitem><Para>
2844 *set sets the specified &lt;item&gt; to the character or characters
2845 given in &lt;character list&gt;. The example sets the decimal
2846 separator to be a comma.
2847 </Para>
2849 <Para>
2850 xAB means the character with hex value AB. Eg x20 is a space.
2851 </Para>
2853 <Para>
2854 The complete list of items that can be set, the defaults (in
2855 brackets), and the meaning of the item, is:
2856 </Para>
2858 <ItemizedList>
2860 <ListItem><Para>
2861 BLANK (x09x20,) Separates fields
2862 </Para></ListItem>
2864 <ListItem><Para>
2865 COMMENT (;) Introduces comments
2866 </Para></ListItem>
2868 <ListItem><Para>
2869 DECIMAL (.) Decimal point character
2870 </Para></ListItem>
2872 <ListItem><Para>
2873 EOL (x0Ax0D) End of line character
2874 </Para></ListItem>
2876 <ListItem><Para>
2877 KEYWORD (*) Introduces keywords
2878 </Para></ListItem>
2880 <ListItem><Para>
2881 MINUS (-) Indicates negative number
2882 </Para></ListItem>
2884 <ListItem><Para>
2885 NAMES (_-) Non-alphanumeric chars permitted in station
2886 names (letters and numbers are always permitted).
2887 </Para></ListItem>
2889 <ListItem><Para>
2890 OMIT (-) Contents of field omitted (e.g. in plumbed legs)
2891 </Para></ListItem>
2893 <ListItem><Para>
2894 PLUS (+) Indicates positive number
2895 </Para></ListItem>
2897 <ListItem><Para>
2898 ROOT (\) Prefix in force at start of current file (use of ROOT is deprecated)
2899 </Para></ListItem>
2901 <ListItem><Para>
2902 SEPARATOR (.) Level separator in prefix hierarchy
2903 </Para></ListItem>
2905 <!-- FIXME OPEN ({) and CLOSE (}) -->
2906 </ItemizedList>
2908 <Para>
2909 The special characters may not be alphanumeric.
2910 </Para>
2912 </listitem>
2914 </VarListEntry>
2916 </VariableList>
2918 </Sect3>
2920 <Sect3><Title>SOLVE</Title>
2922 <VariableList>
2924 <VarListEntry><Term>Syntax</Term>
2926 <listitem><Para>*solve</Para></listitem>
2928 </VarListEntry>
2930 <VarListEntry><Term>Example</Term>
2932 <listitem>
2933 <Para>
2934 <programlisting>
2935 *include 1997data
2936 *solve
2937 *include 1998data
2938 </programlisting>
2939 </Para>
2940 </listitem>
2942 </VarListEntry>
2944 <VarListEntry><Term>Description</Term>
2946 <listitem><Para>
2947 Distributes misclosures around any loops in the survey and fixes
2948 the positions of all existing stations. This command is intended
2949 for situations where you have some new surveys adding extensions
2950 to an already drawn-up survey which you wish to avoid completely
2951 redrawing. You can read in the old data, use *SOLVE to fix it, and then
2952 read in the new data. Then old stations will be in the same
2953 positions as they are in the existing drawn up survey, even if new loops
2954 have been formed by the extensions.
2955 </Para></listitem>
2957 </VarListEntry>
2959 </VariableList>
2961 </Sect3>
2963 <Sect3><Title>TEAM</Title>
2965 <VariableList>
2967 <VarListEntry><Term>Syntax</Term>
2969 <listitem><Para>*team &lt;person&gt; &lt;role&gt;...</Para></listitem>
2971 </VarListEntry>
2973 <VarListEntry><Term>Example</Term>
2975 <listitem>
2976 <Para>
2977 <programlisting>
2978 *team "Nick Proctor" compass clino tape
2979 *team "Anthony Day" notes pictures tape
2980 </programlisting>
2981 </Para>
2982 </listitem>
2984 </VarListEntry>
2986 <VarListEntry><Term>Validity</Term>
2988 <listitem><Para>valid at the start of a *begin/*end block.
2989 </Para></listitem>
2990 <!-- FIXME valid roles are? -->
2992 </VarListEntry>
2994 <VarListEntry><Term>Description</Term>
2996 <listitem><Para>
2997 *team specifies the people involved in a survey and what role they
2998 filled during that trip.
2999 </Para></listitem>
3001 </VarListEntry>
3003 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3005 <VarListEntry><Term>See Also</Term>
3007 <listitem><Para>*begin, *date, *instrument</Para></listitem>
3009 </VarListEntry>
3011 </VariableList>
3013 </Sect3>
3015 <Sect3><Title>TITLE</Title>
3017 <VariableList>
3019 <VarListEntry><Term>Syntax</Term>
3021 <listitem><Para>*title &lt;title&gt;</Para></listitem>
3023 </VarListEntry>
3025 <VarListEntry><Term>Example</Term>
3027 <listitem>
3028 <programlisting>
3029 *title Dreamtime</programlisting>
3031 <programlisting>
3032 *title "Mission Impossible"</programlisting>
3033 </listitem>
3035 </VarListEntry>
3037 <VarListEntry><Term>Description</Term>
3039 <listitem><Para>*title allows you to set the descriptive title for a survey.
3040 If the title contains spaces, you need to enclose it in quotes ("").
3041 If there is no *title command, the title defaults to the survey name
3042 given in the *begin command.
3043 </Para>
3044 </listitem>
3046 </VarListEntry>
3048 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3050 <!--
3051 <VarListEntry><Term>See Also</Term>
3053 <listitem><Para>*end, *prefix</Para></listitem>
3055 </VarListEntry>
3058 </VariableList>
3060 </Sect3>
3062 <Sect3><Title>TRUNCATE</Title>
3064 <VariableList>
3066 <VarListEntry><Term>Syntax</Term>
3068 <listitem><Para>*truncate &lt;length&gt;|off</Para></listitem>
3070 </VarListEntry>
3072 <!-- FIXME:
3073 <VarListEntry><Term>Example</Term>
3075 <listitem>
3076 <programlisting>
3077 </programlisting>
3079 </listitem>
3081 </VarListEntry>
3084 <VarListEntry><Term>Description</Term>
3086 <listitem><Para>Station names may be of any length in <Application>Survex</Application>, but some
3087 other (mostly older) cave surveying software only regard the first few
3088 characters of a name as significant (e.g. "entran" and "entrance"
3089 might be treated as the same). To facilitate using data imported from
3090 such a package <Application>Survex</Application> allows you to truncate names to whatever
3091 length you want (but by default truncation is off).
3092 </Para>
3094 <Para>Figures for the number of characters which are significant in various
3095 software packages: Compass currently has a limit of 12,
3096 CMAP has a limit of 6,
3097 Smaps 4 had a limit of 8,
3098 <!-- FIXME any limits for other software, winkarst for example? -->
3099 Surveyor87/8 used 8.
3100 <Application>Survex</Application> itself used 8 per prefix
3101 level up to version 0.41, and 12 per prefix level up to 0.73 (more recent
3102 versions removed this rather archaic restriction).
3103 </Para>
3104 </listitem>
3106 </VarListEntry>
3108 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3110 <VarListEntry><Term>See Also</Term>
3112 <listitem><Para>*case</Para></listitem>
3114 </VarListEntry>
3116 </VariableList>
3118 </Sect3>
3120 <Sect3><Title>UNITS</Title>
3122 <VariableList>
3124 <VarListEntry><Term>Syntax</Term>
3126 <listitem><Para>
3127 *units &lt;quantity list&gt; [&lt;factor&gt;] &lt;unit&gt;
3128 </Para>
3129 <Para>
3130 *units default
3131 </Para></listitem>
3133 </VarListEntry>
3135 <VarListEntry><Term>Example</Term>
3137 <listitem>
3138 <Para>
3139 <programlisting>
3140 *units tape metres</programlisting>
3142 <programlisting>
3143 *units compass backcompass clino backclino grads</programlisting>
3145 <programlisting>
3146 *units dx dy dz 1000 metres ; data given as kilometres</programlisting>
3148 <programlisting>
3149 *units left right up down feet</programlisting>
3150 </Para>
3151 </listitem>
3153 </VarListEntry>
3155 <VarListEntry><Term>Description</Term>
3157 <listitem><Para>
3158 &lt;quantity&gt; is one of the following (grouped entries are just alternative names for the same thing):
3159 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
3160 </Para>
3162 <Para>Changes current units of all the quantities listed to [&lt;factor&gt;]
3163 &lt;unit&gt;. Note that quantities can be expressed either as
3164 the instrument (e.g. COMPASS) or the measurement (e.g. BEARING).
3165 </Para>
3167 <Para>&lt;factor&gt; allows you to easy specify situations such as measuring
3168 distance with a diving line knotted every 10cm (*units distance 0.1 metres).
3169 If &lt;factor&gt; is omitted it defaults to 1.0. If specified, it must be
3170 non-zero.
3171 </Para>
3173 <Para>Valid units for listed quantities are:
3174 </Para>
3176 <Para>TAPE/LENGTH, BACKTAPE/BACKLENGTH, COUNTER/COUNT, DEPTH, DX/EASTING, DY/NORTHING, DZ/ALTITUDE
3177 in YARDS|FEET|METRIC|METRES|METERS (default: METRES)
3178 </Para>
3180 <Para>CLINO/GRADIENT, BACKCLINO/BACKGRADIENT
3181 in DEGS|DEGREES|GRADS|MILS|MINUTES|PERCENT|PERCENTAGE (default: DEGREES)
3182 </Para>
3184 <Para>COMPASS/BEARING, BACKCOMPASS/BACKBEARING, DECLINATION
3185 in DEGS|DEGREES|GRADS|MILS|MINUTES (default: DEGREES)
3186 </Para>
3188 <Para>(360 degrees = 400 grads (also known as Mils))
3189 </Para>
3190 </listitem>
3192 </VarListEntry>
3194 <!-- <VarListEntry><Term>Caveats </Term> </VarListEntry> -->
3196 <VarListEntry><Term>See Also</Term>
3198 <listitem><Para>*calibrate</Para></listitem>
3200 </VarListEntry>
3202 </VariableList>
3204 </Sect3>
3206 </Sect2>
3208 </Sect1>
3210 <!-- FIXME rename to "Cookbook"? -->
3211 <Sect1><Title>Contents of <filename>.svx</filename> files: How do I?</Title>
3212 <?dbhtml filename="svxhowto.htm">
3214 <Para>
3215 Here is some example <Application>Survex</Application> data (a very small cave numbered 1623/163):
3216 </Para>
3218 <programlisting>
3219 2 1 26.60 222 17.5
3220 2 3 10.85 014 7
3221 2 4 7.89 254 -11
3222 4 5 2.98 - DOWN
3223 5 6 9.29 271 -28.5</programlisting>
3225 <Para>
3226 You can vary the data ordering. The default is:
3227 </Para>
3229 <Para>
3230 from-station to-station tape compass clino
3231 </Para>
3233 <Para>
3234 This data demonstrates a number of useful features of <Application>Survex</Application>:
3235 </Para>
3237 <Para>
3238 Legs can be measured either way round, which allows the use of
3239 techniques like "leap-frogging" (which is where legs
3240 alternate forwards and backwards).
3241 </Para>
3243 <Para>
3244 Also notice that there is a spur in the survey (2 to 3). You
3245 do not need to specify this specially.
3246 </Para>
3248 <Para>
3249 <Application>Survex</Application> places few restrictions on station naming (see "Survey
3250 Station Names" in the previous section), so you can number the stations
3251 as they were in the original survey notes. Although not apparent from
3252 this example, there is no requirement for each leg to connect to an
3253 existing station. <Application>Survex</Application> can accept data in any order, and will
3254 check for connectedness once all the data has been read in.
3255 </Para>
3257 <Para>
3258 Each survey is also likely to have other information associated
3259 with it, such as instrument calibrations, etc. This has been
3260 omitted from this example to keep things simple.
3261 </Para>
3263 <Para>
3264 Most caves will take more than just one survey trip to map. Commonly
3265 the numbering in each survey will begin at 1, so we need to be
3266 able to tell apart stations with the same number in different
3267 surveys.
3268 </Para>
3270 <Para>
3271 To accomplish this, <Application>Survex</Application> has a very flexible system of hierarchical
3272 prefixes. All you need do is give each survey a unique name or
3273 number, and enter the data like so:
3274 </Para>
3276 <programlisting>
3277 *begin 163
3278 *export 1
3279 2 1 26.60 222 17.5
3280 2 3 10.85 014 7
3281 2 4 7.89 254 -11
3282 4 5 2.98 - DOWN
3283 5 6 9.29 271 -28.5
3284 *end 163</programlisting>
3286 <Para><Application>Survex</Application> will name the stations by attaching the current prefix.
3287 In this case, the stations will be named 163.1, 163.2, etc.
3288 </Para>
3290 <Para>We have a convention with the CUCC Austria data that the entrance survey
3291 station of a cave is named P&lt;cave number&gt;, P163 in this case. We
3292 can accomplish this like so:
3293 </Para>
3295 <programlisting>
3296 *equate P163 163.1
3297 *entrance P163
3298 *begin 163
3299 *export 1
3300 2 1 26.60 222 17.5
3301 2 3 10.85 014 7
3302 2 4 7.89 254 -11
3303 4 5 2.98 - DOWN
3304 5 6 9.29 271 -28.5
3305 *end 163</programlisting>
3307 <Sect2><Title>Specify surface survey data</Title>
3309 <Para>
3310 Say you have 2 underground surveys and 2 surface ones with 2 fixed reference
3311 points. You want to mark the surface surveys so that their length isn't
3312 included in length statistics, and so that Aven knows to display them
3313 differently. To do this you mark surface data with the "surface" flag
3314 - this is set with "*flags surface" like so:
3315 </Para>
3317 <programlisting>
3318 ; fixed reference points
3319 *fix fix_a 12345 56789 1234
3320 *fix fix_b 23456 67890 1111
3322 ; surface data (enclosed in *begin ... *end to stop the *flags command
3323 ; from "leaking" out)
3324 *begin
3325 *flags surface
3326 *include surface1
3327 *include surface2
3328 *end
3330 ; underground data
3331 *include cave1
3332 *include cave2</programlisting>
3334 <Para>
3335 You might also have a survey which starts on the surface and heads into a
3336 cave. This can be easily handled too - here's an example which goes in
3337 one entrance, through the cave, and out of another entrance:
3338 </Para>
3340 <programlisting>
3341 *begin BtoC
3342 *title "161b to 161c"
3343 *date 1990.08.06 ; trip 1990-161c-3 in 1990 logbook
3345 *begin
3346 *flags surface
3347 02 01 3.09 249 -08.5
3348 02 03 4.13 252.5 -26
3349 *end
3351 04 03 6.00 020 +37
3352 04 05 3.07 329 -31
3353 06 05 2.67 203 -40.5
3354 06 07 2.20 014 +04
3355 07 08 2.98 032 +04
3356 08 09 2.73 063.5 +21
3357 09 10 12.35 059 +15
3359 *begin
3360 *flags surface
3361 11 10 4.20 221.5 -11.5
3362 11 12 5.05 215 +03.5
3363 11 13 6.14 205 +12.5
3364 13 14 15.40 221 -14
3365 *end
3367 *end BtoC</programlisting>
3369 <Para>
3370 Note that to avoid needless complication, Survex regards each leg as
3371 being either "surface" or "not surface" - if a leg spans the boundary you'll
3372 have to call it one or the other. It's good surveying practice to
3373 deliberately put a station at the surface/underground interface
3374 (typically the highest closed contour or drip line) so this generally
3375 isn't an onerous restriction.
3376 </Para>
3378 </Sect2>
3380 <Sect2><Title>Specify the ordering and type of data</Title>
3382 <Para>The *DATA command is used to specify the data style, and the
3383 order in which the readings are given.</Para>
3385 </Sect2>
3387 <Sect2><Title>Deal with Plumbs or Legs Across Static Water</Title>
3389 <!-- FIXME
3390 <Para>
3391 They can be given
3392 as +90, or -90, but as they are not usually measured with the
3393 clino, but with a plumb of some sort, then it is useful to distinguish
3394 them in this way so that any clino adjustment is not applied to
3395 these values.
3396 </Para>
3398 FIXME: paste in section from mail to list
3400 <Para>
3401 Note that a similar effect can be achieved by using the "*infer plumbs" command
3402 to stop clino corrections being applied to -90 and +90 clino readings.
3403 </Para>
3406 <Para>
3407 Plumbed legs should be given using 'UP' or 'DOWN' in place of the
3408 clino reading and a dash (or a different specified 'OMIT' character)
3409 in place of the compass reading. This distinguishes
3410 them from legs measured with a compass and clino. Here's an example:
3411 </Para>
3413 <programlisting>
3414 1 2 21.54 - UP
3415 3 2 7.36 017 +17
3416 3 4 1.62 091 +08
3417 5 4 10.38 - DOWN</programlisting>
3419 <Para>
3420 U/D or +V/-V may be used instead of UP/DOWN; the check is not case
3421 sensitive.
3422 </Para>
3424 <Para>
3425 Legs surveyed across the surface of a static body of water where no
3426 clino reading is taken (since the surface of the water can be assumed
3427 to be flat) can be indicated by using LEVEL in place of a clino reading.
3428 This prevents the clino correction being applied. Here's an example:
3429 </Para>
3431 <programlisting>
3432 1 2 11.37 190 -12
3433 3 2 7.36 017 LEVEL
3434 3 4 1.62 091 LEVEL</programlisting>
3436 </Sect2>
3438 <Sect2><Title>Specify a BCRA grade</Title>
3440 <Para>The *SD command can be used to specify the standard deviations of the
3441 various measurements (tape, compass, clino, etc). Examples files are
3442 supplied which define BCRA Grade 3 and BCRA Grade 5 using a number of *sd
3443 commands. You can use these by simply including them at the relevant point,
3444 as follows:
3445 </Para>
3447 <programlisting>
3448 *begin somewhere
3449 ; This survey is only grade 3
3450 *include grade3
3451 2 1 26.60 222 17.5
3452 2 3 10.85 014 7
3453 ; etc
3454 *end somewhere</programlisting>
3456 <Para>The default values for the standard deviations are those for
3457 BCRA grade 5. Note that it is good practice to keep the *include
3458 Grade3 within *Begin and *End commands otherwise it will apply
3459 to following survey data, which may not be what you intended.
3460 </Para>
3462 </Sect2>
3464 <Sect2><Title>Specify different accuracy for a leg</Title>
3466 <Para>For example, suppose the tape on the plumbed leg in this survey
3467 is suspected of being less accurate than the rest of the survey because
3468 the length was obtained by measuring the length of the rope used to rig
3469 the pitch. We can set a higher sd for this one measurement and use a
3470 *begin/*end block to make sure this setting only applies to the one
3471 leg:
3472 </Para>
3474 <programlisting>
3475 2 1 26.60 222 17.5
3476 2 3 10.85 014 7
3477 2 4 7.89 254 -11
3478 *begin
3479 ; tape measurement was taken from the rope length
3480 *sd tape 0.5 metres
3481 4 5 34.50 - DOWN
3482 *end
3483 5 6 9.29 271 -28.5</programlisting>
3485 <!-- FIXME also *calibrate and *instrument? Except rope is measure with the
3486 tape... -->
3487 </Sect2>
3489 <Sect2><Title>Enter Repeated Readings</Title>
3491 <Para>If your survey data contains multiple versions of each leg (for example,
3492 pockettopo produces such data), then provided these are adjacent to one another
3493 Survex 1.2.17 and later will automatically average these and treat them as a
3494 single leg.
3495 </Para>
3497 </Sect2>
3499 <Sect2><Title>Enter Radiolocation Data</Title>
3501 <!-- FIXME comments from David Gibson here -->
3502 <Para>This is done by using the *SD command to specify the appropriate
3503 errors for the radiolocation `survey leg' so that the loop closure
3504 algorithm knows how to distribute errors if it forms part of a loop.
3505 </Para>
3507 <Para>The best approach for a radiolocation where the underground station
3508 is vertically below the surface station is to represent it as a
3509 plumbed leg, giving suitable SDs for the length and plumb angle. The
3510 horizontal positioning of this is generally quite accurate, but the
3511 vertical positioning may be much less well known. E.g: we have a
3512 radiolocation of about 50m depth +/- 20m and horizontal accuracy of
3513 +/- 8m. Over 50m the +/-8m is equivalent to an angle of 9 degrees, so
3514 that is the expected plumb error. 20m is the expected error in the
3515 length. To get the equivalent SD we assume that 99.74% of readings will
3516 be within 3 standard deviations of the error value. Thus we divide the
3517 expected errors by 3 to get the SD we should specify:
3518 </Para> <!-- 3 SD? or same as BCRA3.SVX, etc -->
3520 <programlisting>
3521 *begin
3522 *sd length 6.67 metres
3523 *sd plumb 3 degrees
3524 surface underground 50 - down
3525 *end</programlisting>
3527 <Para>
3528 We wrap the radiolocation leg in a *begin/*end block to make
3529 sure that the special *sd settings only apply to this one leg.
3530 </Para>
3532 <Para>For more information on the expected errors from radiolocations
3533 see Compass Points Issue 10, available online at
3534 <ulink url="http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm">http://www.chaos.org.uk/survex/cp/CP10/CPoint10.htm</ulink>
3535 </Para>
3537 </Sect2>
3539 <Sect2><Title>Enter Diving Data</Title>
3541 <Para>Surveys made underwater using a diver's depth gauge can be
3542 processed - use the *Data command to specify that the following data
3543 is of this type.
3544 </Para>
3546 </Sect2>
3548 <Sect2><Title>Enter Theodolite data</Title>
3550 <Para>
3551 Theodolite data with turned angles is not yet explicitly catered
3552 for, so for now you will need to convert it into equivalent legs in
3553 another style - normal or cylpolar are likely to be the best choices.
3554 </Para>
3556 <Para>
3557 If there is no vertical info in your theodolite data then you should
3558 use the cylpolar style and use *sd command to specify very low
3559 accuracy (high SD) in the depth so that the points will move in the
3560 vertical plane as required if the end points are fixed or the survey
3561 is part of a loop.
3562 </Para>
3564 </Sect2>
3566 </Sect1>
3568 <Sect1><Title>General: How do I?</Title>
3569 <?dbhtml filename="genhowto.htm">
3571 <Sect2><Title>Create a new survey</Title>
3573 <Para>You simply create a text file containing the relevant survey data,
3574 using a text editor, and save it with a suitable name with a <filename>.svx</filename>
3575 extension. The
3576 easiest way is to look at some of the example data and use that
3577 as a template. Nearly all surveys will need a bit of basic info
3578 as well as the survey data itself: e.g. the date (*date), comments
3579 about where, what cave, a name for the survey (using *begin and *end),
3580 instrument error corrections etc. Here is a typical survey file:
3581 </Para>
3583 <Para>All the lines starting with ';' are comments, which are ignored
3584 by <Application>Survex</Application>. You can also see the use of 'DOWN' for plumbs, and
3585 *calibrate tape for dealing with a tape length error (in this case
3586 the end of the tape had fallen off so measurements were made from the
3587 20cm point).</Para>
3589 <programlisting>
3590 *equate chaos.1 triassic.pt3.8
3591 *equate chaos.2 triassic.pt3.9
3593 *begin chaos
3594 *title "Bottomless Pit of Eternal Chaos to Redemption pitch"
3595 *date 1996.07.11
3596 *team "Nick Proctor" compass clino tape
3597 *team "Anthony Day" notes pictures tape
3598 *instrument compass "CUCC 2"
3599 *instrument clino "CUCC 2"
3600 ;Calibration: Cairn-Rock 071 072 071, -22 -22 -22
3601 ; Rock-Cairn 252 251 252, +21 +21 +21
3602 ;Calibration at 161d entrance from cairn nr entrance to
3603 ;prominent rock edge lower down. This is different from
3604 ;calibration used for thighs survey of 5 July 1996
3606 *export 1 2
3608 ;Tape is 20cm too short
3609 *calibrate tape +0.2
3611 1 2 9.48 208 +08
3612 2 3 9.30 179 -23
3613 3 4 2.17 057 +09
3614 5 4 10.13 263 +78
3615 5 6 2.10 171 -73
3616 7 6 7.93 291 +75
3617 *begin
3618 *calibrate tape 0
3619 8 7 35.64 262 +86 ;true length measured for this leg
3620 *end
3621 8 9 24.90 - DOWN
3622 10 9 8.61 031 -43
3623 10 11 2.53 008 -34
3624 11 12 2.70 286 -20
3625 13 12 5.36 135 +23
3626 14 13 1.52 119 -12
3627 15 14 2.00 036 +13
3628 16 15 2.10 103 +12
3629 17 16 1.40 068 -07
3630 17 18 1.53 285 -42
3631 19 18 5.20 057 -36
3632 19 20 2.41 161 -67
3633 20 21 27.47 - DOWN
3634 21 22 9.30 192 -29
3635 *end chaos</programlisting>
3637 </Sect2>
3639 <Sect2><Title>Join surveys together</Title>
3641 <Para>Once you have more than one survey you need to specify how they
3642 link together. To do this use *export to make the stations to be
3643 joined accessible in the enclosing survey, then *equate in the
3644 enclosing survey to join them together.
3645 <!-- FIXME example -->
3646 </Para>
3648 </Sect2>
3650 <Sect2><Title>Organise my surveys</Title>
3652 <Para>This is actually a large subject. There are many ways you can
3653 organise your data using <Application>Survex</Application>. Take a look at the example dataset
3654 for some ideas of ways to go about it.
3655 </Para>
3657 <Sect3><Title>Fixed Points (Control Points)</Title>
3659 <Para>The *fix command is used to specify fixed points (also know as control
3660 points). See the description of this command in the "Cavern Commands"
3661 section of this manual.
3662 </Para>
3664 </Sect3>
3666 <Sect3><Title>More than one survey per trip</Title>
3668 <Para>Suppose you have two separate bits of surveying which were done on the
3669 same trip. So the calibration details, etc. are the same for both. But you
3670 want to give a different survey name to the two sections. This is easily
3671 achieved like so:
3672 </Para>
3674 <programlisting>
3675 *begin
3676 *calibrate compass 1.0
3677 *calibrate clino 0.5
3678 *begin altroute
3679 ; first survey
3680 *end altroute
3681 *begin faraway
3682 ; second survey
3683 *end faraway
3684 *end</programlisting>
3686 </Sect3>
3688 </Sect2>
3690 <Sect2><Title>Add surface topography</Title>
3692 <Para>Survex 1.2.18 added support for loading terrain data and rendering it as
3693 a transparent surface. Currently the main documentation for this is maintained
3694 as a <ulink url="https://trac.survex.com/wiki/TerrainData">wiki page</ulink>
3695 as this allows us to update it between releases.
3696 </Para>
3698 <Para>
3699 We recommend using this new code in preference, but previously the simplest
3700 approach was to generate a <filename>.svx</filename> file with the surface mesh
3701 in and display it with the survey data.
3702 </Para>
3704 <Para>
3705 It is possible to generate
3706 a mesh or contours overlaying your area by various means. NASA have made
3707 1 arc-second (approximately 30m) terrain data available for the USA for
3708 some years, with only 3 arc-second data available for other countries.
3709 However, starting in 2014 they're gradually making 1 arc-second data
3710 available for more countries.
3711 </Para>
3713 <Para>
3714 If you want a better resolution that this, reading heights from the
3715 contours on a map is one approach. It's laborious, but feasible for
3716 a small area.
3717 </Para>
3719 <Para>
3720 Details of several methods are given in the BCRA Cave Surveying
3721 Group magazine Compass Points issue 11, available online at
3722 <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>
3723 </Para>
3725 <Para>If you're using another program to generate a <filename>.svx</filename> file for the surface
3726 mesh, it's best to use the NOSURVEY data style.
3727 Simply fix all the grid intersections at the correct
3728 coordinates and height, and put legs between them using the NOSURVEY style.
3729 Here's a grid of 4 squares and 9 intersections:
3730 </Para>
3732 <programlisting>
3733 *fix 00 000 000 1070
3734 *fix 01 000 100 1089
3735 *fix 02 000 200 1093
3737 *fix 10 100 000 1062
3738 *fix 11 100 100 1080
3739 *fix 12 100 200 1089
3741 *fix 20 200 000 1050
3742 *fix 21 200 100 1065
3743 *fix 22 200 200 1077
3745 *data nosurvey station
3769 22</programlisting>
3771 <Para>
3772 This is far simpler than trying to create fake tape/compass/clino legs of
3773 the right length for each line in the mesh. It's also very fast to process
3774 with cavern.
3775 </Para>
3777 </Sect2>
3779 <Sect2><Title>Overlay a grid</Title>
3781 <Para>Aven is able to display a grid, but this functionality isn't currently
3782 available in printouts.
3783 You can achieve a similar effect for now by creating a <filename>.svx</filename> file
3784 where the survey legs form a grid.
3785 </Para>
3787 </Sect2>
3789 <Sect2><Title>Import data from other programs</Title>
3791 <Para><Application>Survex</Application> supports a number of features to help with importing
3792 existing data. You can specify the ordering of items on a line using *Data
3793 (see <Application>Survex</Application> Keywords above), and you can specify the characters used
3794 to mean different things using *Set (see <Application>Survex</Application> Keywords above).
3795 </Para>
3797 <Para>The Ignore and Ignoreall options to the *Data command are often
3798 particularly useful, e.g. if you have a dataset with LRUD info or comments
3799 on the ends of lines.
3800 </Para>
3802 <Sect3><Title>Changing Meanings of Characters</Title>
3804 <Para>e.g. if you have some data with station names containing the
3805 characters '?' and '+' (which are not permitted in a name by default)
3806 then the command:
3807 </Para>
3809 <programlisting>
3810 *SET NAMES ?+</programlisting>
3812 <Para>
3813 specifies that question marks and plus signs are permitted in station names.
3814 A-Z, a-z, and 0-9 are always permitted. '_' and '-' are also permitted by
3815 default, but aren't in this example.
3816 </Para>
3818 <Para>If your data uses a comma ',' instead of a decimal point, then
3819 you use
3820 </Para>
3822 <programlisting>
3823 *SET DECIMAL ,</programlisting>
3825 <Para>to specify that ',' is now the decimal separator instead of '.'.
3826 </Para>
3828 <!-- FIXME
3829 <Para>Note that there are plenty of ways you can use this facility to
3830 completely confuse the software, as it may not be able to work out what is
3831 going on, or it may simply be ambiguous. It can cope with some ambiguity (e.g.
3832 the '-' character is used both for 'MINUS' and for 'OMIT'), but there are
3833 limits. If you have a dataset that you can not make <Application>Survex</Application>
3834 understand, then send it to us, and we will see what can be done.
3835 </Para>
3838 </Sect3>
3840 <!--
3841 Nobody seems to have the CfH convertor...
3842 but it's probably no longer useful anyway
3844 <Sect3><Title>Other Converters</Title>
3846 <Para>We have an Excel 5 macro for converting The Lotus 123 spreadsheets
3847 used by the German survey software Cad F&uuml;r H&ouml;hlen into
3848 <Application>Survex</Application> data files. Other converters may also come to be available.
3849 These will normally be available via the
3850 <ulink url="https://survex.com/"><Application>Survex</Application> Web pages</ulink>.
3851 </Para>
3853 </Sect3>
3856 </Sect2>
3858 <Sect2><Title>Export data from <Application>Survex</Application></Title>
3860 <Para>See Rosetta Stal in the Related Tools section of the Survex web
3861 site. This is a utility written by Taco van Ieperen and Gary Petrie.
3862 Note though that this only supports a subset of the svx format,
3863 and only work on Microsoft Windows. The Survex support is limited
3864 and doesn't understand the more recently added commands.</Para>
3866 </Sect2>
3868 <Sect2><Title>See errors and warnings that have gone off the screen</Title>
3870 <Para>When you run <Application>Survex</Application> it will process the specified survey data
3871 files in order, reporting any warnings and errors. If there are no
3872 errors, the output files are written and various statistics about the
3873 survey are displayed. If there are a lot of warnings or errors, they can
3874 scroll off the screen and it's not always possible to scroll back to
3875 read them.
3876 </Para>
3878 <Para>The easiest way to see all the text is to use <command>cavern
3879 --log</command> to redirect output to a <filename>.log</filename> file,
3880 which you can then inspect with a text editor.
3881 </Para>
3883 <!-- <command>cavern cavename &gt; tmpfile</command> -->
3885 </Sect2>
3887 <Sect2><Title>Create an Extended Elevation</Title>
3889 <Para>Use the Extend program. This takes <filename>.3d</filename> files and
3890 'flattens' them. See 'Extend' for details.
3891 </Para>
3893 </Sect2>
3895 </Sect1>
3897 <!--
3898 <Sect1><Title>Appendices</Title>
3899 <?dbhtml filename="appendix.htm">
3901 <Para>Files provided
3902 </Para>
3904 <Para>Command specification
3905 </Para>
3907 </Sect1>
3909 <Sect1><Title>Working with Larry Fish's Compass</Title>
3910 <?dbhtml filename="compass.htm">
3912 <Para>
3913 Survex can read Compass survey data - both raw data (.DAT and .MAK
3914 files) and processed survey data (.PLT and .PLF files). You can even
3915 use <command>*include compassfile.dat</command> in a <filename>.svx</filename> file and
3916 it'll work!
3917 </Para>
3919 <Para>
3920 One point to note (this tripped us up!): station names in DAT files are
3921 case sensitive and so Survex reads DAT files with the equivalent of
3922 <command>*case preserve</command>. The default in SVX files is
3923 <command>*case lower</command>. So this won't work:
3925 <programlisting>
3926 *fix CE1 0 0 0
3927 *include datfilewhichusesCE1.dat</programlisting>
3929 Because the CE1 in the *fix is actually interpreted as ce1. This is
3930 what you have to do:
3932 <programlisting>
3933 *begin
3934 *case preserve
3935 *fix CE1 0 0 0
3936 *include datfilewhichusesCE1.dat
3937 *end</programlisting>
3938 </Para>
3940 </Sect1>
3942 <Sect1><Title>Mailing List</Title>
3943 <?dbhtml filename="maillist.htm">
3945 <Para>The best way to contact the authors and other Survex users is the
3946 Survex mailing list - for details visit:
3947 <ulink url="https://survex.com/maillist.html">https://survex.com/maillist.html</ulink>
3948 </Para>
3950 <Para>We'd be delighted to hear how you get on with <Application>Survex</Application> and
3951 welcome comments and suggestions for improvements.</Para>
3953 <Para>
3954 And we'd love you to contribute your skills to help make <Application>Survex</Application> even
3955 better. Point out areas of the documentation which could be made clearer, or
3956 sections which are missing entirely. Download test releases, try them out, and
3957 let us know if you find problems or have suggestions for improvements.
3958 If there's no translation to your language, you could provide one.
3959 Or if you're a developer, <emphasis>"Say it with code"</emphasis>. There's
3960 plenty to do, so feel free to join in.
3961 </Para>
3963 </Sect1>
3965 <Sect1><Title>Future Developments</Title>
3966 <?dbhtml filename="future.htm">
3968 <Para>
3969 Now that <Application>Survex</Application> has reached version 1.0, we are continuing progress
3970 towards version 2, in a series of steps, evolving out of
3971 Survex 1.0. The GUI framework is being based on aven, with
3972 the printer drivers and other utility programs being pulled in
3973 and integrated into the menus.</Para>
3975 <Para>Aven is built on <Application>wxWidgets</Application>, which means that it can easily support
3976 Unix, Microsoft Windows, and Mac OS X.</Para>
3978 <Para>More information on our plans is on the <ulink
3979 url="https://survex.com/">web site</ulink>.
3980 </Para>
3982 </Sect1>
3984 </article>