Skip to content
/ dmcalc Public

Python code to calculate in-band dispersion measure of pulsars

Notifications You must be signed in to change notification settings

kkma89/dmcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

DMCalc

DMCalc is a Python based script that estimates the Dispersion Measure (DM) of wide-band pulsar data in psrfits format. It uses the tools available with PSRCHIVE python interface to get ToAs and then use TEMPO2 for DM fitting. A median absolute deviation (MAD) based ToA rejection algorithm following Tiburzi et al. (2019) is also implemented in the code to remove large outlier ToAs after performing a equation fit using Huber Regression. Although the code is used for the analysis of the wide-band data from uGMRT, it can in principle be used for any pulsar datasets. More details about this and the results obtained using this can be seen in Krishnakumar et al. (2020).

Dependencies

  • PSRCHIVE: Installed with python interface
  • TEMPO2: Used for fitting DM
  • scikit-learn: This is required for doing a Huber Regression fit to the ToAs.

Usage

  • Minimum running example:

dmcalc.py -E ephemeris.par -M model.sm data.fits

where, ephemeris.par is the ephemeris file of the pulsar, model.sm is the template file and data.fits is the data file. Additionally, there are other options that can be useful for further analysis. This also produces a plot of the DM corrected data and different stages of the fitting as shown below.

analysisplot

About

Python code to calculate in-band dispersion measure of pulsars

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages