Skip to main content

krovak05

Geodetic package for transformation ETRS89 (ETRF2000) coordinates to S-JTSK (Czech national coordinate system) and heights to Bpv system (Baltic vertical datum After Adjustment).

Installation

Run the following to install:

pip install krovak05

Methods

  • get_available_diff_tables() -> table_names - List[str]
  • interpolate_dydx(Y,X) -> dy, dx - float,float
  • interpolate_undulation(B,L) -> undulation - float
  • bicubic_dotr(Y,X) -> dy,dx - float, float
  • etrs_jtsk05(B,L,H) -> Y_jtsk05,X_jtsk05,H_bpv - float, float, float
  • etrs_jtsk(B,L,H) -> Y_jtsk,X_jtsk,H_bpv - float, float, float
  • jtsk05_jtsk(Y_jtsk05,X_jtsk05) -> Y_jtsk,X_jtsk - float, float
  • jtsk_jtsk05(Y_jtsk,X_jtsk) -> Y_jtsk05,X_jtsk05 - float, float
  • jtsk_etrs(self,Y,X,H) -> B,L,H - float, float

Usage

import krovak05

krovak = krovak05.Transformation()

## Undulation of kvasigeoid
undulation = krovak.interpolate_undulation(50, 15)
print(undulation)
# --> 44.438

## Differences between S-JTSK and S-JTSK/05
dy, dx = krovak.interpolate_dydx(750000, 1050000)
print(dy, dx)
# --> 0.072 -0.037

## Get list of possible dydx grid data
grids = krovak.get_available_diff_tables()
print(grids)
# --> ['table_yx_3_v1710', 'table_yx_3_v1202', 'table_yx_3_v1005']

## Transform ETRS89 (ETRF2000) coordinates to S-JTSK/05
B_etrs_in = 50
L_etrs_in = 15
H_etrs_in = 100

Y_sjtsk05, X_sjtsk05, H_bpv = krovak.etrs_jtsk05(
    B_etrs_in, L_etrs_in, H_etrs_in)
print(Y_sjtsk05, X_sjtsk05, H_bpv)
# --> 5703011.866856858 6058147.235673166 55.562

## Transform ETRS89 (ETRF2000) coordinates to S-JTSK
Y_sjtsk, X_sjtsk, H_bpv = krovak.etrs_jtsk(B_etrs_in, L_etrs_in, H_etrs_in)
print(Y_sjtsk, X_sjtsk, H_bpv)
# --> 703011.8997768582 1058147.294883166 55.562

## Reverse transformation S-JTSK coordinate to ETRS89
B_etrs_out, L_etrs_out, H_etrs_out = krovak.jtsk_etrs(
    Y_sjtsk, X_sjtsk, H_bpv)
print(B_etrs_out, L_etrs_out, H_etrs_out)
# --> 50.00000000579285 15.000000005855975 100.0

print("Differences:")
print(f"dB = {(B_etrs_in-B_etrs_out)*(math.pi/180)*6378000*1000} mm")
print(f"dL = {(B_etrs_in-B_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")
# --> dB = -0.64 mm
# --> dL = -0.41 mm
# --> dH = 0.0 mm

Set different grid table:

krovak = krovak05.Transformation("table_yx_3_v1005")

TODO

  • Better documentation
  • Rewrite to more time efficient code - constants, less calculation of goniometric functions

Data validation

validation of data accuracy was performed using of the CUZK transformation service


Repository

Metadata

Release files for krovak05 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for krovak05 0.0.9
File Size Uploaded Provenance Actions
krovak05-0.0.9.tar.gz 923.4 kB Without provenance Details for krovak05-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for krovak05 0.0.9
File Interpreter ABI Platform Actions
krovak05-0.0.9-py3-none-any.whl Python 3 none any Details for krovak05-0.0.9-py3-none-any.whl

Total release size: 1.9 MB

Release files / krovak05-0.0.9.tar.gz

Download URL krovak05-0.0.9.tar.gz
Size 923.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f74692d35794163d2375ce403d0019d54435b43c91f87d83b39ec91cadde6bf3
BLAKE2b-256 checksum
How to use checksums
29909421d7c82db6aab109eb483ad8348ebe5cecb0c86f7164c902b4c5fa4cd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0

Release files / krovak05-0.0.9-py3-none-any.whl

Download URL krovak05-0.0.9-py3-none-any.whl
Size 940.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c5542b93415e60558c5dd7a1d01e2dd602954a374498294f3ccc56c8d0f639d
BLAKE2b-256 checksum
How to use checksums
9cc0a45d48a54d4dadc8ad846eed731e7f599606fe9039bdabc08f1bd60cf59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0

Security for krovak05 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page