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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xphasesync-0.1.0.tar.gz | 261.8 kB | Without provenance | Details for xphasesync-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xphasesync-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for xphasesync-0.1.0-py3-none-any.whl |
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
|
Security for xphasesync 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.