- Notifications
You must be signed in to change notification settings - Fork1
A Python wrapper of the Phase Dispersion Minimization (PDM), which is a C code written by Stellingwerf.
License
ckm3/Py-PDM
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Python wrapper of the Phase Dispersion Minimization (PDM), which is aC code written by Stellingwerf.
Compared with other Python implementations, with the help of Cython, we can obtain a much faster PDM tool.
The red lines show the true frequency and its n times period.
Compared to thePure Python implementation of PDM ofPyAstronomy
:
Before installing, make sure you have already installed the cython and numpy in your Python3 environment.
To install Py-PDM with pip:
pip install py-pdm
Alternatively you can install it manually:
git clone https://github.com/ckm3/Py-PDM.gitcd Py-PDMpython setup.py install
frompdmpyimportpdmfreq,theta=pdm(time,y_value,y_sigma,frequency_min,frequency_max,frequency_step,number_of_bins)
Please refer to thedocumentation to see in details.
If you find Py-PDM useful in your research, please cite the orginal paperStellingwerf, Astrophysical Journal, v224, p953, 1978 and add a footnote of this Github repository.
About
A Python wrapper of the Phase Dispersion Minimization (PDM), which is a C code written by Stellingwerf.