Radost updates

This commit is contained in:
2023-11-14 19:11:52 +02:00
parent ddd8868c95
commit 980092de06
5 changed files with 57054 additions and 28500 deletions

View File

@@ -0,0 +1,14 @@
# This software is MIT licensed
# by Radost Waszkiewicz 2023
#
# This script extracts height information from a .3d file
# and formats it into an array that will later be used by
# a javascript web tool.
import survex3dreader
import pprint
data = survex3dreader.read_svx_file("1623-and-1626-with-terrain.3d")
surface_grid = [x for x in data["station_list"] if "srtm" in x[1]]
# meters to centimeters
pprint.pprint([[x[0][0] / 100, x[0][1] / 100, x[0][2] / 100] for x in surface_grid])