Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Derotation class (or add option to Dedisperse) for RM correction #132

Open
mhvk opened this issue Nov 19, 2019 · 0 comments
Open

Comments

@mhvk
Copy link
Owner

mhvk commented Nov 19, 2019

Would be nice to be able to apply/correct rotation measure as one does for dispersion. From an e-mail by Dongzi (recipe slightly edited):
Here is the algorithm to correct the cable delay and RM for linear voltage data. It is straight-forward to test, just form the stokes with the corrected X and Y, and see if all the effects are removed. With the same parameter, if you are able to calibrate the stokes, you are able to calibrate the X and Y. If you want to do it more rigidly, there should be algorithm to calculate the Jones matrix given two calibration sources, it would also be straight-forward to apply (probably ask Luke for this).

  1. correct cable delay: X=X*exp(-i tau f), where tau is the cable delay and f is the frequency
  2. create circular pols L,R=0.5*(X±iY) (definition of L and R might be opposite);
  3. correct RM: L=L*exp(- i RM lambda^2), R=R *exp(i RM lambda^2)
  4. reconstruct linear: X=L+R, Y=(L-R)i

so the combined Jones matrix for the above steps will be

J=[[exp(i tau f) cos (RM lambda^2), -sin (RM lambda^2)],
   [exp(-i tau f) sin(RM lambda^2), -cos(RM lambda^2)]]

and J dot [X,Y] would give you the corrected X and Y.

But I highly recommend to break the steps and form stokes parameters for each steps and see the effect for the first burst. I might be missing some constant phase, or the convention for RM/cable delay may be off by a sign, etc. But I think you are very smart, so this will be easy for you to find out.

cc @theXYZT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant