원시데이터 수집 시스템
선정목록으로

SpecpolFlow: a new software package for spectropolarimetry using Python

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. C. P. Folsom — Tartu Observatory, University of Tartu, Observatooriumi 1, 61602, Toravere, Estonia
  2. Christiana Erba — Space Telescope Science Institute, 3700 San Martin Drive, Baltimore, MD 21218, USA
  3. V. Pétit — Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA
  4. Shaquann Seadrow — Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA
  5. Patrick Stanley — Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA
  6. Tali Natan — Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA
  7. B. Zaire — Universidade Federal de Minas Gerais, Belo Horizonte, MG, 31270-901, Brazil
  8. M. E. Oksala — Department of Physics, California Lutheran University, 60 West Olsen Road, 91360, Thousand Oaks, CA, USA|||LESIA, Observatoire de Paris, PSL University, CNRS, Sorbonne Université, Université Paris Cité, 5 place Jules Janssen, 92195 Meudon, France
  9. Federico Villadiego Forero — Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA
  10. Robin Moore — Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA
  11. Marisol Catalan Olais — Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA
DOI
10.21105/joss.07891
저널
The Journal of Open Source Software
발행년도
2025
발행기관
Open Journals
피인용수
7
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.21105/joss.07891
토픽
Solid-state spectroscopy and crystallography
OpenAlex ID
W4412873358

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Spectropolarimetry, the observation of polarization and intensity as a function of wavelength, is a powerful tool in stellar astrophysics. It is particularly useful for characterizing stars and circumstellar material, and for tracing the influence of magnetic fields on a host star and its environment. Maintaining modern, flexible, and accessible computational tools that enable spectropolarimetric studies is thus essential. The SpecpolFlow package is a new, completely Pythonic workflow for analyzing stellar spectropolarimetric observations. Its suite of tools provides a user-friendly interface for working with data from an assortment of instruments and telescopes. SpecpolFlow contains tools for spectral normalization and visualization, the extraction of Least-Squares Deconvolution (LSD) profiles, the generation and optimization of line masks for LSD analyses, and the calculation of longitudinal magnetic field measurements from the LSD profiles. It also provides Python classes for the manipulation of spectropolarimetric products. The SpecpolFlow website includes an array of tutorials that guide users through common analysis cases using the software. SpecpolFlow is distributed as a free, open-source package, with fully documented tools (via an API and command line interface) which are actively maintained by a team of contributors.

본문 17,436자

