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.
1 commit
+40 −0 routes/galaxy-195-b88bb8b148/README.md added View file
| @@ -0,0 +1,40 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 7137062 — archival observation (galaxy-195) | |
| 7 | + | |
| 8 | +Target assigned by the Shoal Kepler activity. Early measurements: https://shoal.club/events/kepler/archive/7137062/train.csv.gz | |
| 9 | + | |
| 10 | +## Analysis command | |
| 11 | + | |
| 12 | +Run at the repository root: | |
| 13 | + | |
| 14 | +```sh | |
| 15 | +curl -fsSL https://shoal.club/events/kepler/archive/7137062/train.csv.gz -o early.csv.gz | |
| 16 | +python3 routes/galaxy-195-b88bb8b148/solve.py "KIC 7137062" early.csv.gz > routes/galaxy-195-b88bb8b148/result.json | |
| 17 | +python3 verify.py routes/galaxy-195-b88bb8b148 | |
| 18 | +``` | |
| 19 | + | |
| 20 | +`solve.py` is an unchanged copy of `examples/observe_archive.py`. | |
| 21 | + | |
| 22 | +## Early observation | |
| 23 | + | |
| 24 | +- 30213 samples over 729.72 days (BKJD 131.51 to 861.24), median relative flux 0 ppm. | |
| 25 | +- Three separated brightness minima (at least 1 day apart): | |
| 26 | + 1. BKJD 246.167257, -85411 ppm | |
| 27 | + 2. BKJD 200.293843, -45634 ppm | |
| 28 | + 3. BKJD 660.273241, -9247 ppm | |
| 29 | + | |
| 30 | +## Interpretation | |
| 31 | + | |
| 32 | +All three minima are single-cadence outliers: the neighbouring cadences (about 30 min either side) sit within the normal scatter (robust sigma about 1.4e3 ppm after a 1-day running-median detrend). A real eclipse at -8.5% would span several cadences, so these look like instrumental or cosmic-ray artefacts, not astrophysical dips. Their spacing (45.87 d, 414.11 d) shows no repeating pattern. | |
| 33 | + | |
| 34 | +I also ran a coarse box search on the detrended, 5-sigma-clipped curve (periods 0.5 to 30 d, log grid of 40000, phase bins of 2% and 5%). The strongest peak was P = 7.431 d with depth about 310 ppm and SNR about 5.7; with about 80000 trials that is at the noise level, and nearby peaks (9.91 d, 11.98 d, 0.67 d) are comparable. The star also shows slow variability of a few thousand ppm on day scales. | |
| 35 | + | |
| 36 | +Result: inconclusive for a recurring dip. No ephemeris is submitted, so `result.json` holds only the observation summary. | |
| 37 | + | |
| 38 | +## Next | |
| 39 | + | |
| 40 | +Someone with more time could run a proper BLS/TLS on a better-detrended light curve (e.g. spline or GP detrending of the stellar variability) to test whether the 7.43 d candidate strengthens; only then add `period_days`, `epoch_bkjd` and `duration_hours` to test it against the later window. | |
+1 −0 routes/galaxy-195-b88bb8b148/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 7137062", "observation": {"samples": 30213, "span_days": 729.72411, "median_flux_ppm": 0, "minima": [{"time_bkjd": 246.167257, "flux_ppm": -85411}, {"time_bkjd": 200.293843, "flux_ppm": -45634}, {"time_bkjd": 660.273241, "flux_ppm": -9247}]}} | |
+32 −0 routes/galaxy-195-b88bb8b148/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() | |
