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/image_xpaset.py.html
AHELP for Sherpa 4.0 Beta image_xpaset Context: py.sherpa

Synopsis

Send data to ds9 using XPA.

Syntax

image_xpaset( arg )

Description

The image_xpaset function is used to send data to the SAO imager, ds9. An example would be to send ds9 an image file to display. The image_xpaset function provides a simple, easy to use, interface which is similar to the xpaset command-line tool [http://hea-www.harvard.edu/saord/xpa/programs.html#xpaset] from the XPA package. A call to the function image_xpaset("file foo.fits") would translate to 'xpaset -p ds9 file foo.fits' on the command line.

Example

sherpa> image_xpaset("file foo.fits")
sherpa> image_xpaset("frame new")
sherpa> image_xpaset("grid yes")
sherpa> image_xpaset("regions foo.reg")
sherpa> image_xpaset("saveimage jpeg foo.jpg")
sherpa> image_xpaset("wcs replace file foo.wcs")

The image_xpaset function accepts (1) string argument using it as the command 'xpaset -p ds9 arg'.

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.