NAME

ftmkfiltrsp - Read an input text with a filter response to make a single channel response matrix.

USAGE

ftmkfiltrsp infile outfile xunit clobber

DESCRIPTION

This tool reads a text file (infile) which contains the response for a filter (in cm^2) and creates a response matrix with a single channel. This is useful for including photometric data in spectral fitting. The format for the input file is three numbers per row with the first and second numbers being the start and end energies (or wavelengths) for the bin and the third the response.

The units for the energies (or wavelengths) in the input text file can be specified using the xunit parameter. The allowed units are given below in the parameter specifications.

PARAMETERS

infile [filename]
The name of the input text file with the model spectrum or spectra.

outfile [filename]
The name of the output response file.

xunit [string]
The units for energy or wavelength used in the input text file. The allowed options are keV (the default), MeV, GeV, Hz, angstrom, cm, micron, or nm.

clobber [bool]
If clobber = yes then overwrite the output file if a file of this name already exists.

EXAMPLES

1. Example with units in keV using as input file

0.1  0.2  0.2
0.2  0.3  0.3
0.3  0.4  0.4
0.4  0.5  0.5
0.5  0.6  0.4
0.6  0.7  0.3
0.7  0.8  0.2
0.8  0.9  0.1
0.9  1.0  0.0
and command
ftmkfiltrsp input.txt fileout.rsp
2. Example with units in micron

ftmkfiltrsp input.txt fileout.rsp xunit=micron

SEE ALSO

LAST MODIFIED

Jan 2022