A suite of modules for computing spectral estimates from data.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
docs
examples
pyspec
LICENSE
README.md
TODO
__init__.py
setup.py
test_pyspec.py

README.md

pyspec

DOI

A Pythonic package for spectral analysis

This is an on-going project in which I'm gathering codes for spectral analysis that I've been developing for my own research in oceanography. In particular, most of these codes were developed for a project on the horizontal wavenumber spectra in Drake Passage (dp_spectra). Contributions are very welcome.

Dependencies

pyspec assumes you have basic Python packages for scientific applications (scipy, numpy, etc). I strongly encourage you to install the free anaconda distribution.

Installation

This is a legit python package. You can install it

python setup.py install

If you want to develop and contribute to the project, set up the development mode

python setup.py develop

Usage

Here are some simple examples

  • An IPython notebook describing a single calculation of one-dimensional wavenumber spectra.

  • An IPython notebook showcasing the decomposition of one-dimensional kinetic energy spectra into rotational and divergent components.

  • An IPython notebook showing the basic usage of pyspec to compute 2D spectrum and its associated isotropic spectrum. This notebook also showcases the estimation of confidence limits.

Funding

Part of this package was developed for a project funded by the NASA Ocean Surface Topography Science Team (NNX13AE44G) and the NSF Polar Program (PLR-1341431). The leading developer is currently supported by NSF (OCE 1357047).