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
+46 −0 routes/galaxy-257-26e666afc6/README.md added View file
| @@ -0,0 +1,46 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 2305904 — early-window observation (activity target) | |
| 7 | + | |
| 8 | +Nickname: **cathy**, named by the observer (hygger1990). The map shows this star under the first-verified contributor's name (hygger1990); that record is fixed by the activity and has no rename interface, so the nickname lives in these notes. | |
| 9 | + | |
| 10 | +## Sources | |
| 11 | + | |
| 12 | +- Early measurements: `https://shoal.club/events/kepler/archive/2305904/train.csv.gz` → `early.csv.gz` (temporary, at the repo root, not committed) | |
| 13 | +- 212 samples, BKJD 120.539–125.382 (span 4.843 days), `relative_flux_ppm` relative to the median. | |
| 14 | + | |
| 15 | +## Analysis | |
| 16 | + | |
| 17 | +`solve.py` is `examples/observe_archive.py`, unmodified, run from the project root: | |
| 18 | + | |
| 19 | +```sh | |
| 20 | +python3 routes/galaxy-257-26e666afc6/solve.py "KIC 2305904" early.csv.gz > routes/galaxy-257-26e666afc6/result.json | |
| 21 | +``` | |
| 22 | + | |
| 23 | +`result.json` holds the standard summary: sample count, time span, median flux (0 ppm by construction) and the three separated brightness minima. | |
| 24 | + | |
| 25 | +## Interpretation | |
| 26 | + | |
| 27 | +Three separated brightness minima, each at least a day apart, deepest first: | |
| 28 | + | |
| 29 | +1. **BKJD 124.1357** — −15 112 ppm (deepest) | |
| 30 | +2. **BKJD 121.0500** — −11 469 ppm | |
| 31 | +3. **BKJD 122.5826** — −9 176 ppm | |
| 32 | + | |
| 33 | +The spacings are 1.533 days (121.050 → 122.583) and 1.553 days (122.583 → 124.136). Around a **period of roughly 1.54 days** the three events line up (121.050 + 2×1.543 ≈ 124.136), so I read this as a **recurring dimming** rather than three independent events. Prediction: a dip returning every ~1.54 days, i.e. near BKJD ≈ 121.05 + k·1.543 (k = …, −1, 0, 1, 2, …). | |
| 34 | + | |
| 35 | +Caveats, said plainly: | |
| 36 | + | |
| 37 | +- The dimmings are **broad**, not short transits: flux stays below −3 000 ppm for about 1–2 days around each minimum. That shape fits a broad or partial eclipse of a blended source better than a planetary transit, and the check's ephemeris rules (duration 0.75–8 h) would not admit it, so I do not attach `period_days` / `epoch_bkjd` / `duration_hours` to this submission. | |
| 38 | +- With three events in 4.84 days the period is a candidate, not a measurement: the two intervals agree to within ~1%, but nothing here tests odd/even orbits. A reproduction through the later window at ~1.54 days (or its multiples) is what would confirm it. | |
| 39 | + | |
| 40 | +Reported as a **recurring dip** (broad), per the project's convention. | |
| 41 | + | |
| 42 | +## Next | |
| 43 | + | |
| 44 | +- The first thing worth doing is testing the 1.54-day prediction out of sample: take `period_days ≈ 1.543`, `epoch_bkjd ≈ 124.1357` (deepest event, inside the training range) and a short in-window duration, and let the check measure the later light curve. If it reproduces, say so; if odd/even orbits differ, the true period is 2× (or 3×) larger. | |
| 45 | +- A second, wider reading of the early window (e.g. fold the 4.8-day span on 1.543 and on 3.086 days and compare) would sharpen the prediction before any later-window test. | |
| 46 | +- KIC 2305904 is not a `stars.json` target, so it lives only in this activity route; the standing issue 4 stays open for the next observation. | |
+1 −0 routes/galaxy-257-26e666afc6/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 2305904", "observation": {"samples": 212, "span_days": 4.84301, "median_flux_ppm": 0.0, "minima": [{"time_bkjd": 124.135668, "flux_ppm": -15112}, {"time_bkjd": 121.050037, "flux_ppm": -11469}, {"time_bkjd": 122.582636, "flux_ppm": -9176}]}} | |
+32 −0 routes/galaxy-257-26e666afc6/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() | |
