Hi David and All,
I just want to check what time system is used when TESS observations are imported using the Kepler/TESS FITS file v2.2 and QPL FITS file V0.2 plugins. I understand that BJD - 2457000 is recorded in the FITS files.
Does VStar just add the 2457000 before displaying a light curve in Barycentric Julian Date, or is the time converted to JD or HJD?
The difference is at most about 4 seconds, but it would be best to know which system is being used. Cheers,
Mark
Hi Mark
It had been a long time since I looked at the Kepler plugin code I initially wrote with input from Doug Welch in 2010 and 2011.
So, I needed to go back and look at the code. :)
Here's what I wrote in the header comment of the first version of the code:
In any case, as Kristen Nygaard (co-creator of the Simula language) said: programming is understanding.
Of a sort at least.
Here are the relevant code lines:
Loading an example FITS file using the Kepler plugin and source and examining values in the running code yields these values:
The earlier comments make me wonder about the use of the variable name hjd here (obviously intended to denote HJD). I need to think about that. Not that it impacts the values computed, just the habitability of the code.
Max and Cliff have worked on the code for this and the QLP plugin more recently than I, and Brad Walter has had some input into the docs for the Kepler plugin. They may wish to comment further on what I have said.
I'm not sure if this helps or hinders your quest for understanding.
Happy to talk/think more about this.
David
What I recall from my work on the kepler plugin is there is no attempt in it to convert from BJD to HJD. The time is simply annotated as being BJD. As David notes above, the time base is changed with each mission and somewhere along the line we switched from using a program constant for the time base to using the FITS header value.
That being said, there is a bit of a larger issue which has been discussed, but which has not really been addressed well. This is the fact that when we say HJD we generally are implying the UTC time scale while when we say BJD we are generally meaning TDB time scale and often explicitly stating that. BJDTDB is what these missions use. While the light travel time difference between BJD and HJD is seconds, the time scale difference between UTC and TDB is an order of magnitude or more larger.
I do not believe VStar or any other AAVSO system deals with differences in time scale.
I know this is not particularly helpful, but it is something I have run into before.
best regards,
Cliff
Thanks Cliff and David,
so, if I understand correctly, TESS observations imported into VStar have had 2457000 added to the FITS header time and are BJD.
Perhaps this could be noted in the plugin documentation so people are aware and can make corrections to any measurements made from the data (e.g. Times of Minimum). Cheers,
Mark
You…
A reasonable request.
You can also can see the time being used with View-Observation Details.
best regards
Cliff
Thanks Cliff,
I didn't think to look at View-Observation Details - obvious place in hind sight. CHeers,
Mark
Thanks for your input here Cliff.
I meant to mention Observation Details as well.
I've captured this request as a GitHub issue: https://github.com/AAVSO/VStar/issues/189
David
2459010.27039…
2459010.26900
2459010.27039
...
after detrending TESS data using JULIET package, these timing data come. I know to know whether these data are already in BJD based TDB format or in HJD format?
More context may be necessary.
Did you follow something like the following tutorial?
https://juliet.readthedocs.io/en/latest/tutorials/gps.html?highlight=BJD#detrending-lightcurves-with-gps
BJD looms large in the documentation for Juliet whereas HJD does not.
Data loaded with the VStar Kepler/TESS plugin is in BJD, not HJD.
The TESS documentation shows an example header, an excerpt from which is:
'timeref': 'SOLARSYSTEM'
'tassign': 'SPACECRAFT'
'timesys': 'TDB'
'bjdrefi': 2457000
The last is consistent with the Juliet example in the first link above.
So I guess your question is whether instead of:
plt.xlabel('Time (BJD - 2457000)')
the x axis should actually be labeled:
plt.xlabel('Time (TDB - 2457000)')
or better:
plt.xlabel('Time (BJDTDB - 2457000)')
On the face it, that would seem reasonable. As per Cliff's 2021 comment in this topic, my understanding is that TESS uses BJDTDB.
Others should feel free to comment.
David
Indeed, TESS uses BJD_TDB. Here are the online utilities that perform the conversion between JD, BJD, HJD: https://astroutils.astronomy.osu.edu/time/
The paper that describes the principles is here: https://ui.adsabs.harvard.edu/abs/2010PASP..122..935E/abstract