-
Notifications
You must be signed in to change notification settings - Fork 34
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
Question: Return phase from an input time array and ephemerides file #35
Comments
I think you can do something similar to what you want using the Note: don't trust me that this works correctly - I could well have misinterpreted something!
|
In |
Wow, thank you for answering so quickly! :D I will test this right away! Although I have another simple question: I understand the times to be used are UTC times (in MJD) taken at the observatory location (so not barycentered or anything)? |
Thanks Matt for replying! I can do my bit and say that the times are indeed meant to be the pulse arrival times at the observatory. Time conversions, barycentering, etc. are done internally to compute residuals with respect to the timing model, which includes spin evolution, binary dynamics, etc. |
Thank you both! @vallis and @mattpitkin !! Good news and bad news:
Taking a look to the notebook you linked, I saw I can provide observation times as a ".tim" file. I don't have a lot of experience with that format. Is there any way I can provide data with enough precision in a different way? Or I should create a ".tim" file for sure? |
Within import numpy as np
# float128 array (of zeros)
obstimes = np.zeros(3, dtype=np.float128)
# add in some times
obstimes[0] = np.float("56543.969253958453854835495934")
... |
Hi again @mattpitkin Ok, I'm actually ashamed I didn't know there is actually a np.float128... Not sure it is relevant to you guys... But I'm not able to reproduce the Crab lightcurve I was expecting (while I do get it with the other C software I use, same data). A quick question: is it normal that the phase distribution I get is not as even as I would expect (while my sampling is constant over 5 min of data, very high frequency)? I'm providing a Crab pulsar .par file:
While times are in MJD. I'm just surprised I'm not reconstructing the Crab lightcurve, given that over such a short observation time I would expect that most of the problems would not really affect much... But I may be totally wrong! |
Hi!
I just discovered this library, and I was wondering if it has the functionality generally used within optical/gamma astronomy... Is it currently possible to provide a time array and ephemerides file, and return the phase of each time value according to the ephemerides?
Maybe its a super dumb question... Apologies if that is the case, as I'm definitely not an expert. If it is possible, would it be possible to get a small snippet so I can try to work it out?
Thanks!
The text was updated successfully, but these errors were encountered: