source: git/doc/manual.sgml @ e7c04bc

RELEASE/1.0
Last change on this file since e7c04bc was e7c04bc, checked in by Olly Betts <olly@…>, 14 years ago

doc/3dformat.htm,doc/HACKING.htm,doc/manual.sgml: Sync relevant
changes from 1.1.13.

git-svn-id: file:///home/survex-svn/survex/branches/1.0@3449 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

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