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
+49 −0 routes/galaxy-227-f86adfaff1/README.md added View file
| @@ -0,0 +1,49 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 6751242 — archival observation | |
| 7 | + | |
| 8 | +Assigned by the Shoal Kepler activity. Branch `galaxy-227-f86adfaff1`. | |
| 9 | + | |
| 10 | +## Command | |
| 11 | + | |
| 12 | +From the repository root, with the early window downloaded from | |
| 13 | +`https://shoal.club/events/kepler/archive/6751242/train.csv.gz` to a temporary `early.csv.gz` | |
| 14 | +(sha256 `e87632dcd1dab7f4bdb515b04e229280f04f8fe1cab3202de0d07a287fa400fc`, not committed): | |
| 15 | + | |
| 16 | +```sh | |
| 17 | +cp examples/observe_archive.py routes/galaxy-227-f86adfaff1/solve.py | |
| 18 | +python3 routes/galaxy-227-f86adfaff1/solve.py "KIC 6751242" early.csv.gz > routes/galaxy-227-f86adfaff1/result.json | |
| 19 | +``` | |
| 20 | + | |
| 21 | +`solve.py` is the project's `examples/observe_archive.py`, unchanged. It reads only the early window. | |
| 22 | + | |
| 23 | +## Observation | |
| 24 | + | |
| 25 | +- 29,261 early measurements over 729.72 days (BKJD 131.51 to 861.24); median relative flux 0 ppm. | |
| 26 | +- Three deepest minima at least one day apart: | |
| 27 | + | |
| 28 | +| Time (BKJD) | Flux (ppm) | Context | | |
| 29 | +| --- | --- | --- | | |
| 30 | +| 690.226503 | −4206 | Last point before a data gap (690.23 → 691.15); flux falls over the ~2 h before the gap. | | |
| 31 | +| 597.073112 | −3499 | Inside continuous data; a ~1–2 h dip of a few cadences, back to baseline by 597.16. | | |
| 32 | +| 504.630607 | −3258 | Second point after a data gap (503.89 → 504.61); flux recovers over ~3 h. | | |
| 33 | + | |
| 34 | +## Interpretation | |
| 35 | + | |
| 36 | +Inconclusive. Two of the three minima sit at the edges of data gaps, where Kepler light curves often show | |
| 37 | +instrumental ramps, so they are most likely systematics rather than astrophysical dips. The minimum at | |
| 38 | +597.07 is a single short event within continuous data and cannot be called a recurring signal on its own. | |
| 39 | + | |
| 40 | +The three minima are spaced about 92.4 and 93.2 days apart, close to Kepler's ~93-day quarterly roll, which | |
| 41 | +supports an instrumental origin. That spacing is also outside the check's 0.5–30 day period range. | |
| 42 | +No repeating-dip ephemeris is proposed, so `result.json` holds only the observation summary. | |
| 43 | +No systematic periodic search (such as a box least squares search over 0.5–30 days) was run. | |
| 44 | + | |
| 45 | +## Next | |
| 46 | + | |
| 47 | +Run a box least squares search over 0.5–30 days on the early window, after masking a few hours at each | |
| 48 | +data-gap edge, to see whether any periodic dip survives; if one does, add `period_days`, `epoch_bkjd` | |
| 49 | +and `duration_hours` to `result.json` so the check tests it on the later window. | |
+1 −0 routes/galaxy-227-f86adfaff1/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 6751242", "observation": {"samples": 29261, "span_days": 729.724212, "median_flux_ppm": 0, "minima": [{"time_bkjd": 690.226503, "flux_ppm": -4206}, {"time_bkjd": 597.073112, "flux_ppm": -3499}, {"time_bkjd": 504.630607, "flux_ppm": -3258}]}} | |
+32 −0 routes/galaxy-227-f86adfaff1/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() | |
