File: index.rst

package info (click to toggle)
python-pyds9 1.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,184 kB
  • sloc: ansic: 17,257; sh: 3,668; python: 701; makefile: 491; tcl: 219
file content (78 lines) | stat: -rw-r--r-- 2,237 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.. pyds9 documentation master file, created by
   sphinx-quickstart on Mon Nov  9 10:20:44 2009.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to pyds9's documentation!
=================================

.. module:: pyds9

**A Python Connection to DS9 via XPA**

The XPA messaging system (http://hea-www.harvard.edu/saord/xpa) provides
seamless communication between many kinds of Unix programs, including Tcl/Tk
programs such as ds9. The pyds9 module uses a Python interface to XPA to
communicate with ds9. It supports communication with all of ds9's XPA access
points. See http://hea-www.harvard.edu/saord/ds9/ref/xpa.html for more info
on DS9's access points.

pyds9 is available from GitHub:

	 https://github.com/ericmandel/pyds9

To install in the default directory::

	# install in default system directory
	> python setup.py install

or to install in a user-specified directory::

	# install in specified directory
	> python setup.py install --prefix=<install-dir>
	> setenv PYTHONPATH <install-dir>lib/python2.x/site-packages

To run::

	# start up python
	> python
        ... (startup messages) ...
	>>> from pyds9 import *
	>>> print ds9_targets()
	>>> d = Ds9()

The setup.py install will build and install both the XPA shared library and
the xpans name server. By default, the code generated for the shared object
will match the address size of the host machine, i.e. 32-bit or 64-bit
as the case may be. But on 64-bit Intel machines, the XPA build also will check
whether python itself is 64-bit. If not, it will add the "-m32" switch to the
compile options to build a 32-bit shared object. This check can be overridden
by defining the CFLAGS environment variable (which can be anything sensible,
including an empty string).

Contact saord@cfa.harvard.edu for help.

**The DS9 Class:**

.. autoclass:: DS9
   :members: __init__, get, set, info, access, get_pyfits, set_pyfits, get_arr2np, set_np2arr

**Auxiliary Routines:**

.. autofunction:: ds9_targets

.. autofunction:: ds9_openlist

.. autofunction:: ds9_xpans


.. toctree::
   :maxdepth: 2

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`