Title: Signature.html
Thanks, but I'm not sure why people keep bringing up DS9. As I understand it, it is a stand alone program of sorts that has no interface with Python. It seems to me it would be like saying use Word or Adobe Photoshop.

Stefan Schwarzburg wrote:


On Mon, Apr 6, 2009 at 20:46, Cohen-Tanugi Johann <[email protected]> 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
> [email protected]
> http://mail.scipy.org/mailman/listinfo/astropy
>
_______________________________________________
AstroPy mailing list
[email protected]
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
[email protected]
[email protected]

Tel.: 07071/29-78605
-----------------------------------------------------------------------

_______________________________________________ AstroPy mailing list [email protected] http://mail.scipy.org/mailman/listinfo/astropy

--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)

          "Less than all cannot satisfy Man." -- William Blake
          
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to