Published July 5, 2026 | Version v1.1.0

folsomcp/specpolFlow: SpecpolFlow version 1.1

Description

SpecpolFlow is a Python package providing a collection of tools and tutorials for the analysis of stellar spectropolarimetric observations.

This is the version 1.1 update to the SpecpolFlow package. This contains several new functions, described in the release notes at https://folsomcp.github.io/specpolFlow/About/ReleaseNotes.html and summarized here:

  • New functions
    • Equivalent widths and V/R ratios can now be calculated using the calc_ew function from the Spectrum class or the calc_ew function from the LSD class.
    • V/R ratios (ratio of the equivalent width of the violet side of a line to the red side of a line) can now be calculated using the calc_V_R functions from the LSD class.
    • Plot spectra and line lists with the plot_obs_lines function, which can label lines from the list, and can plot Stokes I, V, null, or both I and V spectra.
    • Plot line lists and labels with flexible formatting with the plot_lineList function.
    • Command line plotting tool for spectra and line lists spf-plotspec, as an easy 'quick look' tool.
    • Plot a breakdown of the number of lines from different elements in a Mask with the new plot_elementsChart function.
    • Tools for converting between wavelengths in air and vacuum for the Spectrum, LineList, and Mask classes, with the vacuum_to_air and air_to_vacuum functions.
    • Tools for Doppler shifting the Spectrum, LineList, and Mask classes, with the doppler_shift functions.
    • Function to convert Mask objects back into LineList objects using the Mask.convert_to_line_list function.
  • Modified functions
    • Spectrum.coadd can now coadd spectral orders separately, or it can merge spectral orders before coadding. By default it will coadd orders individually, which is controlled by the byOrders keyword. If orders are merged before coadding, how the merge is performed is controlled by the mergeOrders keyword.
    • The converters.espadons and converters.spirou functions can now read compressed fits files in fits.gz, fits.zip, or fits.b2z formats.
    • The read_spectrum function has a new usecols option to control which columns of the input text file are used for non-standard formats.
    • The LSD.calc_bz function has a new plotAllCOG option, which can be set to False to only plot the center of gravity used, not all alternatives.
    • The plot generated by LSDpy has removed the smoothed profile included by default (the full unsmoothed profile is still plotted).

Documentation for the project is on our website at https://folsomcp.github.io/specpolFlow/index.html

Files

folsomcp/specpolFlow-v1.1.0.zip

Files (117.9 MB)

Name Size Download all
md5:d4c77514e8a1ba54db8d72ba30c18e25
117.9 MB Preview Download

Additional details

Related works