About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/sherpabeta/load_image.py.html
AHELP for Sherpa 4.0 Beta load_image Context: py.sherpa

Synopsis

Load FITS image data by id

Syntax

load_image( [id=1], filename, [coord="logical"] )
load_image( [id=1], IMAGECrate, [coord="logical"] )
load_image( [id=1], PyFITS HDUList, [coord="logical"] )

Description

Load a FITS image file given a filename and path, or an IMAGECrate object, or a PyFITS HDUList object into a data set by data set ID.

Example

sherpa> load_image("img.fits")
sherpa> load_image("psf", "img.fits")
sherpa> load_image(1, "img.fits")
sherpa> load_image(crate)
sherpa> load_image(hdulist)

The load_image function can be called with just a filename and path argument, in which case the default id and coord will be used. Data set IDs can be integers or strings; in the latter case a string can denote useful information about the data (e.g., whether it is your source or PSF data set).

Bugs

See the bugs pages on the Sherpa Beta website for an up-to-date listing of known bugs.

Last modified: December 2007



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.