Skip to main content
Help us improve Python packaging – donate today!

python wrapper around SAO XPA and DS9

Project Description


This project is aimed to provide a python interface for some programs
developed by Smithsonian Astrophysical Observatory(SAO). One of the
main goal is to communicate with ds9 from python shell via the XPA
protocol. It provides a python wrapper for subset of XPA library and
python module for ds9 based on the XPA module.

Homepage :

pysao is "easy_install"able.

pip install pysao


>>> import pysao

# run new instance of ds9
>>> ds9 = pysao.ds9()

>>> import numpy
>>> im = numpy.reshape(numpy.arange(100), (10, 10))
# display 2-d array
>>> ds9.view(im)

>>> import pyfits
>>> f ='test.fits')
# display first extension of fits file
>>> ds9.view(f[0])

# access with XPA method.
>>> ds9.set('file test.fits')
>>> ds9.get('file')

# list available xpa commands
>>> ds9.xpa_help()

# help on the specific xpa command
>>> ds9.xpa_help("tile")

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pysao-1.0.1.tar.gz (214.6 kB) Copy SHA256 hash SHA256 Source None May 6, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page