Vicky Kaspi wrote:
>
> When trying to make a spectally weighted exposure map,
> following the science thread, I tried running the
> spectrum.sl script in sherpa, after adding revised
> energy bands as the thread recommends. However in
> sherpa I got the following error message:
>
> sherpa> ()=evalfile("spectrum_thread.sl")
> sherpa> runtest("source.ascii")
> Invalid Parameter: Array index 0 ([0:0]) out of allowed range [0->0]
> Invalid Parameter: runtest("source.ascii");
> sherpa>
>
Vicky,
You have to make sure that your input spectrum covers the whole energy band
that you use (ie the Standard_Bands array). So if the lowest bin in
Standard_bands starts at 0.5, then your spectrum has to have points down to
at least 0.5 keV.
Doug
--------------------------------------------------------------
Doug Burke | Email: dburke@cfa.harvard.edu
Harvard-Smithsonian | Phone: (617) 496 7660
Center for Astrophysics | Fax: (617) 495 7356
60 Garden Street MS-70 | Office: PS-4A - the mezzanine
Cambridge, MA 02138 | level opposite Phillips
--------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Feb 12 2013 - 01:00:09 EST