[Last Change: 22 Feb 2012 (rev 3)]
file
Spectrum Function
The
file
spectrum function generates a flat spectrum with the same flux at each energy. It takes a single argument, a table, with the following recognized named entries:
name |
type |
description |
default |
name |
string |
name of spectrum instance |
|
file |
string |
name of file |
|
format |
string |
format of file. must be "rdb" |
|
emin |
string |
name of column containing minimum bin energy in keV, inclusive |
"emin" |
emax |
string |
name of column containing maximum bin energy in keV, exclusive |
"emax" |
flux |
string |
name of column containing flux |
"flux" |
units |
string |
units of flux. one of: "ergs/s/cm2/kev", "kev/s/cm2/kev", or "photons/s/cm2" |
|
scale |
number |
factor by which to scale the spectrum |
1.0 |
For example
spectrum = file{ name = "spec for object 1",
file = "spectrum.rdb",
units = "ergs/s/cm2/kev",
scale = 0.5,
format = "rdb" }