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 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).
- PSRCHIVE: Installed with python interface
- TEMPO2: Used for fitting DM
- scikit-learn: This is required for doing a Huber Regression fit to the ToAs.
- 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.