4.1.17. File: model read from a fileΒΆ
This model reads a spectrum from a file. The user inputs a spectrum at
energy bins (
). The file containing the spectrum
should have the follwing format:
first line:
second line:
,
third line:
,
last line:
,
Here is the energy of a photon in keV, and
is
the spectrum in units of
photons
. All energies
must
be positive, and the grid must be monotonically increasing (two
subsequent energies may not have the same value). Also, the spectrum
must be strictly positive (i.e.
is not
allowed).
SPEX then calculates the spectrum by linear interpolation in the
plane (this is why fluxes must be positive). For
and
however, the spectrum is put to zero. Finally, the
spectrum is multiplied by the scale factor
prescribed by the
user.
The parameters of the model are:
norm
: Normalisation factor file
: The file name of the file containing the spectrum