본문 펼치기
DOI: [10.21105/joss.07891](https://doi.org/10.21105/joss.07891) Software - [Review](https://github.com/openjournals/joss-reviews/issues/7891) - [Repository](https://github.com/folsomcp/specpolFlow) - [Archive](https://doi.org/10.5281/zenodo.15875240) Editor: [Warrick](https://warrickball.gitlab.io/) Ball Reviewers: - [@DerekAstro](https://github.com/DerekAstro) - [@gully](https://github.com/gully) Submitted: 15 November 2024 Published: 19 July 2025 License Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC [BY](https://creativecommons.org/licenses/by/4.0/) 4.0). # SpecpolFlow: a new software package for spectropolarimetry using Python Colin P. Folsom 1*¶ , Christiana Erba 2* , Veronique Petit 3 , Shaquann Seadrow 3 , Patrick Stanley 3 , Tali Natan 3 , Bonnie Zaire 4 , Mary E. Oksala 5,6 , Federico Villadiego Forero 3 , Robin Moore 3 , and Marisol Catalan Olais 3 1 Tartu Observatory, University of Tartu, Observatooriumi 1, 61602, Toravere, Estonia 2 Space Telescope Science Institute, 3700 San Martin Drive, Baltimore, MD 21218, USA 3 Department of Physics and Astronomy, Bartol Research Institute, University of Delaware, 19716, Newark, DE, USA 4 Universidade Federal de Minas Gerais, Belo Horizonte, MG, 31270-901, Brazil 5 Department of Physics, California Lutheran University, 60 West Olsen Road, 91360, Thousand Oaks, CA, USA 6 LESIA, Observatoire de Paris, PSL University, CNRS, Sorbonne Université, Université Paris Cité, 5 place Jules Janssen, 92195 Meudon, France - Corresponding author * These authors contributed equally. ## Summary Spectropolarimetry, the observation of polarization and intensity as a function of wavelength, is a powerful tool in stellar astrophysics. It is particularly useful for characterizing stars and circumstellar material, and for tracing the influence of magnetic fields on a host star and its environment. Maintaining modern, flexible, and accessible computational tools that enable spectropolarimetric studies is thus essential. The SpecpolFlow package is a new, completely Pythonic workflow for analyzing stellar spectropolarimetric observations. Its suite of tools provides a user-friendly interface for working with data from an assortment of instruments and telescopes. SpecpolFlow contains tools for spectral normalization and visualization, the extraction of Least-Squares Deconvolution (LSD) profiles, the generation and optimization of line masks for LSD analyses, and the calculation of longitudinal magnetic field measurements from the LSD profiles. It also provides Python classes for the manipulation of spectropolarimetric products. The SpecpolFlow website includes an array of tutorials that guide users through common analysis procedures using the software. SpecpolFlow is distributed as a free, opensource package, with fully documented tools (via an API and command line interface) which are actively maintained by a team of contributors. ## Statement of need Spectropolarimetry is an essential observational technique in stellar astrophysics, which is used to study the surface properties of stars and their environments. Symmetry-breaking phenomena like stellar magnetic fields leave an imprint on polarized spectra. Magnetic fields are present in most classes of stars throughout their evolution (Donati & Landstreet, 2009; Mestel, 2012). Cool stars (with convective envelopes) display a wide range of observed field strengths, driven by variations in their internal dynamos (Reiners, 2012). Nearly 10% of hot stars (with radiative envelopes) also harbour strong magnetic fields (Grunhut et al., 2017; Sikora et al., 2019). Furthermore, magnetic fields are found in evolved giants and compact stellar remnants such as white dwarfs and pulsars (Ferrario et al., 2015). Spectropolarimetry is a valuable tool for characterizing the strength, orientation, and topology of these fields. Therefore the maintenance and dissemination of computational tools enabling this technique Folsom et al. (2025). SpecpolFlow: a new software package for spectropolarimetry using Python. _Journal_ _of_ _Open_ _Source_ _Software_, _10_ (111), 7891. [https://doi.org/10.21105/joss.07891.](https://doi.org/10.21105/joss.07891) 1 are a key element of research. Spectropolarimetric studies of stellar magnetic fields typically leverage the splitting of spectral lines due to the Zeeman effect (e.g., Landstreet, 2015). The Zeeman split components of a line are polarized and shifted in wavelength proportionally to field strength. These shifts in wavelength are typically undetectable due to other line broadening processes (except for very strong fields) but the changes in polarization remain detectable. In practical observations this polarization signal is often below the noise level for an individual line, thus it is important to combine information from many spectral lines. The Least-Squares Deconvolution (LSD, Donati et al., 1997; Kochukhov et al., 2010) approach is the most widely used method for detecting such polarization signatures. LSD is a multi-line technique that produces a pseudo-average line profile at increased signal-to-noise. LSD models the spectrum as the convolution of a set of delta functions (the ‘line mask’) with a common line shape (the ‘LSD profile’). This model is fit to an observation, using a weighted linear least-squares approach, to derive the LSD profile. An estimate of the surface-averaged line-of-sight component of the field (the ‘longitudinal field’, ⟨??⟩) can then be computed from the circular polarization and intensity LSD profiles. Modelling the variation of ⟨??⟩ as the star rotates enables further characterization, such as determining the stellar rotational period and simple models of the magnetic topology. Several successful programs supporting spectropolarimetric analyses exist in the literature, although they are often proprietary and poorly documented. There is currently no publicly available software that provides the full toolset needed to analyze reduced spectropolarimetric observations and produce magnetic field measurements. The original LSD code by Donati et al. (1997) is efficient and effective, written in C, but it is both proprietary and undocumented. A more recent program, iLSD, is an Interactive Data Language (IDL) interface around a Fortran core implementing LSD (Kochukhov et al., 2010). This code includes additional features such as the reconstruction of multiple line profiles from the same spectrum, or an optional Tikhonov regularization of the LSD profiles. However, iLSD is also proprietary and has very limited documentation. Some additional support codes (e.g., to read and write LSD profiles, to create line masks, or to combine observations) have been written in a variety of languages and passed down from person to person. While these codes are scientifically relevant, they often lack documentation, version control, active maintenance, and generally they are neither publicly available nor open source. Factors like these negatively impact accessibility, serving as a significant barrier to both learning and research reproducibility. ## Overview of SpecpolFlow The SpecpolFlow package is a modernized, unified revitalization of the tools that have preceded it. The software is open source, well documented, and the code itself is extensively commented and designed to be readable. SpecpolFlow produces results that are consistent with previous proprietary codes implementing similar algorithms. It produces LSD profiles that are consistent with the code of Donati et al. (1997) and iLSD, and it produces ⟨??⟩ values that are consistent with the code of Wade et al. (2000). SpecpolFlow provides a toolkit with an ensemble of Python functions that: - Convert observed spectra into a common file format - Continuum normalize spectra, with an interactive graphical interface - Generate line masks for LSD from lists of atomic transitions - Clean line masks interactively to remove problem lines or adjust line depths - Calculate LSD profiles - Calculate line bisectors - Calculate radial velocities - Calculate ⟨??⟩ values The continuum normalization routine follows the algorithm briefly described in Folsom et al. (2008) and Folsom (2013), and implements an interactive graphical interface with the Tkinter Folsom et al. (2025). SpecpolFlow: a new software package for spectropolarimetry using Python. _Journal_ _of_ _Open_ _Source_ _Software_, _10_ (111), 7891. [https://doi.org/10.21105/joss.07891.](https://doi.org/10.21105/joss.07891) 2 and Matplotlib packages. Line masks can be generated from line lists in the Vienna Atomic [Line Database (Ryabchikova et al.,](https://vald.astro.uu.se/) 2015) “extract stellar” “long” format. If necessary, effective Landé factors are estimated using LS, J1J2, and J1K coupling schemes (Landi Degl’Innocenti & Landolfi, 2004; Martin et al., 1978). The LSD calculation follows the method of Donati et al. (1997), with details from Kochukhov et al. (2010). It relies on [NumPy](https://numpy.org/) (Harris et al., 2020) and makes careful use of NumPy’s sparse arrays for efficiency. The interactive line mask cleaning tool uses Tkinter and Matplotlib for the interface. This tool can remove lines from the mask, and automatically fit line depths using a reference observed spectrum, following Grunhut et al. (2017) with some optimizations. The line depth fitting routine inverts the linear least squares problem in LSD, and instead fits line depths given an observation and LSD profile. That LSD profile must be approximately correct, calculated using a mask (or part of a mask) with dominantly acceptable lines. Line depth fitting remains a weighted linear least squares problem, similar to the LSD calculation, and can be solved efficiently using spare matrix operations. Radial velocities are calculated by fitting a Gaussian to an LSD profile by default, although calculating from first moments is also supported. The ⟨??⟩ calculation uses the first moment technique applied to LSD profiles (Donati et al., 1997; Kochukhov et al., 2010; Rees & Semel, 1979). SpecpolFlow enables users to build their own custom workflow from the available classes and functions, which can enhance scientific archiving and reproducibility. This is also valuable for training or involving students in projects. SpecpolFlow’s [website](https://folsomcp.github.io/specpolFlow/) includes an extensive set of tutorials that explain the use of the package and demonstrate some common analysis cases. These tutorials, in the form of Jupyter [Notebooks,](https://jupyter.org/) can flexibly be used within a classroom or workshop setting. ## Acknowledgements The authors gratefully acknowledge contributions to the early development and testing of SpecpolFlow’s tools, including Dax Moraes, David Meleney Jr., and Gregg Wade. This research was supported by the Munich Institute for Astro-, Particle and BioPhysics (MIAPbP), which is funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy - EXC-2094 - 390783311. CPF gratefully acknowledges funding from the European Union’s Horizon Europe research and innovation programme under grant agreement No. 101079231 (EXOHOST), and from the United Kingdom Research and Innovation (UKRI) Horizon Europe Guarantee Scheme (grant number 10051045). VP, SS, PS, and TN gratefully acknowledge support for this work from the National Science Foundation under Grant No. AST-2108455. MEO gratefully acknowledges support for this work from the National Science Foundation under Grant No. AST-2107871. SS gratefully acknowledges support for this work from the Delaware Space Grant College and Fellowship Program (NASA Grant 80NSSC20M0045). BZ acknowledges funding from the CAPES-PrInt program (#88887.683070/2022-00 and #88887.802913/2023-00). The SpecpolFlow team also thanks Ms. Tali Natan for her creative design of the SpecpolFlow logo. Folsom et al. (2025). SpecpolFlow: a new software package for spectropolarimetry using Python. _Journal_ _of_ _Open_ _Source_ _Software_, _10_ (111), 7891. [https://doi.org/10.21105/joss.07891.](https://doi.org/10.21105/joss.07891) 3 ## References Donati, J.-F., & Landstreet, J. D. (2009). Magnetic fields of nondegenerate stars. _An-_ _nual_ _Review_ _of_ _Astronomy_ _&_ _Astrophysics_, _47_ (1), 333–370. [https://doi.org/10.1146/](https://doi.org/10.1146/annurev-astro-082708-101833) [annurev-astro-082708-101833](https://doi.org/10.1146/annurev-astro-082708-101833) Donati, J.-F., Semel, M., Carter, B. D., Rees, D. E., & Collier Cameron, A. (1997). Spec tropolarimetric observations of active stars. _Monthly_ _Notices_ _of_ _the_ _Royal_ _Astronomical_ _Society_, _291_ (4), 658–682. [https://doi.org/10.1093/mnras/291.4.658](https://doi.org/10.1093/mnras/291.4.658) Ferrario, L., de Martino, D., & Gänsicke, B. T. (2015). Magnetic white dwarfs. _Space_ _Science_ _Reviews_, _191_ (1-4), 111–169. [https://doi.org/10.1007/s11214-015-0152-0](https://doi.org/10.1007/s11214-015-0152-0) Folsom, C. P. (2013). _Chemical_ _abundances_ _of_ _very_ _young_ _intermediate_ _mass_ _stars_ [PhD thesis]. Queen’s University of Belfast. Folsom, C. P., Wade, G. A., Kochukhov, O., Alecian, E., Catala, C., Bagnulo, S., Böhm, T., Bouret, J.-C., Donati, J.-F., Grunhut, J., Hanes, D. A., & Landstreet, J. D. (2008). Magnetic fields and chemical peculiarities of the very young intermediate-mass binary system HD 72106. _Monthly_ _Notices_ _of_ _the_ _Royal_ _Astronomical_ _Society_, _391_ (2), 901–914. [https://doi.org/10.1111/j.1365-2966.2008.13946.x](https://doi.org/10.1111/j.1365-2966.2008.13946.x) Grunhut, J. H., Wade, G. A., Neiner, C., Oksala, M. E., Petit, V., Alecian, E., Bohlender, D. A., Bouret, J.-C., Henrichs, H. F., Hussain, G. A. J., Kochukhov, O., & MiMeS Collaboration. (2017). The MiMeS survey of Magnetism in Massive Stars: magnetic analysis of the O-type stars. _Monthly_ _Notices_ _of_ _the_ _Royal_ _Astronomical_ _Society_, _465_ (2), 2432–2470. [https://doi.org/10.1093/mnras/stw2743](https://doi.org/10.1093/mnras/stw2743) Harris, C. R., Millman, K. J., Walt, S. J. van der, Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., Kerkwijk, M. H. van, Brett, M., Haldane, A., Río, J. F. del, Wiebe, M., Peterson, P., … Oliphant, T. E. (2020). Array programming with NumPy. _Nature_, _585_ (7825), 357–362. [https:](https://doi.org/10.1038/s41586-020-2649-2) [//doi.org/10.1038/s41586-020-2649-2](https://doi.org/10.1038/s41586-020-2649-2) Kochukhov, O., Makaganiuk, V., & Piskunov, N. (2010). Least-squares deconvolution of the stellar intensity and polarization spectra. _Astronomy_ _&_ _Astrophysics_, _524_, A5. [https://doi.org/10.1051/0004-6361/201015429](https://doi.org/10.1051/0004-6361/201015429) Landi Degl’Innocenti, E., & Landolfi, M. (2004). _Polarization_ _in_ _Spectral_ _Lines_ (Vol. 307). Kluwer Academic Publishers. [https://doi.org/10.1007/1-4020-2415-0](https://doi.org/10.1007/1-4020-2415-0) Landstreet, J. D. (2015). Basics of spectropolarimetry. In G. Meynet, C. Georgy, J. Groh, & P. Stee (Eds.), _New_ _windows_ _on_ _massive_ _stars_ (Vol. 307, pp. 311–320). [https:](https://doi.org/10.1017/S1743921314007017) [//doi.org/10.1017/S1743921314007017](https://doi.org/10.1017/S1743921314007017) Martin, W. C., Zalubas, R., & Hagan, L. (1978). _Atomic_ _energy_ _levels_ _-_ _The_ _rare-Earth_ _elements_ . National Bureau of Standards. Mestel, L. (2012). _Stellar_ _magnetism_ . Oxford University Press. Rees, D. E., & Semel, M. D. (1979). Line formation in an unresolved magnetic element: a test of the centre of gravity method. _Astronomy_ _&_ _Astrophysics_, _74_ (1), 1–5. Reiners, A. (2012). Observations of cool-star magnetic fields. _Living_ _Reviews_ _in_ _Solar_ _Physics_, _9_ (1), 1. [https://doi.org/10.12942/lrsp-2012-1](https://doi.org/10.12942/lrsp-2012-1) Ryabchikova, T., Piskunov, N., Kurucz, R. L., Stempels, H. C., Heiter, U., Pakhomov, Y., & Barklem, P. S. (2015). A major upgrade of the VALD database. _Physica_ _Scripta_, _90_ (5), 054005. [https://doi.org/10.1088/0031-8949/90/5/054005](https://doi.org/10.1088/0031-8949/90/5/054005) Sikora, J., Wade, G. A., Power, J., & Neiner, C. (2019). A volume-limited survey of mCP stars within 100 pc II: rotational and magnetic properties. _Monthly_ _Notices_ _of_ _the_ _Royal_ Folsom et al. (2025). SpecpolFlow: a new software package for spectropolarimetry using Python. _Journal_ _of_ _Open_ _Source_ _Software_, _10_ (111), 7891. [https://doi.org/10.21105/joss.07891.](https://doi.org/10.21105/joss.07891) 4 _Astronomical_ _Society_, _483_ (3), 3127–3145. [https://doi.org/10.1093/mnras/sty2895](https://doi.org/10.1093/mnras/sty2895) Wade, G. A., Donati, J.-F., Landstreet, J. D., & Shorlin, S. L. S. (2000). High-precision magnetic field measurements of Ap and Bp stars. _Monthly Notices of the Royal Astronomical_ _Society_, _313_ (4), 851–867. [https://doi.org/10.1046/j.1365-8711.2000.03271.x](https://doi.org/10.1046/j.1365-8711.2000.03271.x) Folsom et al. (2025). SpecpolFlow: a new software package for spectropolarimetry using Python. _Journal_ _of_ _Open_ _Source_ _Software_, _10_ (111), 7891. [https://doi.org/10.21105/joss.07891.](https://doi.org/10.21105/joss.07891) 5

섹션 본문 7문단 · 8,577자

Summary

2Spectropolarimetry, the observation of polarization and intensity as a function of wavelength, is a powerful tool in stellar astrophysics.It is particularly useful for characterizing stars and circumstellar material, and for tracing the influence of magnetic fields on a host star and its environment.Maintaining modern, flexible, and accessible computational tools that enable spectropolarimetric studies is thus essential.The SpecpolFlow package is a new, completely Pythonic workflow for analyzing stellar spectropolarimetric observations.Its suite of tools provides a user-friendly interface for working with data from an assortment of instruments and telescopes.SpecpolFlow contains tools for spectral normalization and visualization, the extraction of Least-Squares Deconvolution (LSD) profiles, the generation and optimization of line masks for LSD analyses, and the calculation of longitudinal magnetic field measurements from the LSD profiles.It also provides Python classes for the manipulation of spectropolarimetric products.The SpecpolFlow website includes an array of tutorials that guide users through common analytic analysis using the software.SpecpolFlow is distributed as a free, open-source package, with fully documented tools (via an API and command line interface) which are actively maintained by a team of contributors.

Statement of need

3Spectropolarimetry is an essential observational technique in stellar astrophysics, which is used to study the surface properties of stars and their environments.Symmetry-breaking phenomena like stellar magnetic fields leave an imprint on polarized spectra.Magnetic fields are present in most classes of stars throughout their evolution (Donati & Landstreet, 2009;Mestel, 2012).Cool stars (with convective envelopes) display a wide range of observed field strengths, driven by variations in their internal dynamos (Reiners, 2012).Nearly 10% of hot stars (with radiative envelopes) also harbour strong magnetic fields (Grunhut et al., 2017;Sikora et al., 2019).Furthermore, magnetic fields are found in evolved giants and compact stellar remnants such as white dwarfs and pulsars (Ferrario et al., 2015).Spectropolarimetry is a valuable tool for characterizing the strength, orientation, and topology of these fields.Therefore the maintenance and dissemination of computational tools enabling this technique are a key element of research.Spectropolarimetric studies of stellar magnetic fields typically leverage the splitting of spectral lines due to the Zeeman effect (e.g., Landstreet, 2015).The Zeeman split components of a line are polarized and shifted in wavelength proportional to field strength.These shifts in wavelength are typically undetectable due to other line broadening processes (except for very strong fields); however the changes in polarization remain detectable.In practical observations this polarization signal is often below the noise level for an individual line, thus it is important to combine information from many spectral lines.The Least-Squares Deconvolution (LSD, Donati et al., 1997;Kochukhov et al., 2010) approach is the most widely used method for detecting such polarization signatures.LSD is a multi-line technique that produces a pseudo-average line profile at increased signal-to-noise.LSD models the spectrum as the convolution of a set of delta functions (the 'line mask') with a common line shape (the 'LSD profile').This model is fit to an observation, using a weighted linear least-squares approach, to derive the LSD profile.An estimate of the surface averaged line-of-sight component of the field (the 'longitudinal field', B z ) can then be computed from the circular polarization and intensity LSD profiles.Modelling the variation of B z as the star rotates enables further characterization, such as determining the stellar rotational period and simple models of the magnetic topology.

4Several successful programs supporting spectropolarimetric analyses exist in the literature, although they are often not open source and poorly documented.There is currently no publicly available software that provides the full toolset needed to analyze reduced spectropolarimetric observations and produce magnetic field measurements.The original LSD code by Donati et al. (1997) is efficient and effective, written in C, but it is both proprietary and undocumented.A more recent program, iLSD, is an Interactive Data Language (IDL) interface around a Fortran core implementing LSD (Kochukhov et al., 2010).This code includes additional features such as the reconstruction of multiple line profiles from the same spectrum, or an optional Tikhonov regularization of the LSD profiles.However iLSD is also proprietary and has very limited documentation.Some additional support codes (e.g., to read and write LSD profiles, to create line masks, or to combine observations) have been written in a variety of languages and passed down from person to person.While these codes are scientifically relevant, they often lack documentation, version control, active maintenance, and generally they are neither publicly available nor open source.Factors like these negatively impact accessibility, serving as a significant barrier to both learning and research reproducibility.

Overview of SpecpolFlow

5The SpecpolFlow package is a modernized, unified revitalization of the tools that have preceded it.The software is open source, well documented, and the code itself is extensively commented and designed to be readable.SpecpolFlow produces consistent results with previous proprietary codes implementing similar algorithms.It produces consistent LSD profiles with the code of Donati et al. (1997) and iLSD, and it produces consistent B z values with the code of Wade et al. (2000).

6SpecpolFlow provides a toolkit with an ensemble of Python functions that:

7• Convert observed spectra into a common file format • Continuum normalize spectra, with an interactive graphical interface • Generate line masks for LSD from lists of atomic transitions The continuum normalization routine follows the algorithm briefly described in Folsom et al. (2008) and Folsom (2013), and implements an interactive graphical interface with the Tkinter and matplotlib packages.Line masks can be generated from line lists in the Vienna Atomic Line Database (Ryabchikova et al., 2015) "extract stellar" "long" format.If necessary, effective Landé factors are estimated using LS, J 1 J 2 , and J 1 K coupling schemes (Landi Degl'Innocenti & Landolfi, 2004;Martin et al., 1978).The LSD calculation follows the method of Donati et al. (1997), with details from Kochukhov et al. (2010).It relies on numpy and makes careful use of numpy's sparse arrays for efficiency.The interactive line mask cleaning tool uses Tkinter and matplotlib for the interface.This tool can remove lines from the mask, and automatically fit line depths using a reference observed spectrum, following Grunhut et al. (2017) with some optimizations.The line depth fitting routine inverts the linear least squares problem in LSD, and instead fits line depths given an observation and LSD profile.That LSD profile must be approximately correct, calculated using a mask (or part of a mask) with dominantly acceptable lines.Line depth fitting remains a weighted linear least squares problem, similar to the LSD calculation, and can be solved efficiently using spare matrix operations.Radial velocities are calculated by fitting a Gaussian to an LSD profile by default, although calculating from first moments is also supported.The B z calculation uses the first moment technique applied to LSD profiles (Donati et al., 1997;Kochukhov et al., 2010;Rees & Semel, 1979).SpecpolFlow enables users to build their own custom workflow from the available classes and functions, which can enhance scientific archiving and reproducibility.This is also valuable for training or involving students in projects.SpecpolFlow's website includes an extensive set of tutorials that explain the use of the package and demonstrate some common analysis cases.These tutorials, in the form of Jupyter Notebooks, can flexibly be used within a classroom or workshop setting.The SpecpolFlow team also thanks Ms. Tali Natan for her creative design of the SpecpolFlow logo.

8MEO gratefully acknowledges support for this work from the National Science Foundation under Grant No. AST-2107871.SS gratefully acknowledges support for this work from the Delaware Space Grant College and Fellowship Program (NASA Grant 80NSSC20M0045).BZ acknowledges funding from the CAPES-PrInt program (#88887.683070/2022-00 and #88887.802913/2023-00).

참고문헌 19건

  1. Magnetic White Dwarfs Space Science Reviews · Springer Science+Business Media · 2015 10.1007/s11214-015-0152-0
  2. Atomic energy levels - the rare-earth elements : 1978 10.6028/nbs.nsrds.60
  3. Least-squares deconvolution of the stellar intensity and polarization spectra Astronomy and Astrophysics · EDP Sciences · 2010 10.1051/0004-6361/201015429
  4. A major upgrade of the VALD database Physica Scripta · IOP Publishing · 2015 10.1088/0031-8949/90/5/054005
  5. Basics of spectropolarimetry Proceedings of the International Astronomical Union · Cambridge University Press · 2014 10.1017/s1743921314007017
  6. High-precision magnetic field measurements of Ap and Bp stars Monthly Notices of the Royal Astronomical Society · Oxford University Press · 2000 10.1046/j.1365-8711.2000.03271.x
  7. Spectropolarimetric observations of active stars Monthly Notices of the Royal Astronomical Society · Oxford University Press · 1997 10.1093/mnras/291.4.658
  8. Chemical abundances of very young intermediate mass stars 2013
  9. Magnetic Fields of Nondegenerate Stars Annual Review of Astronomy and Astrophysics · Annual Reviews · 2009 10.1146/annurev-astro-082708-101833
  10. Magnetic fields and chemical peculiarities of the very young intermediate-mass binary system HD 72106 Monthly Notices of the Royal Astronomical Society · Oxford University Press · 2008 10.1111/j.1365-2966.2008.13946.x
  11. Observations of Cool-Star Magnetic Fields Living Reviews in Solar Physics · Springer Nature · 2012 10.12942/lrsp-2012-1
  12. Stellar MagnetismSecond Edition 2012 10.1093/acprof:oso/9780199641741.001.0001
  13. The MiMeS survey of Magnetism in Massive Stars: magnetic analysis of the O-type stars Monthly Notices of the Royal Astronomical Society · Oxford University Press · 2016 10.1093/mnras/stw2743
  14. A volume-limited survey of mCP stars within 100 pc II: rotational and magnetic properties Monthly Notices of the Royal Astronomical Society · Oxford University Press · 2018 10.1093/mnras/sty2895
  15. Line formation in an unresolved magnetic element: a test of the centre of gravity method. Astronomy and Astrophysics · EDP Sciences · 1979
  16. Array programming with NumPy Nature · Nature Portfolio · 2020 10.1038/s41586-020-2649-2
  17. Magnetic Fields of Nondegenerate Stars Annual Review of Astronomy and Astrophysics · Annual Reviews · 2009 10.1146/annurev-astro-082708-101833
  18. Array programming with NumPy Nature · Nature Portfolio · 2020 10.1038/s41586-020-2649-2
  19. Polarization in Spectral Lines Springer eBooks · Springer Nature · 2004 10.1007/1-4020-2415-0