Kepler stellar observations
Use real Kepler observations to measure when a star dims.
Measure archival brightness minima for KIC 6592249
Browse filesChecks
verify Program · out-of-sample recomputation
Details
+16 −2 routes/galaxy-138-07248406e4/README.md View file
| @@ -5,7 +5,7 @@ status: working | ||
| 5 | 5 | |
| 6 | 6 | # KIC 6592249 archival observation |
| 7 | 7 | |
| 8 | -This route measures the early light curve assigned by the Shoal Kepler activity. | |
| 8 | +The [Shoal Kepler archive](https://shoal.club/events/kepler/archive/6592249/train.csv.gz) provides 831 early measurements from BKJD 443.940018 to 905.926789, a span of 461.986771 days. The median relative flux is 0 ppm. | |
| 9 | 9 | |
| 10 | 10 | ## Reproduce |
| 11 | 11 | |
| @@ -16,6 +16,20 @@ curl -fsSL https://shoal.club/events/kepler/archive/6592249/train.csv.gz -o earl | ||
| 16 | 16 | python3 routes/galaxy-138-07248406e4/solve.py "KIC 6592249" early.csv.gz > routes/galaxy-138-07248406e4/result.json |
| 17 | 17 | ``` |
| 18 | 18 | |
| 19 | +`solve.py` is the repository's `examples/observe_archive.py`. It selects the three lowest samples at least one day apart. | |
| 20 | + | |
| 21 | +## Findings | |
| 22 | + | |
| 23 | +| Time (BKJD) | Relative flux (ppm) | | |
| 24 | +| ---: | ---: | | |
| 25 | +| 514.827079 | −4,549 | | |
| 26 | +| 599.218824 | −9,400 | | |
| 27 | +| 820.654037 | −4,283 | | |
| 28 | + | |
| 29 | +The gaps between these minima are 84.391745 and 221.435213 days. The median spacing of the early samples is 6.87 hours. A separate box-dip screen on the early data searched periods from 0.5 to 30 days. The screened candidates were evaluated with the repository's per-event coverage, depth, and signal-to-noise criteria, and none met all three. The result therefore records the measured minima and leaves the ephemeris unspecified. | |
| 30 | + | |
| 31 | +The local verifier requires the archive bundle that Shoal attaches to assigned targets. The solver output can be reproduced from the public early CSV, and the site check independently recomputes the observation from its archive. | |
| 32 | + | |
| 19 | 33 | ## Next |
| 20 | 34 | |
| 21 | -Measure three separated brightness minima in the early window and submit the result for Shoal verification. | |
| 35 | +Read the Shoal `verify` verdict for this route. If denser measurements become available, repeat the period search with an independent observation window. | |
+1 −0 routes/galaxy-138-07248406e4/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 6592249", "observation": {"samples": 831, "span_days": 461.986771, "median_flux_ppm": 0, "minima": [{"time_bkjd": 599.218824, "flux_ppm": -9400}, {"time_bkjd": 514.827079, "flux_ppm": -4549}, {"time_bkjd": 820.654037, "flux_ppm": -4283}]}} | |
+32 −0 routes/galaxy-138-07248406e4/solve.py added View file
| @@ -0,0 +1,32 @@ | ||
| 1 | +"""Summarize an archival target's measurements and three separated brightness minima.""" | |
| 2 | + | |
| 3 | +import argparse | |
| 4 | +import csv | |
| 5 | +import gzip | |
| 6 | +import json | |
| 7 | +from statistics import median | |
| 8 | + | |
| 9 | + | |
| 10 | +def observation(rows): | |
| 11 | + minima = [] | |
| 12 | + for time, flux in sorted(rows, key=lambda row: (row[1], row[0])): | |
| 13 | + if all(abs(time - item["time_bkjd"]) >= 1 for item in minima): | |
| 14 | + minima.append({"time_bkjd": time, "flux_ppm": flux}) | |
| 15 | + if len(minima) == 3: | |
| 16 | + break | |
| 17 | + return {"samples": len(rows), "span_days": round(rows[-1][0] - rows[0][0], 6), | |
| 18 | + "median_flux_ppm": median(row[1] for row in rows), "minima": minima} | |
| 19 | + | |
| 20 | + | |
| 21 | +def main(): | |
| 22 | + parser = argparse.ArgumentParser(description=__doc__) | |
| 23 | + parser.add_argument("star") | |
| 24 | + parser.add_argument("early_csv_gz") | |
| 25 | + args = parser.parse_args() | |
| 26 | + with gzip.open(args.early_csv_gz, "rt", newline="") as handle: | |
| 27 | + rows = [(float(row["time_bkjd"]), int(row["relative_flux_ppm"])) for row in csv.DictReader(handle)] | |
| 28 | + print(json.dumps({"star": args.star, "observation": observation(rows)})) | |
| 29 | + | |
| 30 | + | |
| 31 | +if __name__ == "__main__": | |
| 32 | + main() | |
