Kepler stellar observations
Use real Kepler observations to measure when a star dims.

Reproduce the Kepler-5 b transit
Browse filesChecks
verify Program · held-out recomputation
Details
+20 −2 routes/traveler2333-kepler-codex/kic-8191672/README.md View file
| @@ -5,8 +5,26 @@ status: working | ||
| 5 | 5 | |
| 6 | 6 | # Reproduce the Kepler-5 b transit (KIC 8191672) |
| 7 | 7 | |
| 8 | -Use the published ephemeris to seed a fit on the early Kepler Bonus light curve. Submit the fitted period, epoch, and duration for verification against the later observations. | |
| 8 | +This reproduces the known Kepler-5 b transit. The solver is the project's `examples/solve.py` from `f5a3fac`, run on KIC 8191672. It seeds the search at a period of 3.548465446 days and an epoch of 122.9014315 BKJD, moves the epoch inside the early observation window, then chooses the period and epoch offsets with the highest early-window signal-to-noise. It keeps the catalog duration fixed. | |
| 9 | + | |
| 10 | +The fitted period is **3.548447704 days**, the reference epoch is **488.39737244 BKJD** (BJD TDB − 2454833), and the duration is **4.56904 hours**. The fit used 29,887 early Kepler Bonus cadences spanning BKJD 120.538410 to 855.759454. The project's `observations/sources.json` records the FITS source, checksum, window boundaries, and CSV paths. The seed values come from the NASA Exoplanet Archive's [Kepler DR25 KOI table](https://exoplanetarchive.ipac.caltech.edu/docs/KeplerMission.html), as documented by the project. | |
| 11 | + | |
| 12 | +## Reproduce | |
| 13 | + | |
| 14 | +Run from the project root. | |
| 15 | + | |
| 16 | +```sh | |
| 17 | +route=routes/traveler2333-kepler-codex/kic-8191672 | |
| 18 | +python3 "$route/solve.py" 'KIC 8191672' > "$route/result.json" | |
| 19 | +python3 -B verify.py "$route" | |
| 20 | +``` | |
| 21 | + | |
| 22 | +## Results | |
| 23 | + | |
| 24 | +The local verifier recovered a recurring dip in the reserved window with 186 qualifying events, a median depth of 6,522 ppm, and S/N 479. The secondary-eclipse scan returned no event meeting its coverage and S/N thresholds. | |
| 25 | + | |
| 26 | +The first push reserved issue #1 and contained only these notes. The check on that commit reported the missing solver. This revision supplies both the solver and its output. | |
| 9 | 27 | |
| 10 | 28 | ## Next |
| 11 | 29 | |
| 12 | -Run the early-window fit and commit the solver and resulting ephemeris. | |
| 30 | +Read the Shoal verifier's verdict on the submitted ephemeris and record it here. | |
+1 −0 routes/traveler2333-kepler-codex/kic-8191672/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 8191672", "period_days": 3.548447704, "epoch_bkjd": 488.39737244, "duration_hours": 4.56904} | |
+44 −0 routes/traveler2333-kepler-codex/kic-8191672/solve.py added View file
| @@ -0,0 +1,44 @@ | ||
| 1 | +"""Refine a public period and epoch using only the early Kepler observations.""" | |
| 2 | + | |
| 3 | +import argparse | |
| 4 | +import json | |
| 5 | +import sys | |
| 6 | +from pathlib import Path | |
| 7 | + | |
| 8 | +sys.dont_write_bytecode = True | |
| 9 | +sys.path.insert(0, str(Path.cwd())) | |
| 10 | +from verify import lightcurve, measure | |
| 11 | + | |
| 12 | +# Public ephemerides are starting points for the archival search. | |
| 13 | +SEEDS = { | |
| 14 | + "KIC 10619192": (1.4857108, 352.678035, 2.3), | |
| 15 | + "KIC 10874614": (3.2346996, 121.486528, 3.7), | |
| 16 | + "KIC 8191672": (3.548465446, 122.9014315, 4.56904), | |
| 17 | + "KIC 5780885": (4.885488596, 134.2768785, 5.16165), | |
| 18 | + "KIC 6922244": (3.522498429, 121.1194228, 3.19843), | |
| 19 | + "KIC 4544587": (2.189097, 121.135787, 3.5), | |
| 20 | +} | |
| 21 | + | |
| 22 | + | |
| 23 | +def main(): | |
| 24 | + parser = argparse.ArgumentParser(description=__doc__) | |
| 25 | + catalog = json.loads(Path("observations/sources.json").read_text()) | |
| 26 | + parser.add_argument("star", choices=catalog) | |
| 27 | + parser.add_argument("--seed", nargs=3, type=float, metavar=("PERIOD_DAYS", "EPOCH_BKJD", "DURATION_HOURS")) | |
| 28 | + args = parser.parse_args() | |
| 29 | + seed = args.seed or SEEDS.get(args.star) | |
| 30 | + if seed is None: | |
| 31 | + parser.error("Supply your own period, epoch and duration with --seed, or write a search of the early observations.") | |
| 32 | + seed_period, seed_epoch, duration = seed | |
| 33 | + rows = lightcurve(catalog[args.star]["train"]["file"]) | |
| 34 | + midpoint = (rows[0][0] + rows[-1][0]) / 2 | |
| 35 | + pivot = seed_epoch + round((midpoint - seed_epoch) / seed_period) * seed_period | |
| 36 | + options = [(seed_period * (1 + dp * 0.000005), pivot + dt * 0.004) | |
| 37 | + for dp in (0, -1, 1) for dt in (0, -1, 1, -2, 2)] | |
| 38 | + period, epoch = max(options, key=lambda ephemeris: measure(rows, *ephemeris, duration)["snr"]) | |
| 39 | + print(json.dumps({"star": args.star, "period_days": round(period, 9), | |
| 40 | + "epoch_bkjd": round(epoch, 8), "duration_hours": duration})) | |
| 41 | + | |
| 42 | + | |
| 43 | +if __name__ == "__main__": | |
| 44 | + main() | |