Skip to main content

"Phase synchronization analysis of two time series using Numpy and Xarray."

Project description

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

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

xphasesync-0.1.0.tar.gz (261.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xphasesync-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for xphasesync-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4207e65a156041d1ff3d526e710b28eec11f4f89dd40e629308421a7fe76aed
MD5 8b7bbce7e47e8f8dce23dd0e0ebd4305
BLAKE2b-256 d646d968c4a1d6e8e1b688818f251f9176c7c589d6403cc1b47bb7e1073caba4

See more details on using hashes here.

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

Hashes for xphasesync-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 009d90a168290ef3905283ec7d2c88d4a6dcb3e0d6bee1aea9d8a55c16f6e435
MD5 498577c55c0d6a1247adf1371b5a752b
BLAKE2b-256 6444b9af56ed7eaa47803a6cdb46ec09a8fcda3596aa51f533516b96cb2b76a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page