Skip to main content

DOI

xphasesync

Phase synchronization analysis of two time series using Numpy and Xarray

📌 Note:
If you use xphasesync in 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

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

Metadata

Release files for xphasesync 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xphasesync 0.1.0
File Size Uploaded
xphasesync-0.1.0.tar.gz 261.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xphasesync 0.1.0
File Interpreter ABI Platform
xphasesync-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 266.2 kB

Release files / xphasesync-0.1.0.tar.gz

Download URL xphasesync-0.1.0.tar.gz
Size 261.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b4207e65a156041d1ff3d526e710b28eec11f4f89dd40e629308421a7fe76aed
BLAKE2b-256 checksum
How to use checksums
d646d968c4a1d6e8e1b688818f251f9176c7c589d6403cc1b47bb7e1073caba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / xphasesync-0.1.0-py3-none-any.whl

Download URL xphasesync-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
009d90a168290ef3905283ec7d2c88d4a6dcb3e0d6bee1aea9d8a55c16f6e435
BLAKE2b-256 checksum
How to use checksums
6444b9af56ed7eaa47803a6cdb46ec09a8fcda3596aa51f533516b96cb2b76a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page