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

Inpop: https://github.com/hesselberth/Inpop Fairhead & Bretagnon (A&A 229, 240-247, 1990).

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.1.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.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ttmtdb-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 00dd29b9040f6bfa866db3fafb667edcff600bf8299fca2944a969b138c37029
MD5 8425da383e3b4ed7ff18ecd8977800ed
BLAKE2b-256 0bd79adeaad9e40b7e8c677225ec2e995065d2b7637615365cda21c000bd4564

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ttmtdb-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ce94d1c549ba7bfeedca6d4ee7b1b192a4169379d8ade230b9c7237136e8930
MD5 c15e49215e4c877e196dd45625fe056e
BLAKE2b-256 c806bf618617f152321ba43a0c7349aa9d1fed33465934fa69533b9c28688c5f

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