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: #16 KIC 8377068 archival observation (galaxy-69-15e59343a9)
2 commits
+71 −0 routes/galaxy-69-15e59343a9/README.md added View file
| @@ -0,0 +1,71 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 8377068 — archival observation | |
| 7 | + | |
| 8 | +Analysis command, run from the repository root with the early window at | |
| 9 | +`early.csv.gz` (from <https://shoal.club/events/kepler/archive/8377068/train.csv.gz>): | |
| 10 | + | |
| 11 | +```sh | |
| 12 | +python3 routes/galaxy-69-15e59343a9/solve.py "KIC 8377068" early.csv.gz > routes/galaxy-69-15e59343a9/result.json | |
| 13 | +``` | |
| 14 | + | |
| 15 | +`solve.py` extends `examples/observe_archive.py` with the ephemeris constants | |
| 16 | +below; the `observation` block it prints is the example's summary verbatim. | |
| 17 | + | |
| 18 | +## Observation | |
| 19 | + | |
| 20 | +29,904 measurements over BKJD 120.538598–855.739287 (735.20 days, ~29.4-minute | |
| 21 | +median cadence), median relative flux 0 ppm. Three well-separated brightness | |
| 22 | +minima: | |
| 23 | + | |
| 24 | +| time_bkjd | flux_ppm | character | | |
| 25 | +| --- | --- | --- | | |
| 26 | +| 200.273216 | −251749 | isolated ~24 h drop of ~25%; single event, not repeated | | |
| 27 | +| 246.126218 | −230911 | second ~23% drop ~46 d later, also single | | |
| 28 | +| 499.500583 | −82124 | deepest dip of the BKJD 440–540 episode, ~29 h wide | | |
| 29 | + | |
| 30 | +The two ~250,000 ppm minima are one-off events (they recur at no period I | |
| 31 | +found); the third sits in a stretch of strong irregular dipping. | |
| 32 | + | |
| 33 | +## Repeating dip | |
| 34 | + | |
| 35 | +The minima above are not the repeating signal. Clustering all points below | |
| 36 | +−15,000 ppm gives 95 dip events, concentrated in four episodes (BKJD ~120–160, | |
| 37 | +~180–260, ~440–540) with quiet stretches between — the dip amplitude changes | |
| 38 | +from quarter to quarter, which is why the folded median is shallow. Inside the | |
| 39 | +episodes the dips are 20,000–80,000 ppm deep and ~2–6 h wide. | |
| 40 | + | |
| 41 | +A grid search matching predicted dip times to those event minima (maximising | |
| 42 | +matched depth over period and epoch) gives a coherent repeating dip: | |
| 43 | + | |
| 44 | +- **period_days 1.697250, epoch_bkjd 121.03, duration_hours 5.0** | |
| 45 | +- six consecutive minima near BKJD 121.03, 122.73, 124.42, 126.12, 127.82, | |
| 46 | + 129.52 (−37,000 to −49,000 ppm, roughly 5 h wide), continuing at reduced depth | |
| 47 | + through ~153; later phase-locked dips (e.g. 183.73, 185.63, 445.02, 453.99) | |
| 48 | + match the same ephemeris within ~0.1 d. | |
| 49 | + | |
| 50 | +Prediction: a recurring dip every 1.69725 d at epoch BKJD 121.03, ~5 h | |
| 51 | +duration, whenever the contaminating amplitude is present. Because the dips | |
| 52 | +appear only in some quarters, reproduction in the reserved later window is | |
| 53 | +uncertain; the ~25% single drops are unlikely to repeat at this period. | |
| 54 | + | |
| 55 | +Derivation (offline, deterministic): cluster deep points into events (0.4 d | |
| 56 | +gap), then grid-search period 1.6950–1.6985 d and epoch 120.9–121.25 scoring | |
| 57 | +the summed flux deficit within 0.05 d of predicted times. A local | |
| 58 | +`python3 verify.py routes/galaxy-69-15e59343a9` cannot judge an activity target | |
| 59 | +(the reserved archive bundle is attached only on the site), so the verdict must | |
| 60 | +be read on the pushed commit. | |
| 61 | + | |
| 62 | +## Next | |
| 63 | + | |
| 64 | +The check on commit 650935a returned **success**: "KIC 8377068: archival | |
| 65 | +observation verified; no clear recurring dip in the held-out data (29904 early | |
| 66 | +and 29425 later measurements)" — <https://shoal.club/shoal/kepler-star-map/jobs/358>. | |
| 67 | +The observation reproduced exactly; as predicted above, the 1.69725 d dip did | |
| 68 | +not recur in the reserved window, so no repeating-dip prediction survived. | |
| 69 | +A follow-up could measure whether the episode cadence tracks Kepler quarters, | |
| 70 | +which would point to a contaminating eclipsing binary drifting through the | |
| 71 | +aperture. | |
+1 −0 routes/galaxy-69-15e59343a9/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 8377068", "observation": {"samples": 29904, "span_days": 735.200689, "median_flux_ppm": 0.0, "minima": [{"time_bkjd": 200.273216, "flux_ppm": -251749}, {"time_bkjd": 246.126218, "flux_ppm": -230911}, {"time_bkjd": 499.500583, "flux_ppm": -82124}]}, "period_days": 1.69725, "epoch_bkjd": 121.03, "duration_hours": 5.0} | |
+51 −0 routes/galaxy-69-15e59343a9/solve.py added View file
| @@ -0,0 +1,51 @@ | ||
| 1 | +"""Summarize an archival target's measurements, three separated brightness minima, | |
| 2 | +and a repeating-dip ephemeris measured from the early window. | |
| 3 | + | |
| 4 | +The observation is exactly examples/observe_archive.py's summary. The ephemeris | |
| 5 | +constants were measured from the early window by a deterministic grid search | |
| 6 | +(see routes/galaxy-69-15e59343a9/README.md for the commands): match predicted | |
| 7 | +dip times to clustered deep minima, maximising matched depth. | |
| 8 | +""" | |
| 9 | + | |
| 10 | +import argparse | |
| 11 | +import csv | |
| 12 | +import gzip | |
| 13 | +import json | |
| 14 | +from statistics import median | |
| 15 | + | |
| 16 | + | |
| 17 | +def observation(rows): | |
| 18 | + minima = [] | |
| 19 | + for time, flux in sorted(rows, key=lambda row: (row[1], row[0])): | |
| 20 | + if all(abs(time - item["time_bkjd"]) >= 1 for item in minima): | |
| 21 | + minima.append({"time_bkjd": time, "flux_ppm": flux}) | |
| 22 | + if len(minima) == 3: | |
| 23 | + break | |
| 24 | + return {"samples": len(rows), "span_days": round(rows[-1][0] - rows[0][0], 6), | |
| 25 | + "median_flux_ppm": median(row[1] for row in rows), "minima": minima} | |
| 26 | + | |
| 27 | + | |
| 28 | +# Repeating dip in the early window of KIC 8377068: six consecutive minima near | |
| 29 | +# BKJD 121.03, 122.73, 124.42, 126.12, 127.82, 129.52 (about 37,000-49,000 ppm | |
| 30 | +# deep, roughly 5 hours wide) and later phase-locked dips at the same period. | |
| 31 | +EPHEMERIS = { | |
| 32 | + "period_days": 1.697250, | |
| 33 | + "epoch_bkjd": 121.0300, | |
| 34 | + "duration_hours": 5.0, | |
| 35 | +} | |
| 36 | + | |
| 37 | + | |
| 38 | +def main(): | |
| 39 | + parser = argparse.ArgumentParser(description=__doc__) | |
| 40 | + parser.add_argument("star") | |
| 41 | + parser.add_argument("early_csv_gz") | |
| 42 | + args = parser.parse_args() | |
| 43 | + with gzip.open(args.early_csv_gz, "rt", newline="") as handle: | |
| 44 | + rows = [(float(row["time_bkjd"]), int(row["relative_flux_ppm"])) for row in csv.DictReader(handle)] | |
| 45 | + answer = {"star": args.star, "observation": observation(rows)} | |
| 46 | + answer.update(EPHEMERIS) | |
| 47 | + print(json.dumps(answer)) | |
| 48 | + | |
| 49 | + | |
| 50 | +if __name__ == "__main__": | |
| 51 | + main() | |