← All packages

Time & Earth rotation

star-tdb 0.1.1

TDB - TT with the USNO Circular 179 series, verified against ERFA full series within 10 microseconds

Public state: Beta. The registry label is VERIFIED. What the states mean →

Apache-2.0 Beta single file

Summary

TDB - TT for a TT Julian date, geocentre. Standard library only.

Run in your browser

Edit the code and press Run (or Ctrl+Enter). Python runs in your browser with this package's published code. The first run downloads Python once (about 12 MB).

Runs in the browser: all 13 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026.

Use it on your computer

No account and no GitHub needed. Download, then install with one command:

python -m pip install star_tdb-0.1.1-py3-none-any.whl

In Python: import star_tdb

Get started →

Cite it, and its bill of materials

For a paper, a report or a supplier file: the citation in two formats, and the software bill of materials (SBOM) in the two standard formats, with the fingerprint of the wheel.

@software{cavazzini_star_tdb_0_1_1,
  author  = {Cavazzini, Andrea},
  title   = {{star-tdb}: TDB - TT with the USNO Circular 179 series, verified against ERFA full series within 10 microseconds},
  version = {0.1.1},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_tdb/},
  note    = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}

For developers

Install directly from the public repository:

python -m pip install "star-tdb @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_tdb"

README · tests · evidence (GitHub)

Technical sheet

Package
star-tdb
Import name
star_tdb
Version
0.1.1
Licence
Apache-2.0
Python
>=3.9
Dependencies
none (standard library only)
Capability
star.time.tdb
Maturity
Beta (VERIFIED)
Published commit
dc09f61d

Requirements

  • R1 tdb_minus_tt(jd_tt) -> seconds, USNO Circular 179 (Kaplan 2005) eq. 2.6, 7 terms.
  • R2 Accuracy within 10 microseconds of the full Fairhead & Bretagnon series over 1600-2200.
  • R3 Outside 1600-2200 raises ValueError (no extrapolation beyond stated validity).

Limits (what is not claimed)

Topocentric terms (observer position), sub-microsecond accuracy, dates outside 1600-2200.

Release gate

Computed by the registry from the result files, with the same function that decides RELEASED.

Mutation score, latest measure of each module (needs at least 0.850)
  • no mutation measure yet
Independent implementations written by others (needs 2)
ERFA dtdb (Fairhead & Bretagnon 1990 full series)
Also compared with, not counted
S.T.A.R.'s own re-derivations: USNO Circular 179 eq. 2.6 (7-term series)
Result
Beta

Missing: no mutation measure yet; another independent implementation written by others (now 1 of 2)

Evidence in the registry

CheckStatusRecordedWhat was observed
Clean install from the release tagVERIFIED2026-10-05pytest outside the tree: 13 passed in 0.08s
ReviewVERIFIED2026-10-04Re-execution of bench.xc-012 reproduces the committed evidence bundles
Cross-check with independent librariesVERIFIED2026-10-04star_tdb (7-term series) and ERFA dtdb (full series) agree within 10 us
BenchmarkVERIFIED2026-10-0413/13 AGREE
Unit testsVERIFIED2026-10-043/3 pass
Mutation testingVERIFIED2026-10-04before 56/72 = 0.7778; after 70/72 = 0.9722
Reference valueVERIFIED2026-10-04max |difference| 8.996 us (scan every 37 days, 5919 dates; JD 2459959.5)

Fingerprints (SHA-256)

star_tdb-0.1.1-py3-none-any.whle862b5d57ea3ff94e409195e888c6447e0dc7e065e85e3af1b9d17a7ca104e85
star_tdb.py126fafbabc0d9fd6e288042c8abbb282516c5ac9859485d09a12688d4d642e35
star_tdb-0.1.1-source.zip6c61f97c5ddf27f29835f88a2a70f36f7b745365feeeb307c064a06a8020aed1

results