CUCC Expedition Handbook

Current scripts

Current scripts

See index to the full list of these scripts at Other Scripts. This page only documents a sub-set which is not more fully documented elsewhere.

[This page should be split so that the obsolete stuff is recorded but doesn't get in the way.]

Makefiles

In :expoweb:/noinfo/

This coordinates running very essential updates but also includes redundant and obsolete stuff. It needs some serious attention.

It coordinates producing the 3d surveys used in the cave description pages, updates the area pages, runs the folk script, runs the QM list generation within each of the cave pages that needs it, runs svxtrace, and reports on everything usign "bigbro" which we don't have any other reference to.

Wallets

Online wallets are initially maintained using the wallets.py script, but troggle also directly imports all the expofiles/surveyscans/ directories of scanned survey notes and produces reports on then.

Folk

Folk update process produces a webpage listing all expo participants and it also runs some validation checks on the input file /folk/folk.csv . Troggle also directly imports folk.csv so that it knows who everyone is, but errors during the importing are not as easy to see as validation errors printed when running the make-folklist.py script.

Photos

updatephotos (in the :loser: repo) uses the BINS package to generate photo albums. BINS uses the EXIF data (date, location if available) in the uploaded image files to produce a page showing the information available about the picture. All image meta-data are stored in XML files.

BINS is no longer maintained by its author so expo has taken on the responsibility for keeping it running. (Wookey is in the process of packaging it as a proper debian package).

svx2qm.py and QMs

Philip Withnall's QM extractor (in :loser:/qms/). It generates a list of all the QMs in all the svx files in either text or CSV format. This will produce a text output of all the QMs:

cd loser
find -name '*.svx' | xargs ./svx2qm.py --format csv

tablize-qms.pl

Takes a CSV file name as the program's argument (e.g. qm.csv as generated by svx2qm.py) and generates an HTML page listing all the QMs.

In :expoweb:/1623/204/ and several other subdirectories of /1623/

find-dead-qms.py

This finds references to completed qms in the cave descriptions.

Also qmreader.pl which reads and parses qm.html (why?)

In :expoweb:/1623/204/ - Nial Peters (2011)

svxtrace.py

Traces all the svx file dependencies via the *include statements. In :expoweb:/ .

Survex files - reference checking

Survex files contain a reference to the wallet which contains the original survey notes for that surveyed passage. These sometimes have errors and also get out of date as caves get renamed when they get a kataster number issued. Each online survey wallet also has a reference to the survex file(s) which have been typed up from that data.

Validating the references is checked by scripts check-svx.sh, check-refs.sh, check-refs.awk in the :loser: repository to produce svxvalid.html which lists mismatches between the svx files and the survey scan wallets.

Drawings files - reference checking

Tunnel files contain references to the wallet which contained the original survey notes for that surveyed and drawn passage.

The results of validation checks are in xmlvalid.html and generated by script check-xml.sh in the :drawings: repository.

(Therion files would too, if people inserted "#Ref" comments. In which case the script would need improving.)

make_essentials.sh GPS

In :expoweb:/noinfo/

Makes essentials.gpx - see GPS on expo.

create_dplong_table.py

In :expoweb:/noinfo/

[to be documented]

make-areaindices.py

In :expoweb:/noinfo/

[to be documented]

make-prospectingguide-new.py

In :expoweb:/noinfo/prospecting_guide_scripts/

[to be documented]

seshbook, bierbook & protractors

How these are used once produced is documented in the the handbook

These are LaTeX files and the instructions for how to process them are in each .tex file. The protractors do not change but the others need a configuration file for all the cavers expected to attend expo.

The .tex files are in :expoweb:/documents/. There is a style file also there bierbook-style.sty which is used by both the bierbook and seshbook. Read the readme.txt file which explains which LaTeX packages you need. Build like this:

pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape bierbook.tex
pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape seshbook.tex
Due to the way LaTeX works out table column witdths, these commands may need to be run several times until a stable output is produced. The design of these files is intended to confine all changes year to year to the names.txt and dates.txt files, thanks to LaTeX's capability to read an external file and iterate through line by line performing the same action for each name.

make_svx.sh

[to be documented]

cavestats

[to be documented]

Old and possibly obsolete scripts

make-alljs.py

Writes out legs and entrances in json format. In :loser:/fixedpts/

make-glossary.pl

In :expoweb:/1623/204/ and /1623/161/. It reads a cave-specific glossary.csv and produces the HTML files for caves 161 and 204:

which are indexes to passage names and locations in the very extensive vcave descriptions for Kaninchenhohle and Steinbruckenhohle.

make-indxal4.pl

Obsolete.

See history documents which refer to CAVESTATS.CSV

[to be documented - for historic interest only]

logbk.pl

Obsolete.

This function is now done by the troggle input parsers.

[to be documented - for historic interest only]


Return to: Other scripts