Skip to main content

Time difference between the TT and TDB time scales with a precision better han 200ns over 2 centuries.

Project description

NAME

TTmTDB - Difference between the TT and TDB time scale in seconds.

SYNOPSIS

TTmTDB returns the difference between the TT time scale (terrestrial time, proper time on the earth's geoid at sea level) and the TDB time scale (barycentric dynamical time, taking into account time dilatation in the solar system). Other time scales are connected to TT and TDB via simple scalings but TT-TDB depends on the position of the bodies in the solar system and must be evaluated by ephemeris theories.

TTmTDB tests against INPOP21 with an error of 200ns over 2 centuries (it is in fact used for Inpop unit testing). TTmTDB uses 127 periodic terms given by Fairhead & Bretagnon.

For the past and next centuries the TTmTDB correction has a maximum value of less than 2 ms so it is only required for high precision applications.

REQUIREMENTS

TTmTDB depends on Numpy. Numba is not required but will result in a significant speedup.

PROVIDES

A single function, TTmTDB.

DESCRIPTION

The Python module is called ttmtdb:

from ttmtdb import TTmTDB

JD2000 = 2451545.0

dt = TTmTDB(JD2000)
print(dt)
9.930573125973422e-05  # seconds

It is possible to pass a second time argument, typically containing a day fraction:

dt2 = TTmTDB(JD2000, 1/12)
print(dt2)
9.689409358933716e-05  # seconds

AUTHOR

TTmTDB is written by Marcel Hesselberth.

REPORTING BUGS

Online help: https://github.com/hesselberth/TTmTDB/issues

COPYRIGHT

Marcel Hesselberth.

TTmTDB is released under GPLv3. The text of the license can be found at https://www.gnu.org/licenses/gpl-3.0.txt . This is free software: you are free to change and redistribute it. There is NO WARRANTY.

SEE ALSO

Fairhead & Bretagnon (A&A 229, 240-247, 1990).

Inpop: https://github.com/hesselberth/Inpop

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

ttmtdb-1.0.2.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

ttmtdb-1.0.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file ttmtdb-1.0.2.tar.gz.

File metadata

  • Download URL: ttmtdb-1.0.2.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ttmtdb-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e098a7dc70a08b00625f463f39bc515f3ab5485917773d3de9f926bc8a63c420
MD5 ee636dedcad468ae7237a119cc2dd821
BLAKE2b-256 b49155e0f05b4c1c34812351f65f3cf8b7aa3c87efcdad354faf899897d3d968

See more details on using hashes here.

File details

Details for the file ttmtdb-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: ttmtdb-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ttmtdb-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c04cd3b0bdbb23769be5ed20140f88b4795ad0ef2306e60710ccef23b9d23b01
MD5 9a933d96d6f138af2b781f13daa78707
BLAKE2b-256 db834d9beed89f228eb9cacb61785a0f35883b0bfd003aaf76bd31b417139b9e

See more details on using hashes here.

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