forked from leejjoon/pysao
-
Notifications
You must be signed in to change notification settings - Fork 0
python wrapper of sao XPA library
License
Unknown, MIT licenses found
Licenses found
Unknown
LICENSE
MIT
LICENSE_MIT.txt
evavagiakis/pysao
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
pysao ===== 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 : http://leejjoon.github.com/pyregion/ pyregion is "easy_install"able. http://pypi.python.org/pypi/pysao ``` pip install pysao ``` USAGE ===== ```python >>> 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 = pyfits.open('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") ```
About
python wrapper of sao XPA library
Resources
License
Unknown, MIT licenses found
Licenses found
Unknown
LICENSE
MIT
LICENSE_MIT.txt
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C 44.7%
- Roff 24.8%
- HTML 14.2%
- M4 5.9%
- Python 5.8%
- Shell 2.6%
- Other 2.0%