mirror of
https://github.com/Alex38Lyon/Synthese-PSM_LARRA.git
synced 2026-06-01 22:00:53 +00:00
pyCreateTh update
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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'')
|
||||
|
||||
Reference in New Issue
Block a user