You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Looks like there is an OBO error in tess_cloud.cutout_asteroid #4
Good news: the off-by-one error in the pixel position should be solved via #8.
Regarding the time error: there is indeed a ~70 second mismatch between the times reported by TessCut and those populated by tess-cloud. The underlying reason is that TessCut uses BTJD values obtained from the TSTART and TSTOP header keywords in the FFI headers (i.e. time = (TSTART + TSTOP) / 2), whereas tess-cloud has been using the ISO UTC timestamps obtained from the DATE-OBS and DATE-END header keywords.
Using AstroPy/Lightkurve to convert DATE-OBS into TSTART yields a ~70 second error, which is the root cause of the time mismatch issue:
There are several possible solutions to fix this mismatch, but I would like to fix/understand the conversion error first. It is no doubt related to the conversion from/to UTC.
In the example above, replacing tstart_from_utc = Time(hdr["DATE-OBS"]).btjd
with tstart_from_utc = Time(hdr["DATE-OBS"]).tdb.btjd
resolves the offset.
The caveat is that AstroPy time objects make a distinction between a time's format (e.g. ISO, JD, MJD) and its scale (e.g. UTC, TDB). This can be confusing because the acronym "BTJD" refers both to a format (TJD) and to a scale (TDB), but it is implemented as an AstroPy time format.
Activity
barentsen commentedon Jul 20, 2021
Good news: the off-by-one error in the pixel position should be solved via #8.
Regarding the time error: there is indeed a ~70 second mismatch between the times reported by TessCut and those populated by tess-cloud. The underlying reason is that TessCut uses BTJD values obtained from the
TSTARTandTSTOPheader keywords in the FFI headers (i.e.time = (TSTART + TSTOP) / 2), whereas tess-cloud has been using the ISO UTC timestamps obtained from theDATE-OBSandDATE-ENDheader keywords.Using AstroPy/Lightkurve to convert
DATE-OBSintoTSTARTyields a ~70 second error, which is the root cause of the time mismatch issue:There are several possible solutions to fix this mismatch, but I would like to fix/understand the conversion error first. It is no doubt related to the conversion from/to UTC.
...to be continued.
barentsen commentedon Jul 20, 2021
In the example above, replacing
tstart_from_utc = Time(hdr["DATE-OBS"]).btjdwith
tstart_from_utc = Time(hdr["DATE-OBS"]).tdb.btjdresolves the offset.
The caveat is that AstroPy time objects make a distinction between a time's format (e.g. ISO, JD, MJD) and its scale (e.g. UTC, TDB). This can be confusing because the acronym "BTJD" refers both to a format (TJD) and to a scale (TDB), but it is implemented as an AstroPy time format.
...to be continued.
barentsen commentedon Jul 21, 2021
I believe the time inconsistency will be addressed via lightkurve/lightkurve#1112
(to do: verify the fix)
barentsen commentedon Jul 27, 2021
Update: #1112 was merged a few days ago and will be part of Lightkurve v2.0.11.