nanograv / pint_pal

A long-lived repository for NANOGrav Pulsar Timing workflows and analysis.
MIT License
6 stars 16 forks source link

Correctly whiten residuals with DM noise #49

Closed rossjjennings closed 11 months ago

rossjjennings commented 11 months ago

In experimenting with whitened residual plots, I found that plot_utils.plot_resids_time() with whitened=True would only correctly remove DM noise described by a PLDMNoise component (par file parameters TNDMAMP/TNDMGAM/TNDMC) in certain cases (more or less only if the residuals were first averaged). This should fix that, so that the DM noise is always removed when whitened=True, as intended.

gooddc commented 11 months ago

Good catch!!