Skip to main content

pytides

About

Pytides is small Python package for the analysis and prediction of tides. Pytides can be used to extrapolate the tidal behaviour at a given location from its previous behaviour. The method used is that of harmonic constituents, in particular as presented by P. Schureman in Special Publication 98. The fitting of amplitudes and phases is handled by Scipy's leastsq minimisation function. Pytides currently supports the constituents used by NOAA, with plans to add more constituent sets. It is therefore possible to use the amplitudes and phases published by NOAA directly, without the need to perform the analysis again (although there may be slight discrepancies for some constituents).

It is recommended that all interactions with pytides which require times to be specified are in the format of naive UTC datetime instances. In particular, note that pytides makes no adjustment for summertime or any other civil variations within timezones.

Requirements

  • Numpy
  • Scipy

Installation

easy_install pytides2

or

pip install pytides2

should do the trick.

Mainly for my own reference (sanity), to get pytides and its dependencies all working in a Debian (mint) virtualenv:

sudo apt-get install liblapack-dev libatlas-base-dev gfortran
export LAPACK=/usr/lib/liblapack.so
export ATLAS=/usr/lib/libatlas.so
export BLAS=/usr/lib/libblas.so
pip install numpy
pip install scipy
pip install pytides

and you'll probably want to

pip install matplotlib

although this won't install all the backends for matplotlib, which is a headache for another day (this looks promising).

Usage

Pytides is in its infancy, and hasn't yet been fully documented. The best way to get started would be to read this example. After that, you might try making your own tide table, where you can also find a method for handling timezones. You can find information about using NOAA published Harmonic Constituents directly here.

If you want to know how Pytides works, it would be best to read P. Schureman, Special Publication 98. Alternatively, there is my attempt to explain it on the wiki (although it's a little mathematical and not yet complete). It is certainly possible to use Pytides successfully without any knowledge of its methods.

Contribution

I would welcome any help with Pytides. Particularly if you have knowledge of constituent data (including node factors) which other institutions/packages use. I can be reached at sam.cox@cantab.net or via github.

Please note however that Pytide's lack of attempts to infer constituents, or exclude similar constituents based on their synodic periods is an intentional design decision.

Metadata

Release files for pytides2 0.0.5

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

Source distribution (sdist)

Source distribution for pytides2 0.0.5
File Size Uploaded Provenance
pytides2-0.0.5.tar.gz 13.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytides2 0.0.5
File Interpreter ABI Platform
pytides2-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / pytides2-0.0.5.tar.gz

Download URL pytides2-0.0.5.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2911c2aae42b48c4a4051b5b757d016643e6c2dab0de27bc3f84cae9fa9a3c83
BLAKE2b-256 checksum
How to use checksums
009e5d423b0b369f464d1e4217a91133e0e9a68bec20202ba5bf30ecb5295247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Windows/10

Release files / pytides2-0.0.5-py3-none-any.whl

Download URL pytides2-0.0.5-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
606c8aaf0922d86e6ec253ba5ad04d58a3745c334be21fd4ef6d3dd837cf94d7
BLAKE2b-256 checksum
How to use checksums
cc32ed84fc14d739f800bd5203363ce7078801aef0f3b4537f0ecfa8ff4df0ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Windows/10

Security for pytides2 0.0.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

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