Skip to content

This Python code is designed for constructing the Wheeler-Kiladis Space-Time Spectra (WK spectra- wavenumber frequency analysis) from gridded time series data, focusing on the analysis of tropical equatorial waves.

Notifications You must be signed in to change notification settings

Blissful-Jasper/Python_based_Wheeler_Kiladis_Space_Time_Spectra_Analysis

Repository files navigation

Python_based_Wheeler_Kiladis_Space_Time_Spectra_Analysis

This Python code is designed for constructing the Wheeler-Kiladis Space-Time Spectra (WK spectra) from gridded time series data, focusing on the analysis of tropical waves. It is based on various functions found in the following GitHub repositories:

This code is based on the functions provided in the following GitHub repositories:

The purpose of this implementation is to provide a Python-based solution for computing the WK Space-Time Spectra while optimizing computational performance. Adjustments have been made to improve the speed of the calculations, resulting in about a 2-second improvement compared to earlier versions. Although the results might slightly differ from those generated by the official NCL website or the original implementations, the extraction of symmetric and antisymmetric signals from the overall wave fluctuations remains consistent when compared to NCL results.

Key Features of This Implementation

  • Speed Optimization: Adjustments to the original code have reduced computational time by approximately 2 seconds, making this version more efficient for large datasets.

  • Straightforward Implementation: This version focuses on providing a clear, easy-to-understand implementation of the WK Space-Time Spectra calculation without complex encapsulation. It is ideal for those wishing to understand the process of WK spectrum calculation.

  • data used from here

This code

  • Python_wk_spacetime.ipynb: The main Python code used to compute the WK Space-Time Spectra.

The output consists of visual plots showing the space-time spectra of tropical wave fluctuations, extracted symmetrically and antisymmetrically.

image

Same data from ncl output

Generated by the NCL script: wk_time4.ncl

image

Installation and Setup

Dependencies:

pip install numpy matplotlib xarray scipy netCDF4

Download the Uninterpolated OLR data from NOAA's website: https://psl.noaa.gov/data/gridded/data.uninterp_OLR.html

Load the Python_wk_spacetime.ipynb Jupyter notebook.

Follow the instructions in the notebook to load the dataset and run the analysis.

You can run the script in vscode by installing the jupyter extension

About

This Python code is designed for constructing the Wheeler-Kiladis Space-Time Spectra (WK spectra- wavenumber frequency analysis) from gridded time series data, focusing on the analysis of tropical equatorial waves.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published