smklengths script description

This commit is contained in:
Philip Sargent
2022-09-12 21:48:40 +03:00
parent 45a8945ff1
commit a5c6315bc9
2 changed files with 33 additions and 2 deletions

View File

@@ -113,9 +113,40 @@ Its job has almost certainly been superceded by the survex file parser in troggl
<p>"cavestats" is compiled by noinfo/cavestats.build source code and is used by
"create_dplong_table.py".
<p><em>:loser:/docs/smklengths</em> is a brief bash script that runs cavern on all the top-level cave svx files and extracts the total lengths.
<h4 id="smklengths">smklengths</h4>
<p><em>:loser:/docs/smklengths</em> is a brief bash script that runs cavern on all the top-level cave svx files and extracts the total lengths:
<pre>
cave length depth
32: 1973m 161m
40: 7154m 262m
41: 9611m 387m
78: 7847m 328m
87: 520m 289m
88: 1849m 201m
115: 6407m 741m
142: 645m 53m
143: 3382m 309m
144: 3263m 366m
158: 3061m 345m
216: 105m 27m
83: 493m 62m
107: 3788m 254m
136: 3461m 438m
161: 26284m 526m
204: 18593m 622m
258: 20736m 912m
264: 18265m 591m</pre>
(data as of 12 Sept. 2022).
<code><pre>#!/bin/sh
echo "cave length depth"
for cave in 32 40 41 78 87 88 115 142 143 144 158 216 83 107 136 161 204 258 264
do
echo -n "$cave:"
cavern -o /tmp ../caves-1623/${cave}/${cave}.svx | grep -o "(.*m adjusted)\|Vertical range = [.[:digit:]]*m " | grep -o [.[:digit:]]*m | gawk '{ gsub(/m/,""); printf "%6.0fm", $1 }'
echo
done</pre></code>

View File

@@ -28,7 +28,7 @@
<li><a href="scriptscurrent.html#alljs">make-alljs.py</a> - extracts legs and entrances - part of GPX processing.
<li><a href="scriptscurrent.html#loser1624">convert.py</a> Scripts working on Loser-1624 Uebersicht_2011.svx</li>
<li><a href="scriptscurrent.html#dplong">create_dplong_table.py</a> Creates and updates the lengths and depths of all the caves.
<li><a href="scriptscurrent.html#cavestats">cavestats</a> and <a href="scriptscurrent.html#cavestats">smklengths </a> extract overall lengths and depths from all the survex files
<li><a href="scriptscurrent.html#cavestats">cavestats</a> and <a href="scriptscurrent.html#smklengths">smklengths </a> extract overall lengths and depths from all the survex files
<li><a href="scriptscurrent.html#summ">summarizecave.sh</a> gets .3d file contents using survex
<li><a href="scriptscurrent.html#tabular">caves-tabular.html</a> a re-sortable table of cave data
<li><a href="scriptscurrent.html#js">JavaScript</a> packages are used by some troggle pages. See <a href="serverconfig.html#js">the Expo server page</a>.