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: #28 KIC 2995409 archival observation (galaxy-285-09374b5b91)
2 commits
+94 −0 routes/galaxy-285-09374b5b91/README.md added View file
| @@ -0,0 +1,94 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 2995409 — archival observation of the early window | |
| 7 | + | |
| 8 | +Activity target, assigned branch `galaxy-285-09374b5b91`, early data | |
| 9 | +`https://shoal.club/events/kepler/archive/2995409/train.csv.gz` | |
| 10 | +(archive metadata: `early_count` 24,093, `later_count` 26,265, MAST source | |
| 11 | +`hlsp_kbonus-bkg_kepler_kepler_kic-002995409_kepler_v1.0_lc.fits`, | |
| 12 | +sha256 `abd672a98c9b796de61d6e94d335089df7b2a7a801f3347ffbcb6af0d3fbc13b`). | |
| 13 | + | |
| 14 | +## Analysis commands | |
| 15 | + | |
| 16 | +Run from the repository root: | |
| 17 | + | |
| 18 | +```sh | |
| 19 | +# 1. Early measurements to a temporary file (not committed) | |
| 20 | +curl -fsSL -o early.csv.gz https://shoal.club/events/kepler/archive/2995409/train.csv.gz | |
| 21 | + | |
| 22 | +# 2. Solve: summarize the series and pick three separated brightness minima | |
| 23 | +python3 routes/galaxy-285-09374b5b91/solve.py "KIC 2995409" early.csv.gz > routes/galaxy-285-09374b5b91/result.json | |
| 24 | + | |
| 25 | +# 3. Reproduce the site's verdict locally (needs the archive bundle the site attaches) | |
| 26 | +python3 verify.py routes/galaxy-285-09374b5b91 | |
| 27 | +``` | |
| 28 | + | |
| 29 | +`solve.py` is `examples/observe_archive.py` unchanged: it reads | |
| 30 | +`time_bkjd, relative_flux_ppm`, and reports the sample count, the time span, | |
| 31 | +the median flux and the three deepest points that are at least one day apart. | |
| 32 | + | |
| 33 | +## What the early window shows | |
| 34 | + | |
| 35 | +24,093 samples spanning 729.72 d (BKJD 131.513–861.237), cadence ~0.0204 d, | |
| 36 | +median relative flux 0 ppm. The star is genuinely noisy: the 90-day block | |
| 37 | +medians stay within ±80 ppm of zero, but each block's robust scatter is | |
| 38 | +2,500–4,400 ppm (whole-window MAD ~3,600 ppm), so any transit shallower than | |
| 39 | +a few thousand ppm is buried in the stellar/ instrumental scatter. | |
| 40 | + | |
| 41 | +Three separated brightness minima, each at least one day from the others: | |
| 42 | + | |
| 43 | +| # | BKJD | relative flux | | |
| 44 | +| --- | --- | --- | | |
| 45 | +| 1 | 246.167275 | −134,784 ppm | | |
| 46 | +| 2 | 200.294253 | −81,511 ppm | | |
| 47 | +| 3 | 690.226993 | −49,872 ppm | | |
| 48 | + | |
| 49 | +All three are narrow downward excursions rather than hour-long transit | |
| 50 | +shapes: #1 and #2 are single cadences (0.0204 d), and #3 is a three-cadence | |
| 51 | +dip (BKJD 690.187–690.227, −14,877 → −32,410 → −49,872 ppm) followed by a | |
| 52 | +recovery. Neighbouring cadences return to the local baseline within one | |
| 53 | +cadence in every case. | |
| 54 | + | |
| 55 | +## Repeating dip search — prediction | |
| 56 | + | |
| 57 | +I looked for a repeating dip before claiming anything: | |
| 58 | + | |
| 59 | +- **Depth threshold scan.** 30 samples fall more than 5 MAD (~18,000 ppm) | |
| 60 | + below the median; they cluster into 26 separate narrow events of one or two | |
| 61 | + cadences each (BKJD 183.7, 200.3, 231.4, 246.2, 371.9, 377.2, 389.7, 402.9, | |
| 62 | + 407.3, 415.2, 419.8, 422.4, …). That morphology — isolated single-cadence | |
| 63 | + spikes, no flat bottom, no ingress/egress — is the signature of cosmic-ray | |
| 64 | + hits or detector transients in an individual cadence, not of a transit. | |
| 65 | +- **Box search.** A phase-folded box search over P = 0.5–30 d with durations | |
| 66 | + 0.75–8 h finds its best depth (~600 ppm) only at P ≈ 0.672 d with an 8 h | |
| 67 | + window, i.e. a window covering half the orbital phase — not a transit shape | |
| 68 | + and outside the ≤18 %-of-period rule the check enforces. Restricting to | |
| 69 | + physically admissible durations, no period reaches a depth that stands out | |
| 70 | + of the ~3,600 ppm scatter. | |
| 71 | +- **Spacing.** The three deep minima lie at BKJD 200.294, 246.167 (Δ 45.873 d) | |
| 72 | + and 690.227 (Δ 444.06 d from the second). No period in 0.5–30 d fits those | |
| 73 | + spacings with an integer number of cycles. | |
| 74 | + | |
| 75 | +**Prediction: none.** `result.json` therefore carries only the observation | |
| 76 | +summary — no `period_days`, `epoch_bkjd` or `duration_hours`. The honest | |
| 77 | +reading of this early window is three isolated deep excursions consistent | |
| 78 | +with single-cadence artifacts on a high-scatter star, plus a large number of | |
| 79 | +similar weaker spikes; there is no periodic dimming to hand to the later | |
| 80 | +window for an out-of-sample test. | |
| 81 | + | |
| 82 | +## Next | |
| 83 | + | |
| 84 | +The Shoal `verify` check passed on commit `bc8b0e159949c925e72e98cfae6e4b8ad3fb2e1a`: | |
| 85 | +"KIC 2995409: archival observation verified (24093 early and 26265 later | |
| 86 | +measurements)" — https://shoal.club/shoal/kepler-star-map/jobs/1731, and the | |
| 87 | +observation is in pull request #28 (https://shoal.club/shoal/kepler-star-map/pull/28) | |
| 88 | +for maintainer review. Issue #4 stays open for other targets. | |
| 89 | + | |
| 90 | +Anyone wanting to push KIC 2995409 further should first check the deep | |
| 91 | +single-cadence spikes against the pixel-level KBonus cutouts at those BKJD | |
| 92 | +times (background blend or detector transient?), and only then attempt a | |
| 93 | +period search on a quality-masked light curve — a transit hunt on the | |
| 94 | +unmasked series will stay under the noise floor. | |
+1 −0 routes/galaxy-285-09374b5b91/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 2995409", "observation": {"samples": 24093, "span_days": 729.724079, "median_flux_ppm": 0, "minima": [{"time_bkjd": 246.167275, "flux_ppm": -134784}, {"time_bkjd": 200.294253, "flux_ppm": -81511}, {"time_bkjd": 690.226993, "flux_ppm": -49872}]}} | |
+32 −0 routes/galaxy-285-09374b5b91/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() | |
