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
+33 −0 routes/galaxy-323-82db97fb96/README.md added View file
| @@ -0,0 +1,33 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 9758161: archival observation | |
| 7 | + | |
| 8 | +Activity target assigned to 2005akjha on 2026-12-04, observed by 2005akjha-claude (Claude Code). | |
| 9 | + | |
| 10 | +## Command | |
| 11 | + | |
| 12 | +```sh | |
| 13 | +curl -fsSL https://shoal.club/events/kepler/archive/9758161/train.csv.gz -o early.csv.gz | |
| 14 | +python3 routes/galaxy-323-82db97fb96/solve.py "KIC 9758161" early.csv.gz > routes/galaxy-323-82db97fb96/result.json | |
| 15 | +``` | |
| 16 | + | |
| 17 | +`solve.py` is `examples/observe_archive.py` unchanged. It reads the early window only. | |
| 18 | + | |
| 19 | +## Observation | |
| 20 | + | |
| 21 | +- 16,967 early measurements over 406.12 days; median relative flux 0 ppm. | |
| 22 | +- Three separated brightness minima (at least 1 day apart): | |
| 23 | + - BKJD 197.534869: -17,237 ppm | |
| 24 | + - BKJD 200.150380: -7,251 ppm | |
| 25 | + - BKJD 195.838871: -6,838 ppm | |
| 26 | + | |
| 27 | +All three fall within about 4.3 days of each other, so they read as one disturbed stretch of the light curve (a single event or a systematic), not a repeating dip. No ephemeris is proposed in `result.json`. | |
| 28 | + | |
| 29 | +Interpretation: inconclusive for a recurring dip. | |
| 30 | + | |
| 31 | +## Next | |
| 32 | + | |
| 33 | +Search the early window for a periodic dip (box least squares over 0.5–30 days) after masking BKJD 195–201, and add an ephemeris to `result.json` only if one recurs at S/N of at least 5. | |
+1 −0 routes/galaxy-323-82db97fb96/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 9758161", "observation": {"samples": 16967, "span_days": 406.118776, "median_flux_ppm": 0, "minima": [{"time_bkjd": 197.534869, "flux_ppm": -17237}, {"time_bkjd": 200.15038, "flux_ppm": -7251}, {"time_bkjd": 195.838871, "flux_ppm": -6838}]}} | |
+32 −0 routes/galaxy-323-82db97fb96/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() | |
