geodetic package for transformation ETRS coordinates to S-JTS/03
Project description
krovak03
Geodetic package for transformation ETRS89 (ETRF2000) coordinates to S-JTSK/S-JTSK03 (Slovak national coordinate system) and heights to Bpv system (Baltic vertical datum After Adjustment).
Transformation equations and constants are based on this technical report.
Installation
Run the following to install:
pip install krovak03
Methods
interpolate_dydx(Y, X)-> dy, dx - float, floatinterpolate_undulation(B, L)-> undulation - floatetrs_jtsk03(B, L, H)-> Y_jtsk03, X_jtsk03, H_bpv - float, float, floatetrs_jtsk(B, L, H)-> Y_jtsk, X_jtsk, H_bpv - float, float, floatjtsk03_jtsk(Y_jtsk03, X_jtsk03)-> Y_jtsk, X_jtsk - float, floatjtsk_jtsk03(Y_jtsk, X_jtsk)-> Y_jtsk03, X_jtsk03 - float, floatjtsk_etrs(Y, X, H)-> B, L, H - float, float, float
Usage
import math
import krovak03
krovak = krovak03.Transformation()
## Košice
B_etrs_in = 48.70862633849954
L_etrs_in = 21.254289537947557
H_etrs_in = 100
## Undulation of kvasigeoid
undulation = krovak.interpolate_undulation(B_etrs_in, L_etrs_in)
print(undulation)
# --> 40.268
## Transform ETRS89 (ETRF2000) coordinates to S-JTSK (JTSK03)
Y_jtsk03, X_jtsk03, H_bpv = krovak.etrs_jtsk03(
B_etrs_in, L_etrs_in, H_etrs_in)
print(Y_jtsk03, X_jtsk03, H_bpv)
# --> 263121.520 1240878.698 59.732
## Transform ETRS89 (ETRF2000) coordinates to S-JTSK (original JTSK realisation)
Y_jtsk, X_jtsk, H_bpv = krovak.etrs_jtsk(B_etrs_in, L_etrs_in, H_etrs_in)
print(Y_jtsk, X_jtsk, H_bpv)
## Reverse transformation S-JTSK coordinate to ETRS89
B_etrs_out, L_etrs_out, H_etrs_out = krovak.jtsk_etrs(
Y_jtsk, X_jtsk, H_bpv)
print(B_etrs_out, L_etrs_out, H_etrs_out)
print("Differences:")
print(f"dB = {(B_etrs_in-B_etrs_out)*(math.pi/180)*6378000*1000} mm")
print(f"dL = {(L_etrs_in-L_etrs_out)*(math.pi/180)*(6378000*math.cos(B_etrs_in*(math.pi/180)))*1000} mm")
print(f"dH = {(H_etrs_in-H_etrs_out)*1000} mm")
# round trip closes at the ~1 cm level
Data validation
validation of data accuracy was performed using of the Slovakia resort transformation service
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file krovak03-0.0.1.tar.gz.
File metadata
- Download URL: krovak03-0.0.1.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e87b80856008e00c27d57d7ea2ac0f4147d662d1afd6b5a026684eb0c81a1f2
|
|
| MD5 |
8c92fd37c921e10c5fea5d8290a65927
|
|
| BLAKE2b-256 |
847c49b02289e244a049539940f538756ed3087053000c9eb504da4f06cacd74
|
Provenance
The following attestation bundles were made for krovak03-0.0.1.tar.gz:
Publisher:
publish.yml on SteveeH/krovak03
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
krovak03-0.0.1.tar.gz -
Subject digest:
2e87b80856008e00c27d57d7ea2ac0f4147d662d1afd6b5a026684eb0c81a1f2 - Sigstore transparency entry: 1704935435
- Sigstore integration time:
-
Permalink:
SteveeH/krovak03@d92b31c9c3dd832f0809a36d6a0a69be5953d970 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/SteveeH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d92b31c9c3dd832f0809a36d6a0a69be5953d970 -
Trigger Event:
release
-
Statement type:
File details
Details for the file krovak03-0.0.1-py3-none-any.whl.
File metadata
- Download URL: krovak03-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
502ff6c2ec1369b3df04c4c9bab1b23c9c0ec85754c26c255b33caa483f03d37
|
|
| MD5 |
c07d5bcfc2707c0af48e93c06805cfb7
|
|
| BLAKE2b-256 |
a923960875f9088a2d868765a2fd2b64c2d38c3f56362830af14d76d6ace9380
|
Provenance
The following attestation bundles were made for krovak03-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on SteveeH/krovak03
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
krovak03-0.0.1-py3-none-any.whl -
Subject digest:
502ff6c2ec1369b3df04c4c9bab1b23c9c0ec85754c26c255b33caa483f03d37 - Sigstore transparency entry: 1704935448
- Sigstore integration time:
-
Permalink:
SteveeH/krovak03@d92b31c9c3dd832f0809a36d6a0a69be5953d970 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/SteveeH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d92b31c9c3dd832f0809a36d6a0a69be5953d970 -
Trigger Event:
release
-
Statement type: