Skip to main content

earth-tides

earth-tides computes solid Earth tides: the Love numbers of a rotating, flattened, layered, anelastic and self-gravitating Earth, hydrostatic or non-hydrostatic, with an inviscid or a viscous liquid core, and the tidal displacement of a station that follows from them. The Love numbers are computed directly on the flattened Earth by a spectral method (Chebyshev collocation in radius, Galerkin projection along the level surfaces), without generalized spherical harmonics or hand-derived perturbation theory. The package is pure Python (NumPy and SciPy).

Quick start

earth-tides has no graphical interface and no icon to click: everything happens in a terminal. Open one (Windows: Command Prompt or PowerShell; macOS: Terminal; Linux: any shell), then type each command below and press Enter, waiting for one to finish before starting the next.

Step 1: install earth-tides (requires Python 3.10 or newer with pip):

pip install earth-tides

Nothing works until this step has completed successfully.

Step 2: get the examples and the manual:

earthtides-examples

This copies the worked examples and the PDF user manual into a new directory earthtides-examples in your current location (give a different name as argument if you prefer, e.g. earthtides-examples my_dir). If the command is not found, step 1 did not finish successfully: read its error messages.

Open earthtides_manual_v1.1.pdf first. It explains the conventions of tidal Love numbers, how the solver works, the two programs and every example.

Step 3: compute something. The body tide at Onsala for one day, hourly, with the Love numbers of the IERS Conventions (columns: MJD, up, north, east in metres):

etide 57.395 11.926 --start 2026-01-01 --days 1

The Love numbers of PREM for every wave group of the tidal catalogue (about 12 seconds), and the same body tide computed with them:

earthtides-love -o love.json
etide 57.395 11.926 --start 2026-01-01 --days 1 --love love.json

Step 4: run an example. Each example runs from its own directory and prints the numbers of its .out file:

cd earthtides-examples/ex1
python swing.py
example topic runtime
ex1 The pumped swing: trial function, residual and projection in one variable 1 s
ex2 The loaded elliptical drum: collocation and projection on level curves 2 s
ex3 Homogeneous spheres: exact Bessel solution (Bos & Scherneck 2013) 2 s
ex4 Love numbers of a flattened homogeneous Earth (Greff-Lefftz et al. 2005) 6 min
ex5 Free core nutation of a rigid shell with a fluid core (Hough 1895) 20 s
ex6 Ekman damping of the free core nutation: a viscous, no-slip core (Greenspan 1968) 10 min

Programs

Name Description
etide Body-tide displacement of a station (up, north, east) from the Tamura (1987) tidal potential, with the IERS Love numbers or a table of earthtides-love
earthtides-love Love numbers per wave group (default) or per wave, every convention as an option, written to a JSON table
earthtides-examples Copy the examples and the manual to a new directory

All print their options with --help.

From Python

from earthtides.model import EarthModel
from earthtides.love import model_path
from earthtides.geometry import figure, OMEGA_EARTH
from earthtides.solver import TidalSolver
from earthtides.iers import iers_fit

md = EarthModel(str(model_path('PREM')))   # PREM with a fluid outer core
g = figure(md, 'level')                      # level surfaces of the reference potential
S = TidalSolver(md, g, m=2, K=5, N=30, omega_f=0.0, coriolis=OMEGA_EARTH,
                omega_t=1.4053e-4, omega_rot=OMEGA_EARTH,
                dyn_fluid=True, consistent_reference=True)   # M2
S.solve()
print(iers_fit(S, g))     # h0 = 0.60243, h2 = -0.00049, l0 = 0.08361, l1 = 0.00099, ...

Verification

Every part of the method is checked against a known answer: homogeneous spheres (exact Bessel solution), a spherical Earth on a distorted mesh (round-off), an exact homogeneous spheroid, at rest and rotating (round-off), the analytical flattened Earth of Greff-Lefftz et al. (2005) (5e-6), Hough's free core nutation (2e-4) and its Ekman damping, the first-order equations of Smith (1974), the conservation of angular momentum (5e-9 of the tidal torque on the level figure), and elastic hydrostatic PREM against Dehant, Defraigne & Wahr (1999) (1e-5 at M2). etide reproduces the IERS routine DEHANTTIDEINEL to 0.1 mm rms.

Reference

If you use earth-tides in your research, please cite it as:

Bos, M.S. (2026). earth-tides: Love numbers and body tides of a flattened, rotating, anelastic Earth. Zenodo. doi:10.5281/zenodo.23280927

This DOI always resolves to the latest version. The paper that describes the method, "Body tides of a flattened, rotating, non-hydrostatic Earth: a transparent numerical model" (Bos), is in preparation for Physics of the Earth and Planetary Interiors.

License

Free for academic, research, and educational use. Commercial use requires a separate license from TeroMovigo – Earth Innovation Lda. See LICENSE for the full terms.

Metadata

Release files for earth-tides 1.1.2

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

Source distribution (sdist)

Source distribution for earth-tides 1.1.2
File Size Uploaded Provenance Actions
earth_tides-1.1.2.tar.gz 2.3 MB With provenance Details for earth_tides-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for earth-tides 1.1.2
File Interpreter ABI Platform Actions
earth_tides-1.1.2-py3-none-any.whl Python 3 none any Details for earth_tides-1.1.2-py3-none-any.whl

Total release size: 4.6 MB

Release files / earth_tides-1.1.2.tar.gz

Download URL earth_tides-1.1.2.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
f17f28ef190b80957f89401c6b332ea695fa4196acd4d172ebd879de5e4c09ee
BLAKE2b-256 checksum
How to use checksums
971bef80897aa9509e32be8f7c5e2b6a0612b8dcae25ff1340c2660fefd1dd79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / earth_tides-1.1.2-py3-none-any.whl

Download URL earth_tides-1.1.2-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7b81e9e69e566126d728b63d9aebb62ff520b0be9ed417ce7eb416248919659f
BLAKE2b-256 checksum
How to use checksums
86d004770cfeb4c930e93f163c193681074982459eca5723b75ecc2864fa9b4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for earth-tides 1.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for earth_tides-1.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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