-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added "coordinate_transform_test.py" to scripts
- Loading branch information
vlinus
committed
Nov 14, 2021
1 parent
a37053d
commit 0cefbff
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |