-
Notifications
You must be signed in to change notification settings - Fork 101
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
the correct way to get_PSR_freq #713
Comments
When we need precise frequency at a TOA (e.g. in zima.py), I use this:
I seem to recall testing that in residuals but it makes it really slow. It is an outstanding problem that F0 is used for frequency in some places like this. It is often a sufficient approximation, but not always. I timed a pulsar that changed in period by a factor of two in a couple years. |
See this discussion: #415 |
Yeah, I remember that. Should we at least provide a Taylor expansion version of F0 at TOA? Plus, the check should use the spindown validation. |
Sure, those changes would be fine with me. |
Could he have it as an option to use the full |
I think this function should have three options:
This function should be in the spin-down component. |
That sounds fine. For option 3, it will need to be passed a TOAs object as an argument. |
Yes, for option 2, one will need a timestamp at least.
-Jing
…On Fri, May 22, 2020 at 3:52 PM Paul Ray ***@***.***> wrote:
That sounds fine. For option 3, it will need to be passed a TOAs object as
an argument.
I think the functionality of getting the pulsar freq is used elsewhere in
PINT, so we should make them all use this one function, with its three
options depending on their needs for speed and/or accuracy.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#713 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIUBAZK7C6JQSR4FCW5JB3RS3JXXANCNFSM4NICNCRA>
.
|
Copying this from a different discussion with @aarchiba :
We should make a PR to address this, after #861 is merged. For the full delay calculation, isn't the right time just the topocentric time of the TOA? You want the observed apparent frequency of the pulsar to convert a phase offset to a time offset. |
New improvements to this are in #1334 |
Currently get_PSR_freq(modelF0=True) only returns F0 in the model, however, should we get the F0 at TOA? F0(TOA) = F0 + dt * F1 +....
Secondly, this check seems duplicated with the Spindown component's validation.
PINT/src/pint/residuals.py
Lines 135 to 156 in 6fbbd92
The text was updated successfully, but these errors were encountered: