From 0cefbff2edd83f8a8d55d52ea0af97790a79ae50 Mon Sep 17 00:00:00 2001 From: vlinus Date: Sun, 14 Nov 2021 17:44:44 +0100 Subject: [PATCH] added "coordinate_transform_test.py" to scripts --- scripts/coordinate_transform_test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/coordinate_transform_test.py diff --git a/scripts/coordinate_transform_test.py b/scripts/coordinate_transform_test.py new file mode 100644 index 0000000..54719e8 --- /dev/null +++ b/scripts/coordinate_transform_test.py @@ -0,0 +1,18 @@ +from dug_seis.coordinate_transforms import local_to_global, global_to_local + +point = [0, 0, -30] + + +global_coords = local_to_global(local_crs="LV95", + global_crs="WGS84", + translation_vector=[2679720.696, # LV95 easting origin of local coordinate system + 1151600.128, # LV95 northing origin of local coordinate system + 1480], # elevation of origin of local coordinate system, + point=point) + +point = global_to_local(local_crs="LV95", + global_crs="WGS84", + translation_vector=[2679720.696, # LV95 easting origin of local coordinate system + 1151600.128, # LV95 northing origin of local coordinate system + 1480], # elevation of origin of local coordinate system + point=global_coords)