Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Spectral Analysis for Geophysical Data Cookbook

Authors
Affiliations
University at Albany (SUNY)
Florida Institute of Technology
University at Albany (SUNY)
Texas A&M University
University at Albany (SUNY)
Duke University
University of Georgia
University at Albany (SUNY)
thumbnail

nightly-build Binder DOI

This Project Pythia Cookbook teaches spectral analysis of geophysical data in Python: Fourier and harmonic analysis, spectral filtering, EOF/PCA, Extended EOF (EEOF) analysis, and regression onto diagnostic indices.

Motivation

Climate signals from the seasonal cycle to interannual variability are best understood in frequency space. These notebooks walk from raw time series to practical diagnostics, harmonic regression, spectral filters, power spectra, and EOF-based pattern extraction, including time-extended and multivariable EOFs.

Authors

Juan Diego Mantilla, Sreedevi Puthiyamadam Vasu, Robert R. Ford, Suyue Li, Alex Blackmer, Yiqun Tian, Arman Oliazadeh

Contributors

Structure

Data Analysis Methods

Foundational notebooks cover core spectral and decomposition tools:

Data Analysis Applications

Applied workflows on real atmospheric and oceanic datasets:

Running the Notebooks

You can either run the notebooks in the Cookbook using Binder or on your local machine.

Running on Binder

The simplest way to interact with a Jupyter Notebook is through Binder, which enables “one click” execution in the cloud. Simply navigate your mouse to the top right corner of the book chapter you are viewing and click on the rocket ship icon (see screenshots here), and a text box will appear. Type or paste the Pythia Binder link (https://binder.projectpythia.org) and click “Launch”. After a few moments you should be presented with a notebook that you can interact with. You’ll be able to execute code and even change the example programs. At first the code cells have no output, until you execute them by pressing ShiftEnter. Complete details on how to interact with a live Jupyter notebook are described in the Pythia Foundations chapter Getting Started with Jupyter.

Note, not all Cookbook chapters are executable. If you do not see the rocket ship icon, such as on this page, you are not viewing an executable book chapter.

Running on Your Own Machine

If you are interested in running this material locally on your computer, you will need to follow this workflow:

(Replace “cookbook-example” with the title of your cookbooks)

  1. Clone the https://github.com/ProjectPythia/spectral-analysis-coobook repository:

  git clone https://github.com/ProjectPythia/spectral-analysis-coobook.git
  1. Move into the spectral-analysis-coobook directory

 cd spectral-analysis-coobook
  1. Create and activate your conda environment from the environment.yml file

 conda env create -f environment.yml
 conda activate spectral-cookbook-dev
  1. Move into the notebooks directory and start up Jupyterlab

 cd notebooks/
 jupyter lab
References
  1. Mantilla, J. D., Puthiyamadam Vasu, S., Ford, R. R., Li, S., Blackmer, A., Tian, Y., & Oliazadeh, A. (2026). Spectral Analysis for Geophysical Data Cookbook. Zenodo. 10.5281/ZENODO.21139295