pyKurucz: 用于恒星光谱合成的Kurucz ATLAS12和SYNTHE的纯Python重实现
pyKurucz: A Pure Python Reimplementation of Kurucz ATLAS12 and SYNTHE for Stellar Spectrum Synthesis
AI总结:
本文通过纯Python重实现Kurucz的ATLAS12和SYNTHE代码,消除了对Fortran的依赖,并验证了与原始代码的高度一致性,从而支持机器学习和大规模巡天集成。
摘要:
pyKurucz是Kurucz的ATLAS12和SYNTHE的纯Python重实现,后者是计算合成恒星光谱的标准代码工具。原始的Fortran代码用几十年前的遗留方言编写,在没有大量手动修补的情况下难以用现代工具链编译,并且在Robert L. Kurucz于2025年去世后,其长期维护存在不确定性。pyKurucz提供了两个引擎的完整逐行Python翻译,完全消除了对Fortran的需求。它由NumPy、SciPy和Numba驱动,结合了完整的ATLAS12迭代循环(包括直接不透明度采样和对流)与全面的物理处理,从Saha-Boltzmann布居和分子平衡到辐射传输和高级谱线展宽。通过与原始代码在100个大气模型上的验证,这些模型覆盖2500 K的冷巨星到44,000 K的O型星,波长范围300-1800 nm,分辨能力R=300,000,实现了中值一致性优于0.01%。纯Python实现使得能够直接集成到机器学习工作流和大规模巡天管线中,同时以现代、可读的语言保留了ATLAS12和SYNTHE的存档参考实现。
英文摘要:
pyKurucz is a pure Python reimplementation of Kurucz's ATLAS12 and SYNTHE, the standard code tools for computing synthetic stellar spectra. The original Fortran codes, written decades ago in a legacy dialect, are difficult to compile with modern toolchains without significant manual patching, and their long-term maintenance is uncertain following the passing of Robert L. Kurucz in 2025. pyKurucz delivers a complete, line-by-line Python translation of both engines, entirely removing the need for Fortran. Powered by NumPy, SciPy, and Numba, it combines the full ATLAS12 iteration loop (with direct opacity sampling and convection) with comprehensive physical treatments, from Saha-Boltzmann populations and molecular equilibrium to radiative transfer and advanced line broadening. Validated against the original across 100 atmosphere models spanning 2500 K cool giants to 44,000 K O stars over 300-1800 nm at resolving power R = 300,000, it achieves sub-0.01% median agreement. The pure Python implementation enables direct integration with machine learning workflows and large-scale survey pipelines, while preserving an archival reference implementation of both ATLAS12 and SYNTHE in a modern, readable language.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。