Skip to main content

Command line script and Python library to analyze tidal constituents.

Project description

https://github.com/timcera/tappy/actions/workflows/python-package.yml/badge.svg https://coveralls.io/repos/timcera/tappy/badge.png?branch=master Latest release BSD-3 clause license tappy downloads

TAPPY is a tidal analysis package. It breaks down a record of water levels into the component sine waves. It is written in Python and uses the least squares optimization and other functions in SciPy. The focus is to make the most accurate analysis possible. TAPPY only determines the constituents that are calculatable according to the length of the time series.

Features

  • Outputs a ‘International Hydrographic Organization - Tidal and Water Level Working Group’ standard XML constituent file.

  • Uses the IHO standard XML constituent file to make a predicted time series. By far the most frequent request that I get.

  • Calculates the node factor at each water elevation measurement. Very important for long time-series (greater than a year).

  • Very accurate ephemeris calculations thanks to the Astrolabe library.

  • Able to read in different input data sets without changing TAPPY or the input data set. All you have to do is create a file that defines the input data set. Thanks to Pyparsing.

  • Added the capability to read compressed files and Internet data streams (actually any URL) directly into TAPPY by using filelike.

  • The time-series does not need to have equal intervals. In fact any length of missing data is allowed (though too much missing will cause a poor analysis).

  • Can adjust the Rayleigh factor that nearby constituents are compared against to determine what constituents can be differentiated.

  • TAPPY chooses the main constituents based upon the length of the time series and infers additional constituents that are known to be specifically related to the main constituents.

  • Can filter the tidal energy out of the input signal using transform (FFT), usgs (PL33), doodson, and boxcar methods. | [CompareTidalFilters]

  • Can use the tidal filters to zero the time-series before determination of tidal constituents.

  • Can pad the usgs, doodson, and boxcar filters with predicted data to minimize edge effects of the filters.

  • Convenience function to fill missing values with the time series

Requirements

Python version 3.7.1 or later

SciPy

Install

# To install...
pip install tappy

TAPPY Citations

http://meetingorganizer.copernicus.org/EGU2009/EGU2009-5154.pdf

Please forward any citation of TAPPY to tim at cerazone.net.

Contributions

Development

Any help is appreciated. If you want you could send a patch file to me, or if you would like to make a bunch of changes I can assign you developer privileges to the source code repository. Just contact me at tim at cerazone.net.

Project details


Download files

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

Source Distribution

tappy-0.10.0.tar.gz (597.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page