Articles tagged with 'ds9'

Blog: Getting RGB image values from ds9

An astropython.org visitor writes:

I'm using Matplotlib to make some figures out of FITS images.  I really would like to find a way to do 2 way communication with DS9.  I know there are ways to send an image to DS9 from Python at a command line.  But what I would like to do is send DS9 an image, display it there and set the stretch ...

Posted by aldcroft

Snippet: Fix the WCS for a FITS image file

The code snippet which follows will allow you to fix an error in the astrometry of a FITS image.  This is especially common with HST images because the astrometrical errors can be an arcsecond or more.  The method used assumes that you have extracted the positions (RA, Dec) for at least 2 image point sources for which you have more accurate reference positions (e.g. from SDSS or ...

Posted by aldcroft

Resource: RO

Description: Cross-platform utilities for astronomy with Tk GUI and networking
Homepage URL: http://www.astro.washington.edu/users/rowen/ROPackage/Overview.html

RO is a package of python utilities with an emphasis on cross-platform support (MacOS X, Windows and unix), Astronomy, Tkinter GUI extensions and Tkinter-compatible networking. It was developed to support a telescope user interface (TUI).

  • AddCallback: mixin class for adding callback functionality to any object.
  • Alg ...

Posted by aldcroft

Blog: Announcing pyds9

We are pleased to announce the first release of pyds9, a Python module that uses a Python interface to XPA to communicate with the ds9 image display program:

  • The ds9 class constructor connects to a single instance of a running ds9.
  • The ds9 object supports 'set' and 'get' methods to communicate with all of ds9's XPA access points.
  • Other methods send/retrieve numpy arrays and pyfits hdulists ...

Posted by aldcroft

Resource: pyds9

Description: A Python interface to communicate with DS9
Homepage URL: http://hea-www.harvard.edu/RD/ds9/

The pyds9 module uses a Python interface to XPA to communicate with DS9. This includes not only sending data and settings to DS9, but also retrieving them into Python. 

This package comes from the developers of ds9 and XPA.

Posted by tom