Skip to main content

PyGTide

DOI

A Python module and wrapper for ETERNA PREDICT to compute gravitational tides on Earth

PyGTide is a Python module that wraps around ETERNA PREDICT 3.4 which is compiled from Fortran into an executable using f2py. The original ETERNA PREDICT 3.3 was written by the late Prof. H.-G. Wenzel (Wenzel, 1996) in a mix of Fortran 77 and 90. This was updated by Kudryavtsev (2004) to include the latest tidal catalogue. Note that the original Fortran code was comprehensively revised in order to facilitate integration into Python. The original Fortran code for ETERNA PREDICT can be downloaded from the International Geodynamics and Earth Tide Service (IGETS).

How to use

There are two options:

  • Download and install on your system (see below instructions)
  • Via our online calculator: groundwater.app

How to install and run

Prerequisites

  • Download and install Anaconda or Miniconda
  • Install required packages:
    conda install numpy pandas
    

Installation options

Option 1: Install and compile source distribution from PyPi (Python 3.8–3.11) or install pre-compiled distribution (Linux, macOS, Windows; Python>=3.12)

pip install pygtide

Option 2: Build from source locally (Linux, macOS, Windows; Python>=3.8)

Requirements for building:

  • A Fortran compiler (e.g., gfortran via MinGW on Windows; included in Linux/macOS gcc toolchains) conda install gfortran
  • Meson build system with ninja: automatically installed via pip

Clone repo from git:

git clone https://github.com/hydrogeoscience/pygtide.git

Install from local repository:

cd /path/to/pygtide

pip install .

After installation

  • Run tests to verify installation:

    python -c "import pygtide; pygtide.test(msg=True)"
    
  • Update internal database files (downloads latest leap seconds and pole data):

    python -c "import pygtide; pygtide.update()"
    

Example usage

See pygtide/tests.py for complete examples. Quick start:

from pygtide import predict_series
args = (-20.82071, -70.15288, 830.0, '2020-01-01', 6, 600)
series = predict_series(*args, statazimut=90, tidalcompo=8)

How to use

An updated user guide is currently in progress ...

How to cite

If you use PyGTide, please cite the work as:

Rau, Gabriel C. (2018) hydrogeoscience/pygtide: PyGTid. Zenodo. https://doi.org/10.5281/zenodo.1346260

Example

This image shows Earth tides calculated for the city Karlsruhe (Germany) in the year 2018.

References

  • Hartmann, T., and H.-G. Wenzel (1995), The HW95 tidal potential catalogue, Geophysical Research Letters, 22(24), 3553–3556, https://doi.org/10.1029/95GL03324.
  • Kudryavtsev, S. M. (2004), Improved harmonic development of the Earth tide-generating potential, Journal of Geodesy, 17(12), 829-838, https://doi.org/10.1007/s00190-003-0361-2.
  • Wenzel, H.-G. (1996), The nanogal software: Earth tide data processing package ETERNA 3.30, Bulletin d’Informations des Marées Terrestres, 124, 9425–9439.
  • McMillan, T. C., and Rau, G. C., and Timms, W. A., and Andersen, M. S. (2019), Utilizing the impact of Earth and atmospheric tides on groundwater systems: A review reveals the future potential, Reviews of Geophysics, https://dx.doi.org/10.1029/2018RG000630.

License

PyGTide is released by Gabriel C. Rau, Tom Eulenfeld and Craig Miller under the Mozilla Public License 2.0

Download files

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

Source Distribution

pygtide-0.9.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distributions

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

pygtide-0.9.0-cp314-cp314-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.14Windows x86-64

