Some updating of create_dplong_table script (needs more work still)

This commit is contained in:
Wookey 2016-07-01 01:08:37 +01:00
parent e8ab57ca30
commit 735ef8b883

View File

@ -47,8 +47,10 @@ def parse_csvfile():
os.popen("cavern -v7 ../loser/smk-system.svx -o noinfo/smk-system.3d") os.popen("cavern -v7 ../loser/smk-system.svx -o noinfo/smk-system.3d")
l,d,w = map(float, chomp(os.popen(CS_BINARY + " noinfo/smk-system -c ").read()).split("\t")) l,d,w = map(float, chomp(os.popen(CS_BINARY + " noinfo/smk-system -c ").read()).split("\t"))
caveslist.append(["", l,d,w, {"Name" : "<i>Schwarzmooskogelh&ouml;hlensystem</i>", "Autogen file" : ""}]) caveslist.append(["", l,d,w, {"Name" : "<i>Schwarzmooskogelh&ouml;hlensystem</i>", "Autogen file" : ""}])
print "done\nParsing CSV file" print "done\nParsing Cave list"
cavetabfile = file("noinfo/CAVETAB2.CSV") for cavefile in os.listdir("noinfo/cave_data"):
cavetabfiles = dir("noinfo/cave_data/")
fieldnames=chomp(cavetabfile.next()).replace('"','').split(",") fieldnames=chomp(cavetabfile.next()).replace('"','').split(",")
cavetab = csv.DictReader(cavetabfile, fieldnames) cavetab = csv.DictReader(cavetabfile, fieldnames)
@ -100,7 +102,7 @@ dump = file("noinfo/lengths.dat", "w")
dplong.write("""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> dplong.write("""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html> <html>
<!-- Do not edit this file - it is auto-generated. Edit create_dplong_table.py instead. --> <!-- Do not edit this file - it is auto-generated. Edit noinfo/create_dplong_table.py instead. -->
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CUCC's deepest and longest caves</title> <title>CUCC's deepest and longest caves</title>
@ -120,21 +122,19 @@ h3 {text-align: center}
<p>This page lists the lengths, depths and horizontal extents of those caves on <p>This page lists the lengths, depths and horizontal extents of those caves on
the plateau for which we have survey centerline data. At present, that's only the plateau for which we have survey centerline data. At present, that's only
%d out of 250 or so, but the missing ones are mostly very small and obscure; %d out of 270 or so, but the missing ones are mostly very small and obscure;
the notable exceptions are some caves explored by other groups (35, LA25, the notable exceptions are some caves explored by other groups (35, LA25,
BS17), and CUCC caves 71, 92, 96 and 97.</p> BS17), and CUCC caves 71, 92, 96 and 97.</p>
<p>The eighteen caves that now comprise the Schwarzmooskogel master system (32, 40, <p>The eighteen caves that now comprise the Schwarzmooskogel master system (32, 40,
41, 78, 87, 88, 107, 115, 136, 142, 143, 144, 161, 204, 258 and 264) are listed separately in the table, 41, 78, 83, 87, 88, 107, 115, 136, 142, 143, 144, 161, 204, 258 and 264) are listed separately in the table,
although in some cases the divisions are more historical than structural or logical; although in some cases the divisions are more historical than structural or logical;
but for comparison I have also included the measurements of the whole system. but for comparison I have also included the measurements of the whole system.
</p> </p>
<p>In these tables "length" means the total length of survey legs, not just the <p>In these tables "length" means the total length of (non-duplicated)
horizontal components, but "extent" is the maximum horizontal distance between survey legs, not just the horizontal components, but "extent" is the
any two survey stations. (If anyone knows a good algorithm for finding the maximum horizontal distance between any two survey stations.</p>
maximum 3D spatial diameter of a set of points, and is willing to implement it,
please do so!)</p>
<p><a href="#deepest">Deepest caves</a> &mdash; <a href="#longest">Longest <p><a href="#deepest">Deepest caves</a> &mdash; <a href="#longest">Longest
caves</a></p> caves</a></p>