Skip to main content

Python Spectral Proper Orthogonal Decomposition

Project description

Python Spectral Proper Orthogonal Decomposition

JOSS Paper Software License PyPI version Build Status

PySPOD: A parallel (distributed) Python SPOD package

What do we implement?

In this package we implement two versions of SPOD, both available as parallel and distributed (i.e. they can run on multiple cores/nodes on large-scale HPC machines) via mpi4py:

We additionally implement the calculation of time coefficients and the reconstruction of the data, given a set of modes $\phi$ and coefficients a, as explained in (Chu and Schmidt, 2021) and (Nekkanti and Schmidt, 2021). The library comes with a package to emulating the reduced space, that is to forecasting the time coefficients using neural networks, as described in Lario et al., 2022.

To see how to use the PySPOD package, you can look at the Tutorials.

For additional information, you can also consult the PySPOD website:

How to cite this work

Current reference to the PySPOD library is:

  title={Pyspod: A python package for spectral proper orthogonal decomposition (spod)}
  author={Mengaldo, Gianmarco and Maulik, Romit},
  journal={Journal of Open Source Software},

What data can we apply SPOD to?

SPOD can be applied to wide-sense stationary data. Examples of these arise in different fields, including fluidmechanics, and weather and climate, among others.

How do I install the library?

If you want to download and install the latest version from main:

  • download the library
  • from the top directory of PySPOD, type
python3 install

To allow for parallel capabilities, you need to have installed an MPI distribution in your machine. Currently MPI distributions tested are Open MPI, and Mpich. Note that the library will still work in serial (no parallel capabilities), if you do not have MPI.

Recent works with PySPOD

Please, contact me if you used PySPOD for a publication and you want it to be advertised here.

Authors and contributors

PySPOD is currently developed and mantained by

  • G. Mengaldo, National University of Singapore (Singapore).

Current active contributors include:

  • M. Rogowski, King Abdullah University of Science and Technology (Saudi Arabia).
  • L. Dalcin, King Abdullah University of Science and Technology (Saudi Arabia).
  • R. Maulik, Argonne National Laboratory (US).
  • A. Lario, SISSA (Italy)

How to contribute

Contributions improving code and documentation, as well as suggestions about new features are more than welcome!

The guidelines to contribute are as follows:

  1. open a new issue describing the bug you intend to fix or the feature you want to add.
  2. fork the project and open your own branch related to the issue you just opened, and call the branch fix/name-of-the-issue if it is a bug fix, or feature/name-of-the-issue if you are adding a feature.
  3. ensure to use 4 spaces for formatting the code.
  4. if you add a feature, it should be accompanied by relevant tests to ensure it functions correctly, while the code continue to be developed.
  5. commit your changes with a self-explanatory commit message.
  6. push your commits and submit a pull request. Please, remember to rebase properly in order to maintain a clean, linear git history.

Contact us by email for further information or questions about PySPOD or ways on how to contribute.


See the LICENSE file for license rights and limitations (MIT).

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

pyspod-2.0.0.tar.gz (199.2 kB view hashes)

Uploaded source

Built Distribution

pyspod-2.0.0-py3-none-any.whl (213.5 kB view hashes)

Uploaded py3

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