pygtide-0.9.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pygtide-0.9.0-cp314-cp314-macosx_15_0_arm64.whl (3.4 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

pygtide-0.9.0-cp313-cp313-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.13Windows x86-64

pygtide-0.9.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pygtide-0.9.0-cp313-cp313-macosx_15_0_arm64.whl (3.4 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pygtide-0.9.0-cp312-cp312-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.12Windows x86-64

pygtide-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pygtide-0.9.0-cp312-cp312-macosx_15_0_arm64.whl (3.4 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

File details

Details for the file pygtide-0.9.0.tar.gz.

File metadata

  • Download URL: pygtide-0.9.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pygtide-0.9.0.tar.gz
Algorithm Hash digest
SHA256 13d7e8829893b499131456bbdbe487fc966beb9f3989c2b806e8910a75c4da9a
MD5 a22076698365ab57fea3beb533adcccc
BLAKE2b-256 9bf21722d96350cac4dddcd40fdb4bfff4b009e77eee1fa8ca2ca538acf502a9

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pygtide-0.9.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pygtide-0.9.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 35b117b083ba27365ff128e8ce995c2ff52704a488cbdd3266c4670cf933e618
MD5 79f41946511ec1aeeefe5c8a5021daa2
BLAKE2b-256 65d1973305d586d35349f15f628bfda3fb16a35d282fc31fadf50a82e3e060b2

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pygtide-0.9.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8b4a9c599c4c5f5a7c843d8cf80d1173d914bf55af86b370973660f0c87126df
MD5 baac8cae6b9b5051e1fe8b71c8ed152b
BLAKE2b-256 84dec2fc58dee5371282809f14f663d15917c225f92becb9898368fe61c50aa0

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pygtide-0.9.0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bcdcf8596068d848960e8514e5557340f6c77abd945916de0df0c0c548b4bfd3
MD5 3074fe4b98c72b4462b1fb7908cd016a
BLAKE2b-256 bcd633ca434dd7b2d70e6797e270f75f14b657b07fad92fbeddd7d1e7b8f8c54

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pygtide-0.9.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pygtide-0.9.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e5939e5c39453d336db5eb0173fbd3885ca5b35238f2684678e7c3091804a689
MD5 bb0cb866042aa68c041ea5a3aded5e02
BLAKE2b-256 5997e0436a50c42ec4b4fc9eaa40a4e8ca21e79991e536cf49dc804bb8086df3

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pygtide-0.9.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55a8ba0376d3bbdc03353208f89d66f3b02c5fd29ac11c76e8a11aed3344386f
MD5 26b868da8bdac864d79b62fc5767f5ed
BLAKE2b-256 d7b8567ced6b2c4753b1d4f6847ece4cbd1fc5f2458a5bbcb1e353e9ffda2ab1

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pygtide-0.9.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ec6a7336709dd39f7d962e99c7f12b4ba2e589ca8d607708f028a2357ea4ca20
MD5 df810bea5a5d9caa8495e3b583e1b83d
BLAKE2b-256 dd4d1061aca31ab2eed8a7ba0f699de08860c4a0974926863ffcb5ca3a728d29

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pygtide-0.9.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pygtide-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a6460ba2cc4ff469613a7f904edca3139b8253c54562ec789a43e8f06aa1ff2c
MD5 3346ae0923010676988652640488dd66
BLAKE2b-256 8b09e2b537b7ea98094aa907e1ab4c794a423a2c7442832fc705e608609e7f14

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pygtide-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9040ccb420628d648e0ce12d9ecf319970f0139a372ced2cb92513b7fb1a6994
MD5 273f753d2822ee629d38d58845036738
BLAKE2b-256 8bd4bf962c46b70d09ab1aeb263ebc0426534a3dd60dcff6a1139dd55635ce82

See more details on using hashes here.

File details

Details for the file pygtide-0.9.0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pygtide-0.9.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ceb78970493607896c1647d1b09e5b541644d3aa98ecf890e27d0cb2d8115a26
MD5 949a7273c0f37a9959c2d9b5c71c085b
BLAKE2b-256 a61e7abc10ff74c436d8388b0c07981fbc23ad3f369821e1f5d69f61301b3648

See more details on using hashes here.

Release history Release notifications | RSS feed

0.9.1

10 files

This release

0.9.0 This release

10 files

0.8.2

10 files

0.8.1

1 file

0.8.0

1 file

0.7.1

1 file

0.7.0

1 file

Supported by

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