Skip to content

Latest commit

 

History

History
67 lines (41 loc) · 1.82 KB

synspec_to_specint.rst

File metadata and controls

67 lines (41 loc) · 1.82 KB

synspec_to_specint

The synspec_to_specint tool extracts an single intensity spectrum from a fort.18 data file produced by the SYNSPEC spectral synthesis package :ads_citep:lanz:2003, and writes it to a specint file. It accepts the following command-line arguments:

synspec_to_specint

<synspec_file_name>

Name of input SYNSPEC file.

<n_mu>

Number of μ values in input file (as specified by the nmu parameter in the fort.55 SYNSPEC control file).

<mu_0>

Minimum μ value in input file (as specified by the ang0 parameter in the fort.55 SYNSPEC control file).

<lam_min>

Minimum wavelength of output file ($\angstrom$).

<lam_max>

Maximum wavelength in output file ($\angstrom$).

<R>

Resolution ℛ = λ/Δλ in output file.

<law_str>

Limb-darkening law in output file (see here <limb-darkening-laws> for a list of options).

<specint_file_name>

Name of output specint file.

<label> (optional)

Label of atmosphere parameter (must be accompanied by a corresponding <value> argument).

<value> (optional)

Value of atmosphere parameter (must be accompanied by a corresponding <label> argument).

Note that <label> and <value> parameters must be paired; and that there can be multiple of these pairs. For the law selected by the <law_str> 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)}.$$