synspec_to_specint

Synopsis

synspec_to_specint SYNSPEC_FILE SPECINT_FILE [options]

Description

The synspec_to_specint tool extracts spectral data from a file produced by the SYNSPEC spectral synthesis package (Lanz & Hubeny, 2003), and writes it to a specint file.

For the law selected by the --limb-law option, the tool calculates the limb-darkening coefficients at each wavelength via a least-squares fit to the function

\[y(\mu) = 1 - \frac{I_{\lambda}(\mu)}{I_{\lambda}(1)}.\]

Options

-h, --help

Print a summary of options.

-t, --file-type=TYPE

Type of SYNSPEC file. Valid choices are flux (usually written by SYNSPEC to the file fort.7; default) and intensity (usually written by SYNSPEC to the file fort.18).

--limb-law=LAW

Limb-darkening law in output file (see here for a list of valid choices; default CONST). Required for intensity file types.

--mu-min=MIN

Minimum \(\mu\) value in SYNSPEC’s angular grid (as specified by the ang0 parameter in the fort.55` SYNSPEC control file). Required for intensity file types.

--n-mu=N

Number of \(\mu\) values in SYNSPEC’s angular grid (as specified by the nmu parameter in the fort.55` SYNSPEC control file). Required for intensity file types.

-l, --label=NAME:VALUE

Photospheric parameter name and value. Can be specified multiple times, to define multiple parameters.