Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions source/fitting/spectrum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ Loading the data
staterror = None
syserror = None

.. Note::
The ``load_data`` command may not work in the stand-alone version of
Sherpa. If not, you can use ``pyfits`` to load in the data and then
``load_arrays``, for example::

import pyfits
dat = pyfits.open('3c273.fits')[1].data
wlen = dat.field('WAVELENGTH')
flux = dat.field('FLUX')
ui.load_arrays(1, wlen, flux)

As the file contains two columns, they are taken to be the ``x`` and
``y`` data values. The y values are small (of order 10^-14): ::

Expand Down