Re: spectrum.sl

From: Douglas Burke (dburke@head-cfa.harvard.edu)
Date: Thu Apr 26 2001 - 14:25:35 EDT


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 : Thu Dec 13 2012 - 01:00:05 EST