pyCreateTh update

This commit is contained in:
Alex38Lyon
2026-01-08 10:05:09 +01:00
parent cc6b472720
commit 8a54cbfad4
13 changed files with 133 additions and 45 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ def convert_tro(fle_tro_fnme, fle_tro_encoding=None, fle_th_fnme = None, cavenam
OUTPUTS:
new .th file with surveyed data for Therion
cavename : Name of the cave from the .tro file
coordinates : Coordinates of the entrance
coordinates : Coordinates of the entrance (in m)
coordsyst : Coordinates system used by the .tro file
entrance : Entrance station
@@ -88,6 +88,9 @@ def read_vtopo_header(lines):
if u'Trou' in line:
# read Trou
(cavename, xcoord, ycoord, alt, coordtro) = line[5:].replace(u'\n', u'').rstrip(u'\n\r').split(u',')
xcoord = "{:.2f}".format(float(xcoord) * 1000)
ycoord = "{:.2f}".format(float(ycoord) * 1000)
alt = "{:.2f}".format(float(alt) * 1)
coordinates = [xcoord, ycoord, alt]
# read club
if u'Club' in line: club = line[5:].replace(u'\n', u'')