Transform spectra – transform

If needed, a spectra in one format can be transformed into another format using FLITSR’s transform script. This script reads in the spectral input format using FLITSR’s usual input readers, and can print the resulting spectrum out to any other supported format. For now this just includes TCM and GZoltar format (see Input types). The command-line script has the following arguments:

transform command line arguments

usage: transform [-h] [-t {GZOLTAR,TCM}] [-o OUTPUT_FILE] input

Positional Arguments

input

The spectrum input file. The spectral format is guessed from the input file, and by default the output format is assumed to be a different format type.

Named Arguments

-t, --output-type

Possible choices: GZOLTAR, TCM

Convert the input fileinto the given output format

-o, --output-file

Specifies the name of the output file. By default, the name is derived from the name of the input file; for example, if the input file is “input.tcm”, and the output format is Gzoltar, the output will be “input/”.