SpecpolFlow: a new software package for spectropolarimetry using Python
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- 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 활용 포인트
- –
- 평가 입력
- –
초록
본문 17,436자
본문 펼치기
섹션 본문 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건
- Magnetic White Dwarfs Space Science Reviews · Springer Science+Business Media · 2015 10.1007/s11214-015-0152-0
- Atomic energy levels - the rare-earth elements : 1978 10.6028/nbs.nsrds.60
- Least-squares deconvolution of the stellar intensity and polarization spectra Astronomy and Astrophysics · EDP Sciences · 2010 10.1051/0004-6361/201015429
- A major upgrade of the VALD database Physica Scripta · IOP Publishing · 2015 10.1088/0031-8949/90/5/054005
- Basics of spectropolarimetry Proceedings of the International Astronomical Union · Cambridge University Press · 2014 10.1017/s1743921314007017
- 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
- Spectropolarimetric observations of active stars Monthly Notices of the Royal Astronomical Society · Oxford University Press · 1997 10.1093/mnras/291.4.658
- Chemical abundances of very young intermediate mass stars 2013
- Magnetic Fields of Nondegenerate Stars Annual Review of Astronomy and Astrophysics · Annual Reviews · 2009 10.1146/annurev-astro-082708-101833
- 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
- Observations of Cool-Star Magnetic Fields Living Reviews in Solar Physics · Springer Nature · 2012 10.12942/lrsp-2012-1
- Stellar MagnetismSecond Edition 2012 10.1093/acprof:oso/9780199641741.001.0001
- 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
- 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
- Line formation in an unresolved magnetic element: a test of the centre of gravity method. Astronomy and Astrophysics · EDP Sciences · 1979
- Array programming with NumPy Nature · Nature Portfolio · 2020 10.1038/s41586-020-2649-2
- Magnetic Fields of Nondegenerate Stars Annual Review of Astronomy and Astrophysics · Annual Reviews · 2009 10.1146/annurev-astro-082708-101833
- Array programming with NumPy Nature · Nature Portfolio · 2020 10.1038/s41586-020-2649-2
- Polarization in Spectral Lines Springer eBooks · Springer Nature · 2004 10.1007/1-4020-2415-0