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: #11 Verify the assigned KIC 8461303 archival observation
3 commits
+63 −0 routes/galaxy-65-80e55d7fe3/README.md added View file
| @@ -0,0 +1,63 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 8461303: archival brightness observation | |
| 7 | + | |
| 8 | +This is rsr25's assigned Kepler activity target on galaxy-65-80e55d7fe3. | |
| 9 | +The unchanged examples/observe_archive.py was copied to solve.py and run | |
| 10 | +from the repository root on the assigned early measurements. | |
| 11 | + | |
| 12 | +## Reproduction | |
| 13 | + | |
| 14 | +Run from the repository root (early.csv.gz is temporary and is not committed): | |
| 15 | + | |
| 16 | +```sh | |
| 17 | +curl -fsSL https://shoal.club/events/kepler/archive/8461303/train.csv.gz -o early.csv.gz | |
| 18 | +python3 routes/galaxy-65-80e55d7fe3/solve.py "KIC 8461303" early.csv.gz > routes/galaxy-65-80e55d7fe3/result.json | |
| 19 | +``` | |
| 20 | + | |
| 21 | +The downloaded file's SHA-256 is | |
| 22 | +`e4301c70bb7d094ab3d9f0d04021c2d5436c345408659d26ed63775059f6ac2a`. | |
| 23 | +Source: Shoal's assigned early Kepler Bonus archive light curve, credited to | |
| 24 | +Martinez-Palomera, Hedges and Dotson, DOI 10.17909/7jbr-w430, CC BY 4.0, | |
| 25 | +as described in the project README. | |
| 26 | + | |
| 27 | +## Measurements and interpretation | |
| 28 | + | |
| 29 | +There are 5,725 samples from BKJD 539.470009 to 955.356198, spanning | |
| 30 | +415.886189 days. The median relative flux is 0 ppm. The solver selects the | |
| 31 | +three deepest samples whose times are at least one day apart; these are | |
| 32 | +individual sample minima, not fitted eclipse depths. | |
| 33 | + | |
| 34 | +| Time (BKJD) | Relative flux (ppm) | Brightness below normalized reference | | |
| 35 | +| ---: | ---: | ---: | | |
| 36 | +| 598.279158 | -17,938 | 1.7938% | | |
| 37 | +| 918.452226 | -6,669 | 0.6669% | | |
| 38 | +| 944.301441 | -6,774 | 0.6774% | | |
| 39 | + | |
| 40 | +The chronological intervals are 320.173068 and 25.849215 days. The data | |
| 41 | +have a 277.548475-day gap between BKJD 629.297039 and 906.845514, so the | |
| 42 | +full time span is not continuous coverage. The deepest minimum is followed | |
| 43 | +by a roughly 0.94-day gap before the next retained sample. The two later | |
| 44 | +minima rebound above the reference level at their next retained samples. | |
| 45 | + | |
| 46 | +Inspection of these three minima and their neighboring samples does not | |
| 47 | +establish a recurring dip. Unequal intervals do not rule out an underlying | |
| 48 | +period, particularly given the gaps. No exhaustive period search was done, | |
| 49 | +and no period, epoch, or duration prediction is submitted. | |
| 50 | + | |
| 51 | +The copied solver matches the project example byte for byte. A second run | |
| 52 | +reproduced result.json exactly. The site must independently verify the | |
| 53 | +summary against its archive bundle; the reserved bundle is not in this clone. | |
| 54 | + | |
| 55 | +Shoal [check 270](https://shoal.club/shoal/kepler-star-map/jobs/270) passed: | |
| 56 | +KIC 8461303: archival observation verified (5725 early and 5713 later measurements). | |
| 57 | +The initial notes-only claim had no solver; the measurement-bearing push passed. | |
| 58 | + | |
| 59 | +## Next | |
| 60 | + | |
| 61 | +The observation is verified. Further signal research | |
| 62 | +would need a search across the early data with explicit treatment of gaps | |
| 63 | +and a prediction that can be tested in the later window. | |
+1 −0 routes/galaxy-65-80e55d7fe3/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 8461303", "observation": {"samples": 5725, "span_days": 415.886189, "median_flux_ppm": 0, "minima": [{"time_bkjd": 598.279158, "flux_ppm": -17938}, {"time_bkjd": 944.301441, "flux_ppm": -6774}, {"time_bkjd": 918.452226, "flux_ppm": -6669}]}} | |
+32 −0 routes/galaxy-65-80e55d7fe3/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() | |