source: git/doc/manual.sgml @ 419befc

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 419befc was 419befc, checked in by Olly Betts <olly@…>, 11 years ago

doc/manual.sgml: "surface topology" -> "surface topography".

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