|
108 | 108 | "metadata": {}, |
109 | 109 | "source": [ |
110 | 110 | "SPOC data contains two time extensions:\n", |
111 | | - "1. `TIME`: the time of the observations in Barycentric Julian Date (i.e. at the solar system barycenter)\n", |
| 111 | + "1. `TIME`: the time of the observations in the Barycentric Dynamical Time scale (TDB) as a Barycentric Julian Dates (i.e. time at the solar system barycenter)\n", |
112 | 112 | "2. `TIMECORR`: the time correction applied to the original spacecraft time, to obtain `TIME`\n", |
113 | 113 | "\n", |
114 | 114 | "`lksearch` only works with spacecraft time. So we need to remove the SPOC applied time correction" |
|
299 | 299 | "id": "38e86c6d-ecd5-4f02-94fa-eda02601148f", |
300 | 300 | "metadata": {}, |
301 | 301 | "source": [ |
302 | | - "Looks like our correction is working!" |
| 302 | + "Looks like our correction is working!\n", |
| 303 | + "\n", |
| 304 | + "This has given us the number of seconds to apply to convert our time at the spacecraft into TDB." |
303 | 305 | ] |
304 | 306 | }, |
305 | 307 | { |
|
390 | 392 | }, |
391 | 393 | { |
392 | 394 | "cell_type": "code", |
393 | | - "execution_count": 18, |
| 395 | + "execution_count": null, |
394 | 396 | "id": "83bee026-047d-422d-a895-2ac23f373c54", |
395 | 397 | "metadata": {}, |
396 | 398 | "outputs": [], |
397 | 399 | "source": [ |
398 | 400 | "time, time_corr = hdulist[1].data['TIME'], hdulist[1].data['TIMECORR']\n", |
399 | 401 | "k = np.isfinite(time)\n", |
400 | | - "time, time_corr = time[k], time_corr[k]\n", |
| 402 | + "time, time_corr = time[k], time_corr[k]" |
| 403 | + ] |
| 404 | + }, |
| 405 | + { |
| 406 | + "cell_type": "markdown", |
| 407 | + "id": "817afae7", |
| 408 | + "metadata": {}, |
| 409 | + "source": [ |
| 410 | + "Note that TESS gives times in Barycentric **TESS** Julian Date which is offset from BJD by" |
| 411 | + ] |
| 412 | + }, |
| 413 | + { |
| 414 | + "cell_type": "code", |
| 415 | + "execution_count": null, |
| 416 | + "id": "a46fa67d", |
| 417 | + "metadata": {}, |
| 418 | + "outputs": [], |
| 419 | + "source": [ |
| 420 | + "ts.time_offset" |
| 421 | + ] |
| 422 | + }, |
| 423 | + { |
| 424 | + "cell_type": "markdown", |
| 425 | + "id": "c001636d", |
| 426 | + "metadata": {}, |
| 427 | + "source": [ |
| 428 | + "We calculate the time at the spacecraft using" |
| 429 | + ] |
| 430 | + }, |
| 431 | + { |
| 432 | + "cell_type": "code", |
| 433 | + "execution_count": null, |
| 434 | + "id": "53dc2eed", |
| 435 | + "metadata": {}, |
| 436 | + "outputs": [], |
| 437 | + "source": [ |
401 | 438 | "t = Time(time - time_corr + ts.time_offset, format='jd')" |
402 | 439 | ] |
403 | 440 | }, |
| 441 | + { |
| 442 | + "cell_type": "markdown", |
| 443 | + "id": "13368a28", |
| 444 | + "metadata": {}, |
| 445 | + "source": [ |
| 446 | + "Now we can calculate the barycentric time correction, i.e. the number of seconds to apply to the time at the spacecraft to obtain the time at the barycenter in TDB scale." |
| 447 | + ] |
| 448 | + }, |
404 | 449 | { |
405 | 450 | "cell_type": "code", |
406 | | - "execution_count": 19, |
| 451 | + "execution_count": null, |
407 | 452 | "id": "7fc89a8b-303b-43b4-9abd-144ed3bb2e1e", |
408 | 453 | "metadata": {}, |
409 | 454 | "outputs": [ |
|
423 | 468 | "ts.get_barycentric_time_correction(time=t, ra=ra, dec=dec)" |
424 | 469 | ] |
425 | 470 | }, |
| 471 | + { |
| 472 | + "cell_type": "markdown", |
| 473 | + "id": "191a51e8", |
| 474 | + "metadata": {}, |
| 475 | + "source": [ |
| 476 | + "We can plot this against the time in the TESScut FFI to see how much of a difference this made" |
| 477 | + ] |
| 478 | + }, |
426 | 479 | { |
427 | 480 | "cell_type": "code", |
428 | 481 | "execution_count": 20, |
|
0 commit comments