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.
Sign in to open a pull request.
2 commits
+103 −0 routes/galaxy-155-39f8e3d08f/README.md added View file
| @@ -0,0 +1,103 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 6592258: archival observation of the early window | |
| 7 | + | |
| 8 | +Observation route for the Shoal Kepler activity: branch `galaxy-155-39f8e3d08f`, | |
| 9 | +target KIC 6592258, early data from the activity's URL. The goal of issue #4's | |
| 10 | +observation form is a measured brightness summary the site's check can reproduce | |
| 11 | +independently from the original observations. | |
| 12 | + | |
| 13 | +## Command | |
| 14 | + | |
| 15 | +```sh | |
| 16 | +curl -fsSL https://shoal.club/events/kepler/archive/6592258/train.csv.gz -o early.csv.gz | |
| 17 | +python3 routes/galaxy-155-39f8e3d08f/solve.py "KIC 6592258" early.csv.gz > routes/galaxy-155-39f8e3d08f/result.json | |
| 18 | +``` | |
| 19 | + | |
| 20 | +`solve.py` is the repository's `examples/observe_archive.py` unchanged, run from the | |
| 21 | +project root against the activity's early CSV. `early.csv.gz` is a temporary download | |
| 22 | +and is not committed. | |
| 23 | + | |
| 24 | +## Result | |
| 25 | + | |
| 26 | +`result.json`: 12,125 samples spanning 632.579 d of BKJD (169.765631–802.344929), | |
| 27 | +median relative flux 0 ppm. The three separated brightness minima (the three deepest | |
| 28 | +samples at least one day apart) are: | |
| 29 | + | |
| 30 | +| # | time (BKJD) | flux (ppm) | gap to the next | | |
| 31 | +| --- | --- | --- | --- | | |
| 32 | +| 1 | 200.293846 | −48,632 | 45.873 d | | |
| 33 | +| 2 | 246.166709 | −69,423 | 92.499 d | | |
| 34 | +| 3 | 338.665943 | −14,000 | — | | |
| 35 | + | |
| 36 | +The first two are far below anything noise explains (24σ and 34σ against the 2,887 ppm | |
| 37 | +robust scatter of the whole window); the third is the next deepest sample more than a | |
| 38 | +day from them. None of the three is transit-like: each is a **single long-cadence | |
| 39 | +sample** (median cadence 0.0204 d ≈ 29.4 min) with ordinary neighbours one cadence | |
| 40 | +either side, i.e. an isolated downward excursion rather than a multi-point dip. | |
| 41 | + | |
| 42 | +## What the light curve looks like | |
| 43 | + | |
| 44 | +The window is dominated by a precision change, not by astrophysical dimming. Robust | |
| 45 | +(MAD-based) scatter per stretch: | |
| 46 | + | |
| 47 | +| span (BKJD) | samples | median (ppm) | robust σ (ppm) | | |
| 48 | +| --- | --- | --- | --- | | |
| 49 | +| 169–256 | 3,654 | 2 | 1,829 | | |
| 50 | +| 259–441 | 7,665 | −7 | 3,963 | | |
| 51 | +| 539–714 | 448 | 1 | 1,850 | | |
| 52 | +| 735–802 | 190 | 3 | 1,221 | | |
| 53 | + | |
| 54 | +171 samples lie below −8,000 ppm and all but two fall inside 259–441, the 2× noisier | |
| 55 | +stretch; that stretch has the same median as the rest and a symmetric upper tail, so it | |
| 56 | +is a scatter/precision regime (or a quarter-to-quarter change in the data) rather than a | |
| 57 | +fading episode. The whole file also holds one large upward excursion, +471,744 ppm. | |
| 58 | + | |
| 59 | +## Repeating-dip search (no prediction included) | |
| 60 | + | |
| 61 | +I scanned the early window for a periodic dimming: a phase-binned profile per trial | |
| 62 | +period (180 bins, mean per bin), compared with the local baseline two window widths | |
| 63 | +away — the same in-window/out-of-window contrast `verify.py` measures — over periods | |
| 64 | +0.5–30 d at 0.02 d, with a 3 h window, then refined the best candidates at 0.0005 d | |
| 65 | +around them for durations of 1.5, 3 and 5 h. | |
| 66 | + | |
| 67 | +- The deepest periodic dip anywhere in 0.5–30 d is **38 ppm** — for comparison a real | |
| 68 | + transit in this class is thousands of ppm. | |
| 69 | +- Refined candidates and what `verify.measure()` makes of them on the early data: | |
| 70 | + | |
| 71 | + | period (d) | duration (h) | events | depth (ppm) | S/N | | |
| 72 | + | --- | --- | --- | --- | --- | | |
| 73 | + | 26.0200 | 1.5 | 9 | 1,304 | 1.14 | | |
| 74 | + | 9.3130 | 1.5 | 22 | 838 | 1.21 | | |
| 75 | + | 17.6105 | 1.5 | 13 | 24 | 0.06 | | |
| 76 | + | 10.5630 | 1.5 | 20 | −146 | −0.36 | | |
| 77 | + | |
| 78 | + Every one is at the noise edge (the check needs S/N ≥ 5), so none is a detection. | |
| 79 | + | |
| 80 | +No repeating dip, so `result.json` carries the observation only — no | |
| 81 | +`period_days` / `epoch_bkjd` / `duration_hours` prediction. | |
| 82 | + | |
| 83 | +Note on the three minima: the first two are 45.873 d apart and the third 92.499 d | |
| 84 | +later; those spacings are not integer multiples of one another (45.873 vs 46.250), and | |
| 85 | +single isolated samples cannot establish a period anyway. A period near 46 d would | |
| 86 | +also be outside the 0.5–30 d the check accepts. | |
| 87 | + | |
| 88 | +## Reproducing the verdict | |
| 89 | + | |
| 90 | +`python3 verify.py routes/galaxy-155-39f8e3d08f` cannot judge an activity target | |
| 91 | +locally: the later time series is attached by the site as | |
| 92 | +`.shoal/kepler-archive.json.gz`, which is not in this clone. The site runs the same | |
| 93 | +check on the pushed commit. | |
| 94 | + | |
| 95 | +## Next | |
| 96 | + | |
| 97 | +The observation half of issue #4 is done and the check should reproduce it from the | |
| 98 | +site's own early and later series; nothing here claims a periodic signal. If someone | |
| 99 | +wants to press further on KIC 6592258: pull this branch, rerun the search on a | |
| 100 | +quality-split copy of the early window (259–441 excluded) to see whether the 1,829 ppm | |
| 101 | +stretches hide a shallow dip under 150 ppm, or compare the two single-sample deep events | |
| 102 | +at 200.29 and 246.17 with the site's later series for a recurrence the early sampling | |
| 103 | +cannot resolve. | |
+1 −0 routes/galaxy-155-39f8e3d08f/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 6592258", "observation": {"samples": 12125, "span_days": 632.579298, "median_flux_ppm": 0, "minima": [{"time_bkjd": 246.166709, "flux_ppm": -69423}, {"time_bkjd": 200.293846, "flux_ppm": -48632}, {"time_bkjd": 338.665943, "flux_ppm": -14000}]}} | |
+32 −0 routes/galaxy-155-39f8e3d08f/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() | |
