Skip to main content

Python distribution of the MatLab package UTide.

Project description

UTide

https://travis-ci.org/wesleybowman/UTide.svg?branch=master

Python re-implementation of the Matlab package UTide.

Still in heavy development–everything is subject to change!

Note: the user interface differs from the Matlab version, so consult the Python function docstrings to see how to specify parameters. Some functionality from the Matlab version is not yet available.

% For more information see:
% Codiga, D.L., 2011. Unified Tidal Analysis and Prediction Using the
% UTide Matlab Functions. Technical Report 2011-01. Graduate School
% of Oceanography, University of Rhode Island, Narragansett, RI.
% 59pp. ftp://www.po.gso.uri.edu/pub/downloads/codiga/pubs/
% 2011Codiga-UTide-Report.pdf
%
% UTide v1p0 9/2011 d.codiga@gso.uri.edu
% http://www.po.gso.uri.edu/~codiga/utide/utide.htm

Installation

Download the zip file and unzip it; or, much better, clone the git repository. In either case, change your directory to the newly-created utide distribution directory.

python setup.py install

or

python setup.py install --user

if you don’t want a system-wide installation.

If you want to work on developing the package, then

python setup.py develop

will allow you to test without reinstalling after making a modification.

Another option is to use

pip install .

If you are using conda and will not be developing the code, you can install from the IOOS channel. See https://github.com/ioos/conda-recipes/wiki.

The public functions can be imported using

from utide import solve, reconstruct

To test and make sure that the package has been installed and imported correctly, run:

from utide.tests.test_solve import test_roundtrip
test_roundtrip()

If you have the pytest package installed, you can execute python setup.py test from within the source directory to run all tests.

A sample call would be

from utide import solve

coef = solve(time, time_series_u, time_series_v,
             lat=30,
             nodal=False,
             trend=False,
             method='ols',
             conf_int='linear',
             Rayleigh_min=0.95,)

For more examples see the notebooks folder.

The MIT License (MIT)

Copyright (c) 2014 Wesley Bowman

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

UTide-0.1.0.tar.gz (68.3 kB view details)

Uploaded Source

File details

Details for the file UTide-0.1.0.tar.gz.

File metadata

  • Download URL: UTide-0.1.0.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for UTide-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ab7169bd7ce59ea57bd5115506b4d9b2870f5b0db6c50dc3f3e3ef4ad6d4ed1
MD5 8b97d5355bfd37889a0b2a8ad8e376a4
BLAKE2b-256 23c804383e4938b3c5141cfca0efbdf3914468b54bda538f27895845531f6291

See more details on using hashes here.

Supported by

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