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

PINT should have a TCB to TDB conversion script #1405

Closed
abhisrkckl opened this issue Sep 27, 2022 · 2 comments · Fixed by #1531
Closed

PINT should have a TCB to TDB conversion script #1405

abhisrkckl opened this issue Sep 27, 2022 · 2 comments · Fixed by #1531

Comments

@abhisrkckl
Copy link
Contributor

abhisrkckl commented Sep 27, 2022

Right now the only way to convert from TCB to TDB is to use the TEMPO2 transform plugin. This feature will allow PINT users to deal with TCB par files even if they don't have TEMPO2 installed.

See also: Issue #37, Issue #1403, PR #465, PR #1404

@abhisrkckl
Copy link
Contributor Author

The transform plugin does the following:

For mjd parameters, it does
t_tdb = (t_tcb - tref)*f + tref

For other parameters with dimensions [T^n L^m ...], it does
A_tdb = A_tcb * (f**(m+n))

Exceptions are DM and its derivatives, and parallax (and DMX/DMMODEL parameters, I guess). They enter the timing model multiplied by the DM constant and AU. Hence, they have different "effective dimensions".

@abhisrkckl
Copy link
Contributor Author

Interestingly, the transform plugin does not scale the DMX parameters. This probably explains why I was getting ~10 ns errors for InPTA data with TDB par files generated using the transform plugin.

@abhisrkckl abhisrkckl linked a pull request Feb 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant