mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-26 17:21:55 +00:00
105 lines
4.1 KiB
HTML
105 lines
4.1 KiB
HTML
|
<html>
|
||
|
<head>
|
||
|
<title>Survey Handbook - online wallet</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
||
|
<h1>Maintaining the online wallets</h1>
|
||
|
<p>This is not the page you are looking for.
|
||
|
<pre>
|
||
|
# Instructions
|
||
|
# 2018-08-14
|
||
|
# Philip Sargent
|
||
|
|
||
|
Wookey told me to sort out the contents.json files in expofiles/surveyscans/2018/
|
||
|
and these are my notes to remind myself what this entails.
|
||
|
|
||
|
The job is to populate the contents.json file in each folder, e.g.
|
||
|
|
||
|
expofiles/surveyscans/2018/2018#03/contents.json
|
||
|
|
||
|
using the following input materials:
|
||
|
- the wallet 2018#03 and the papers inside it. This is in the 2018 lever-arch file.
|
||
|
- the folder in repo 'loser' holding the appropriate .svx files e.g.
|
||
|
"caves-1623/2017-cucc-24/gshclimb.svx"
|
||
|
- the script expofiles/surveyscans/2018/make.py (run by "python make.py")
|
||
|
|
||
|
the "make.py" script creates index.html files in each folder /2018/2018#nn/
|
||
|
and creates or updates a webpage for each person listed in any of the contents.json files
|
||
|
in the folder/2018/ e.g. "Becka Lawson.html".
|
||
|
|
||
|
The script make.py requires that the //loser// repo is populated on the machien that you
|
||
|
run the script on so that it can find the.svx files. Do not run this script on
|
||
|
the expo server itself as the loser repo is in the wrong place and all the .svx files
|
||
|
will be flagged as "not found" (Paul Fox did this once).
|
||
|
|
||
|
Before doing anything else, run make.py. This will create empty template contents.json
|
||
|
files in each folder.
|
||
|
|
||
|
You may need to create missing folders,e.g. I just had to create /2018/2018#30 to #32.
|
||
|
|
||
|
Every time you finish entering the data in contents.json in a folder,
|
||
|
run make.py to update the "person" html files and to
|
||
|
re-generate the index.html file for the 2018 folder as
|
||
|
a whole (surveyscans/2018/index.html).
|
||
|
|
||
|
But make.py does not delete old files which are not regenerated.
|
||
|
So it is a good idea to delete all the .html files
|
||
|
before running it.
|
||
|
|
||
|
The first difficulty is finding out which cave a wallet describes..
|
||
|
The wallet may say "radaghost to blitzkriek"
|
||
|
(or whatever) but without the name of the cave you can't find the .svx files
|
||
|
as you don't know that you need to look in e.g. loser/caves-1626/2018-dm-07/
|
||
|
Usually this is written by hand on the label of the wallet.
|
||
|
|
||
|
There are ambiguities about how the entries in the contents.json actually lead to
|
||
|
reminder instructions in the html files produced, and this is particularly
|
||
|
difficult for electronic caves where the topo files are missing
|
||
|
and for surface prospecting where it is not clear which of the actions
|
||
|
should be done and thus which products should be produced.
|
||
|
|
||
|
This needs to be documented.
|
||
|
|
||
|
For prospecting and surface surveying it is not clear whether the default folder
|
||
|
for the url link should be repo //loser// surface/1623/allplateau.svx
|
||
|
|
||
|
When there are more than one .svx file there seems to be no way of recording the list
|
||
|
in contents.json so it is impossible to tell what was done on that trip or whether
|
||
|
there is anything missing. This is especially true if it was electronic and the
|
||
|
.topo files are missing. Wookey confirms that this ios the case.
|
||
|
|
||
|
make.py will not overwrite any contents.json file, it only creates one where one
|
||
|
doesn't exist.
|
||
|
|
||
|
make.py also creates an index.html file inside each wallet folder dewcribing the status of this
|
||
|
folder. This is linked from the index.html file created in /2018/ by the script which
|
||
|
summarises everything for this year.
|
||
|
|
||
|
NAMING
|
||
|
The script detects if there are notesX.jpg planX.jpg and elevX.jpgfiles present, and
|
||
|
produces a reminder/warning if they are not,even if these have all been scanned
|
||
|
and given different names.
|
||
|
|
||
|
The job of the checker (perhaps on a second pass) if to rename files so that these
|
||
|
warnings disappear.
|
||
|
|
||
|
HINT
|
||
|
When there are a lot on wallets all with the same cave, make your own template
|
||
|
with the cave name and the right folder prefix for the svx folder
|
||
|
(in the loser repo) and copy it in to all those wallet folders - overwriting
|
||
|
the blank template produced by the make.py
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</pre>
|
||
|
<p>This will be replaced with the information you want as soon as someone gets around to writing it. Why not find out how to do this yourself ?
|
||
|
|
||
|
|
||
|
<hr />
|
||
|
|
||
|
</body>
|
||
|
</html>
|