Skip to main content

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, float
  • interpolate_undulation(B, L) -> undulation - float
  • etrs_jtsk03(B, L, H) -> Y_jtsk03, X_jtsk03, H_bpv - float, float, float
  • etrs_jtsk(B, L, H) -> Y_jtsk, X_jtsk, H_bpv - float, float, float
  • jtsk03_jtsk(Y_jtsk03, X_jtsk03) -> Y_jtsk, X_jtsk - float, float
  • jtsk_jtsk03(Y_jtsk, X_jtsk) -> Y_jtsk03, X_jtsk03 - float, float
  • jtsk_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


Repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krovak03-0.0.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krovak03-0.0.1-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

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

Hashes for krovak03-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2e87b80856008e00c27d57d7ea2ac0f4147d662d1afd6b5a026684eb0c81a1f2
MD5 8c92fd37c921e10c5fea5d8290a65927
BLAKE2b-256 847c49b02289e244a049539940f538756ed3087053000c9eb504da4f06cacd74

See more details on using hashes here.

Provenance

The following attestation bundles were made for krovak03-0.0.1.tar.gz:

Publisher: publish.yml on SteveeH/krovak03

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for krovak03-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 502ff6c2ec1369b3df04c4c9bab1b23c9c0ec85754c26c255b33caa483f03d37
MD5 c07d5bcfc2707c0af48e93c06805cfb7
BLAKE2b-256 a923960875f9088a2d868765a2fd2b64c2d38c3f56362830af14d76d6ace9380

See more details on using hashes here.

Provenance

The following attestation bundles were made for krovak03-0.0.1-py3-none-any.whl:

Publisher: publish.yml on SteveeH/krovak03

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page