ascii_to_specint

Synopsis

ascii_to_specint ASCII_FILE SPECINT_FILE [options]

Description

The ascii_to_specint tool reads a generic flux spectrum from an ASCII text file, and writes it to a specint file.

The ASCII text file should contain one or more lines, each consisting of a wavelength value followed by a flux value. Blank lines are ignored, and comments and label definitions are supported via the --comment-prefix and --label-prefix options.

Options

-h, --help

Print a summary of options.

--lambda-units=UNITS

Wavelength units of input file. Valid choices are A (\(\angstrom\); default) and micron (\({\rm \mu\,m}\)).

--flux-units=UNITS

Flux units of input file. Valid choices are erg/cm^2/s/A (\(\erg\,\cm^{-2}\,\second^{-1}\,\angstrom^{-1}\); default).

--comment-prefix=PREFIX

Treat lines prefixed by PREFIX as comments.

--label-prefix=PREFIX

Treat lines prefixed by PREFIX as photospheric parameter definitions (formatted as NAME:VALUE).

-l, --label=NAME:VALUE

Photospheric parameter name and value. Can be specified multiple times, to define multiple parameters. Overrides values defined using --label-prefix.