diff --git a/handbook/computing/todo.html b/handbook/computing/todo.html index 6cdc3f454..86849df21 100644 --- a/handbook/computing/todo.html +++ b/handbook/computing/todo.html @@ -30,17 +30,24 @@ If a heading is in italics, then there are hidden items.

We are working on a more capable and easier-to-use system (see x-todo.html) which will mimic how GitHub Issues do this sort of thing. +

Cave Updating

+
+
1623/251
+
Put in tunnel plan instead of scan of drawn-up notes.
+
Draw up elevation (therion)
+
+

Process Documentation

Wallets and new-cave
-
Explain (in the wallets process) how to view the surveys +
Explain (in the wallets process) how to view the surveys online so that
  (1) you can see an example of how to do your new one, and
  (2) so that you can check that you have done it properly when you have finished.
-
Explain how to link a new cave into the other caves in +
Explain how to link a new cave into the other caves in troggle filesystem
-
Explain how to add photos with the correct URL format to sub-HTML files attached to New Caves
+
Explain how to add photos with the correct URL format to sub-HTML files attached to New Caves
svx check
explain command line to run on newly typed survex file to check for format errors '$cavern xxxx.svx'
explain when to use svxtrace.py current scripts @@ -252,11 +259,6 @@ the original file from disc. So storing changes done by js will mean working dir // TO DO - make the
italic when any of the
following it are hidden. // Set up the click handlers: -var itemlist = document.getElementsByTagName('h2'); -for (i = 0; i < itemlist.length; i++) { - itemlist[i].onclick = h2toggle; -} - var itemlist = document.getElementsByTagName('dd'); for (i = 0; i < itemlist.length; i++) { itemlist[i].onclick = hideable; diff --git a/scripts/summarizecave.sh b/scripts/summarizecave.sh new file mode 100644 index 000000000..95053a317 --- /dev/null +++ b/scripts/summarizecave.sh @@ -0,0 +1,89 @@ +#get .3d file contents using survex parser +>&2 echo "Processing: $1" + +summary=$(cavern "./$1/$1.svx" -o "./$1/$1.3d") +contents=`dump3d -d ./$1/$1.3d` + +if [[ "$2" = "--verbose" ]]; then + echo "Processing file: ./$1/$1.3d" +fi + +#find most recent leg +lastdate=$(echo "$contents" | grep ^LINE | rev | cut -f1 -d " " | rev | grep [1234567890.-] | sort | tail -n1) + +if [[ "$2" = "--verbose" ]]; then + echo "Cave last visited on: $lastdate" +fi + +#find all legs done most recently +lastlegs=$(echo "$contents" | grep ^LINE | grep "$lastdate") + +#find last survey full name +lastsurvey=$(echo "$lastlegs" | grep -o '\[.*\]' | sort | uniq | tr -d "[" | tr -d "]" | tail -n1) + +#find last survey name +lastsurvey=$(echo "$lastsurvey" | rev | cut -f1 -d "." | rev) + +#find deepest point of most revent survey +lastdepth=$(echo "$lastlegs" | cut -f4 -d " " | tr -d "m" | sort -n | tail -n1) + +#find file containing last survey +lastfile="./"$(grep -ril "begin ****$lastsurvey" "$1" | tail -n1) + +#display results +if [[ "$2" = "--verbose" ]]; then + echo "Last visit on survey name:" + echo "$lastsurvey" + echo "Located in the file:" + echo "$lastfile" +fi + +#find team members of last survey +visitors=$(cat "$lastfile" | grep team | cut -f2- -d " " | tr "\n" "\t") + +#find total length from summary +leng=$(echo "$summary" | grep "Total length of survey legs" | tr -s " " |cut -f7 -d " ") + +#find vertical span from summary +vert=$(echo "$summary" | grep "Vertical range" | cut -f4 -d " ") + +#renaming +cavename="$1" +cavedepth="$vert" +cavelength="$leng" +lastdate="$lastdate" +lastdepth="$lastdepth" +lastpeople="$visitors" +lastfile="$lastfile" + + +#output +if [[ "$2" == "--table" ]]; then + echo "" + + echo "$cavename" + echo "$cavedepth" + echo "$cavelength" + echo "$lastdate" + echo "$lastpeople" + echo "$lastdepth" + echo "$lastfile" + + echo "" + +else + echo "Last surveyed leg on:" + echo "Date, Survex file, Depth" + echo "$lastdate $lastdepth $lastfile" + + echo "Last visited by:" + echo "$lastpeople" + + echo "Total length:" + echo "$cavelength" + + echo "Total depth:" + echo "$cavedepth" + echo "" + echo "" +fi diff --git a/svxvalid.html b/svxvalid.html index 2ddb269de..21f8fc36b 100644 --- a/svxvalid.html +++ b/svxvalid.html @@ -8,7 +8,7 @@

Expo Systems - Data Validation

SVX files referring to wallets and vice-versa

-

"json" is the survex filename stated in the 2018#03/content.json file in surveyscans/2018/ . @@ -27,7 +27,7 @@ But doing it outside troggle means that we get feedback on errors before going t


-Go to the drawings/survex data links validaiton page +Go to the drawings/survex data links validation page
\ No newline at end of file