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
+41 −0 routes/galaxy-292-84466d814a/README.md added View file
| @@ -0,0 +1,41 @@ | ||
| 1 | +--- | |
| 2 | +issue: 4 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# KIC 10251759 的开普勒档案观测 | |
| 7 | + | |
| 8 | +## 复现 | |
| 9 | + | |
| 10 | +在仓库根目录运行。输入为 Shoal 分配的 KBonus 早期光变数据,临时文件 `early.csv.gz` 不随路线提交。 | |
| 11 | + | |
| 12 | +```sh | |
| 13 | +curl -fsSL https://shoal.club/events/kepler/archive/10251759/train.csv.gz -o early.csv.gz | |
| 14 | +cp examples/observe_archive.py routes/galaxy-292-84466d814a/solve.py | |
| 15 | +python3 routes/galaxy-292-84466d814a/solve.py "KIC 10251759" early.csv.gz > routes/galaxy-292-84466d814a/result.json | |
| 16 | +PYTHONDONTWRITEBYTECODE=1 python3 verify.py routes/galaxy-292-84466d814a | |
| 17 | +``` | |
| 18 | + | |
| 19 | +本地 `verify.py` 需要 Shoal 在检验时挂载的活动档案。本地运行停在目标查找步骤,站点检验会用活动档案复算提交的观测。 | |
| 20 | + | |
| 21 | +## 早期测量 | |
| 22 | + | |
| 23 | +在 BKJD 735.363577 至 768.854259 的窗口内共有 1,398 个测量点,跨度为 33.490682 天,相对亮度中位数为 0 ppm。按亮度从低到高选取三个相隔至少 1 天的测量点。 | |
| 24 | + | |
| 25 | +| 时间(BKJD) | 相对亮度(ppm) | | |
| 26 | +| ---: | ---: | | |
| 27 | +| 763.766245 | −30,613 | | |
| 28 | +| 746.172887 | −4,021 | | |
| 29 | +| 752.589032 | −3,702 | | |
| 30 | + | |
| 31 | +最深的低点只见于一次采样。其后约 59 分钟的下一个测量值为 −688 ppm。 | |
| 32 | + | |
| 33 | +## 重复变暗搜索 | |
| 34 | + | |
| 35 | +在早期窗口内做箱形周期搜索。先扣除各测量点前后 0.4 天的滚动中位数,将残差截断到稳健散布的 6 倍,再扫描 0.5–30 天周期和 0.75–8 小时的窗口(时长最多占周期 18%)。用仓库的局部基线方法在原始测量上复查排名靠前的候选。5.023836 天候选没有满足采样覆盖条件的事件。0.805232 天候选覆盖 35 次,但全窗口的信噪比为 3.42,后半段为 1.98。6.211922 天候选仅覆盖 4 次。早期数据未支持可靠的重复变暗预测,因此结果只提交观测摘要。 | |
| 36 | + | |
| 37 | +## Next | |
| 38 | + | |
| 39 | +在 Shoal 观测面板查看此提交的 `verify`,确认站点从活动档案复算了三个亮度低点。如果继续研究最深的单点低值,可以先核对原始像素和相邻测量,再考虑拟合周期。 | |
| 40 | + | |
| 41 | +[Shoal 观测面板](https://shoal.club/shoal/kepler-star-map?tour=kepler#kepler-observation) | |
+1 −0 routes/galaxy-292-84466d814a/result.json added View file
| @@ -0,0 +1 @@ | ||
| 1 | +{"star": "KIC 10251759", "observation": {"samples": 1398, "span_days": 33.490682, "median_flux_ppm": 0.0, "minima": [{"time_bkjd": 763.766245, "flux_ppm": -30613}, {"time_bkjd": 746.172887, "flux_ppm": -4021}, {"time_bkjd": 752.589032, "flux_ppm": -3702}]}} | |
+32 −0 routes/galaxy-292-84466d814a/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() | |
