Permalink
Browse files

Use .npz instead of .mat for data files.

  • Loading branch information...
ocefpaf committed Apr 14, 2016
1 parent 9f88220 commit 47602cc450381dd376add4ccf202279ea5476af1
View
@@ -1,33 +1,26 @@
language: python
sudo: false
env:
- CONDA="python=2.7"
- CONDA="python=3.3"
- CONDA="python=3.4"
- CONDA="python=3.5"
before_install:
- URL=http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
- wget $URL -O miniconda.sh
- wget http://bit.ly/miniconda -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes
- conda update conda
- conda info -a
- travis_retry conda create --yes -n test $CONDA --file requirements.txt
- source activate test
# Testing requirements.
- travis_retry conda install pip
- travis_retry pip install pytest
- travis_retry pip install coveralls
- travis_retry pip install pytest-cov
- conda update --yes conda
- travis_retry conda create --yes -n TEST $CONDA --file requirements.txt
- source activate TEST
- travis_retry pip install -r requirements-dev.txt
- travis_retry conda install --yes pytest
install:
- export PYTHONWARNINGS=all
script:
py.test
after_success:
- coveralls
- python setup.py test
- find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100
View
File renamed without changes.
View
@@ -1,5 +1,6 @@
include *.md
include LICENSE
include README.rst
include LICENSE.txt
include requirements.txt
recursive-include utide *.py
recursive-include utide *.mat
recursive-include utide *.npz
View

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,101 @@
UTide
=====
.. image:: https://travis-ci.org/wesleybowman/UTide.svg?branch=master
:target: https://travis-ci.org/wesleybowman/UTide
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.
.. code:: shell
python setup.py install
or
.. code:: shell
python setup.py install --user
if you don't want a system-wide installation.
If you want to work on developing the package, then
.. code:: shell
python setup.py develop
will allow you to test without reinstalling after making
a modification.
Another option is to use
.. code:: shell
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
.. code:: python
from utide import solve, reconstruct
To test and make sure that the package has been installed
and imported correctly, run:
.. code:: python
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
.. code:: python
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 <http://nbviewer.jupyter.org/github/wesleybowman/UTide/tree/npz/notebooks/>`__
folder.
Oops, something went wrong.

0 comments on commit 47602cc

Please sign in to comment.