[AstroPy] numarray pdf 1.5 is broken. Using numdisplay, Python, PIL, and Tkinter

Stefan Schwarzburg stefan.schwarzburg at googlemail.com
Tue Apr 7 02:52:55 EDT 2009


On Mon, Apr 6, 2009 at 20:46, Cohen-Tanugi Johann <cohen at lpta.in2p3.fr>wrote:

> the main thing missing when using matplotlib is the correct use of
> astronomical coordinate information, and that is a pretty big plus of ds9.
> J
>

I'm not sure if I posted this reply already to this thread, or if it was the
same topic on a different thread:

You can also try pysao to comminicate with ds9, the interface is nicer
(although the implementation might not, I don't know).
http://code.google.com/p/python-sao/

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



Note also, that there is the kapteyn package which uses matplotlib (pylab)
to display the data from fits files according to the wcs (World Coordinate
System) contained in most fits files in the correct way.
http://www.astro.rug.nl/software/kapteyn/

Cheers,
Stefan



>
> Phil Hodge wrote:
> >> The question is whether ds9 is a module that can be used within a Python
> >> program? I really do not know, but indications are that it is not.
> >>
> >
> >
> > ds9 is not a Python module, it's a stand-alone program that you run from
> > Unix.  However, there is an interface for displaying images to it, and
> > the Python module numdisplay uses that interface.  The advantage of ds9
> > is that it is so powerful.  imshow in matplotlib is pretty good, though,
> > and you may want to use matplotlib anyway for plotting.
> >
> > Phil
> >
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy at scipy.org
> > http://mail.scipy.org/mailman/listinfo/astropy
> >
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>



-- 
Institut für Astronomie und Astrophysik
Eberhard Karls Universität Tübingen
Sand 1   -  D-72076 Tübingen
schwarz at astro.uni-tuebingen.de
stefan.schwarzburg at googlemail.com

Tel.: 07071/29-78605
-----------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20090407/3272ed01/attachment.html>


More information about the AstroPy mailing list