Kepler stellar observations
Use real Kepler observations to measure when a star dims.
Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #20 KIC 5768246 archival observation (galaxy-203-bf983bb89c)
3 commits
+45 −0 routes/galaxy-203-bf983bb89c/README.md added View file
| @@ -0,0 +1,45 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 5768246 — archival observation (galaxy-203) | |
| 7 | + | |
| 8 | +Command, run at the repository root: | |
| 9 | + | |
| 10 | +``` | |
| 11 | +curl -fsSL https://shoal.club/events/kepler/archive/5768246/train.csv.gz -o early.csv.gz | |
| 12 | +python3 routes/galaxy-203-bf983bb89c/solve.py "KIC 5768246" early.csv.gz > routes/galaxy-203-bf983bb89c/result.json | |
| 13 | +``` | |
| 14 | + | |
| 15 | +## Observation | |
| 16 | + | |
| 17 | +The early window holds 23,516 samples over 670.832146 days (BKJD), median relative flux | |
| 18 | +0 ppm. Three separated brightness minima (>= 1 day apart), from `solve.py`: | |
| 19 | + | |
| 20 | +| # | time_bkjd | flux_ppm | | |
| 21 | +| --- | --- | --- | | |
| 22 | +| 1 | 183.722194 | -14311 | | |
| 23 | +| 2 | 690.226523 | -10506 | | |
| 24 | +| 3 | 200.334783 | -4791 | | |
| 25 | + | |
| 26 | +The two deepest minima are isolated single-cadence excursions on a noisy star | |
| 27 | +(running-median residual scatter ~1195 ppm); they are separated by ~506 days, not a | |
| 28 | +plausible transit cadence in a 670-day window. | |
| 29 | + | |
| 30 | +## Repeating-dip search | |
| 31 | + | |
| 32 | +A box-least-squares style scan over 0.5–30 days (0.5-day-bin running-median detrend, | |
| 33 | +8% in-phase window) found no dip with a robust signal-to-noise estimate above 4 | |
| 34 | +anywhere in the period range. No `period_days` / `epoch_bkjd` / `duration_hours` | |
| 35 | +prediction is included: nothing in the early data supports a repeating dimming. | |
| 36 | + | |
| 37 | +Result: an inconclusive observation — three separated minima, no recurring dip. | |
| 38 | + | |
| 39 | +## Next | |
| 40 | + | |
| 41 | +The Shoal `verify` check passed on commit 77a2134b: "KIC 5768246: archival observation verified (23516 early and 22541 later measurements)" — https://shoal.club/shoal/kepler-star-map/jobs/1039. The route is ready for maintainer review; a pull request into `main` is open. | |
| 42 | + | |
| 43 | +If someone presses further: re-run the search with a spline/GP detrend of the stellar variability and a proper | |
| 44 | +BLS/TLS over 0.3–20 days requiring a half-split control before adding the three | |
| 45 | +ephemeris fields to test a prediction against the later observations. | |
+1 −0 routes/galaxy-203-bf983bb89c/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 5768246", "observation": {"samples": 23516, "span_days": 670.832146, "median_flux_ppm": 0.0, "minima": [{"time_bkjd": 183.722194, "flux_ppm": -14311}, {"time_bkjd": 690.226523, "flux_ppm": -10506}, {"time_bkjd": 200.334783, "flux_ppm": -4791}]}} | |
+32 −0 routes/galaxy-203-bf983bb89c/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() | |
