"Phase synchronization analysis of two time series using Numpy and Xarray."
Project description
xphasesync
Phase synchronization analysis of two time series using Numpy and Xarray
📌 Note:
If you usexphasesyncin your published work, please cite:Stuecker, M. F., Zhao, S., Timmermann, A., Ghosh, R., Semmler, T., Lee, S.-S., Moon, J.-Y., Jin, F.-F., Jung, T. (2025). Global climate mode resonance due to rapidly intensifying El Niño–Southern Oscillation. Nature Communications.
Installation
pip install git+https://github.com/senclimate/xphasesync.git
or
pip install xphasesync
Quick Start
import numpy as np
import xarray as xr
from xphasesync import xphasesync
# Create sample sine waves
time = np.arange(1000)
sig1 = np.sin(0.1*time)
sig2 = np.sin(0.1*time + 0.5)
da1 = xr.DataArray(sig1, dims=["time"])
da2 = xr.DataArray(sig2, dims=["time"])
ds = xphasesync(da1, da2, dim="time")
print(ds)
Applications
- ENSO phase synchronization changes (Fig. 4 and Supplementary Fig. 8 in Stuecker et al. 2025), an detailed example is available in examples/phase_sync_illustration.ipynb
References
- Pikovsky, A., Rosenblum, M. & Kurths, J. Phase synchronization in regular and chaotic systems. International Journal of Bifurcation and Chaos 10, 2291–2305 (2000). https://doi.org/10.1142/S0218127400001481
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xphasesync-0.1.0.tar.gz.
File metadata
- Download URL: xphasesync-0.1.0.tar.gz
- Upload date:
- Size: 261.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4207e65a156041d1ff3d526e710b28eec11f4f89dd40e629308421a7fe76aed
|
|
| MD5 |
8b7bbce7e47e8f8dce23dd0e0ebd4305
|
|
| BLAKE2b-256 |
d646d968c4a1d6e8e1b688818f251f9176c7c589d6403cc1b47bb7e1073caba4
|
File details
Details for the file xphasesync-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xphasesync-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
009d90a168290ef3905283ec7d2c88d4a6dcb3e0d6bee1aea9d8a55c16f6e435
|
|
| MD5 |
498577c55c0d6a1247adf1371b5a752b
|
|
| BLAKE2b-256 |
6444b9af56ed7eaa47803a6cdb46ec09a8fcda3596aa51f533516b96cb2b76a0
|