Tidal analysis and prediction library for Python >= 3.10.x
Project description
pytides-py3
pytides-py3 is an improved version of existing pytides to work with Python 3.10.x. The basic behavior and operation follows the original author's pytides. - Sangkon Han
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 pytides
or
pip install pytides
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytides-py3-0.0.6.tar.gz
.
File metadata
- Download URL: pytides-py3-0.0.6.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d172e3426fc528c360913d572dd147f3d8c161d32974cc8f4a9ad5ab2a2a862a |
|
MD5 | a825176588da7cc64456835209368f2b |
|
BLAKE2b-256 | a1d33902fa2ea7b2e0affed3ddbc74cfc8744828cdcde3a239310bf77f4382e2 |
File details
Details for the file pytides_py3-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: pytides_py3-0.0.6-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4098c87afc334ec7f7be0072c204f01f20dd78e013290687ae9a1b2e446c2a1 |
|
MD5 | 926c94f5598dbf3918a9036c552133c3 |
|
BLAKE2b-256 | 000b1b9c114c544e615099cd8541a1a3f3b84801b82a84af1783f86124103a6b |