Coastal Hazards Toolkit -Tides
CHT Tide is a Python package for fitting tidal harmonic constituents to observed water levels and predicting water levels from known constituents. It also provides access to gridded tide models and station databases.
Installation
Install the latest release from PyPI:
python -m pip install cht-tide
Once the package is available on conda-forge, it can also be installed with:
conda install -c conda-forge cht_tide
The package does not bundle large tide-model or station datasets. Those data must be provided separately, either locally or through a configured S3 database.
Quick example
Predict water levels from constituent amplitudes (metres) and phases (degrees):
import pandas as pd
from cht_tide import predict
constituents = pd.DataFrame(
{
"amplitude": [0.85, 0.22, 0.18, 0.15, 0.12],
"phase": [120.0, 145.0, 100.0, 30.0, 350.0],
},
index=["M2", "S2", "N2", "K1", "O1"],
)
times = pd.date_range("2024-01-01", periods=24, freq="h")
water_levels = predict(constituents, times)
See the getting started guide and user guide for more examples.
Metadata
Release files for cht-tide 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cht_tide-0.1.2.tar.gz | 30.2 kB | With provenance | Details for cht_tide-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cht_tide-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for cht_tide-0.1.2-py3-none-any.whl |
Total release size: 61.4 kB
Release files / cht_tide-0.1.2.tar.gz
| Download URL | cht_tide-0.1.2.tar.gz |
|---|---|
| Size | 30.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bca2233aa5ee2a310a79cbb9e3ad2cc03af577d6fbb48db46b42b41071edba5a
|
|
BLAKE2b-256 checksum How to use checksums |
2837488e6e396a1da4dab031638dfd0cdc6c9d9c1f405231e3d12e8f2b6b6787
|
| 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 10, 2026.
Transparency logRelease files / cht_tide-0.1.2-py3-none-any.whl
| Download URL | cht_tide-0.1.2-py3-none-any.whl |
|---|---|
| Size | 31.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93408a2b3bd6fdbb8772b3815bb05818a669dda5b688b2fadc35185e5a853614
|
|
BLAKE2b-256 checksum How to use checksums |
764bc1a4950082a9fd719d82d33587bb66247655f3f7853177b1fe173d64ba3b
|
| 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 10, 2026.
Transparency logSecurity for cht-tide 0.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.
Attestation for cht_tide-0.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 10, 2026.
Transparency logA 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.