<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The simple answer is too many Python irons in the fire right now. PIL,
Tkinter, and some Python apps. When I get stuck on one area, I wait for
a solution, and move to another topic. I've just rotated back to FITS (
and the Pmw toolkit). I'll try DS9 out of curiosity, but I do like do
some ground work first. I'm also trying not to take some mis-steps
here. It's all to easy for people to misunderstand matters, and go off
in unintended directions. Another reason to dive right in is that the
app I'm working on works among its users pretty well, but they may not
be receptive to changes I'm working (to a program I didn't write) if
they have to do too many extras. For example, I do not want to
complicate the install process for them. Virtually none of them is
familiar with fits, although they certainly profit it by it. As another
example, I wrote some simple utilities a few months ago, but no one
picked up on them, since they required Python 2.5. They are stuck on
version Pyton 2. 5 of the program. The sponsor even added new features
to the app, but in 2.5, so there's reluctance even there. When I finish
my additions to the app, I think people will clearly see it has
features they need. It'll be in 2.5.<br>
<br>
I actually heard of DS9 about 3 weeks ago when my ccdsoft (Bisque
product) that deals with fits as its normal format died. I needed to
look at some files in fits, and someone recommended DS9. I think
there's a web interactive version of it. I finally wrestled ccdsoft
back into operability, and found a simpler way to deal with a fits file
in the interim. I have lots of balls in the air. <br>
Cheers.<br>
<br>
Stefan Schwarzburg wrote:
<blockquote
 cite="mid:c5726b700904070239pb0f58b7p7e63883a2aa55b98@mail.gmail.com"
 type="cite"><br>
  <br>
  <div class="gmail_quote">On Tue, Apr 7, 2009 at 11:29, Wayne Watson <span
 dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sierra_mtnview@sbcglobal.net">sierra_mtnview@sbcglobal.net</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">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.<br>
    </div>
  </blockquote>
  <div><br>
DS9 is a external program with a python interface. From the user /
programmer&nbsp; point of view you can not distinguish between a python ds9
interface that has the "imshow" command and a pure python modeule that
has the "imshow" command. You can also (from that point of view) not
distinguish between a pure python module and one that is a wrapper for
a c library or something like this. <br>
If you don't have stronger requirements, like for example a custom
python virtual machiene that can not run external programs, then I
don't see why you should care if this is an interface to a program or
if it is a interface to a module.<br>
  <br>
By the way: have you tried it? Is there some reason why you don't like
this kind of solution?<br>
  <br>
Cheers, <br>
Stefan<br>
&nbsp;</div>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000"><br>
Stefan Schwarzburg wrote:
    <blockquote type="cite">
      <div>
      <div class="h5"><br>
      <br>
      <div class="gmail_quote">On Mon, Apr 6, 2009 at 20:46,
Cohen-Tanugi
Johann <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:cohen@lpta.in2p3.fr" target="_blank">cohen@lpta.in2p3.fr</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">the
main thing missing when using matplotlib is the correct use of<br>
astronomical coordinate information, and that is a pretty big plus of
ds9.<br>
        <font color="#888888">J<br>
        </font></blockquote>
      <div><br>
I'm not sure if I posted this reply already to this thread, or if it
was the same topic on a different thread:<br>
      <br>
You can also try pysao to comminicate with ds9, the interface is nicer
(although the implementation might not, I don't know). <br>
      <a moz-do-not-send="true"
 href="http://code.google.com/p/python-sao/" target="_blank">http://code.google.com/p/python-sao/</a><br>
      <pre><span>&gt;&gt;&gt;</span><span> </span><span>import</span><span> pysao

</span><span># run new instance of ds9</span><span>
</span><span>&gt;&gt;&gt;</span><span> ds9 </span><span>=</span><span> pysao</span><span>.</span><span>ds9</span><span>()</span><span></span><span>

</span><span>&gt;&gt;&gt;</span><span> </span><span>import</span><span> pyfits
</span><span>&gt;&gt;&gt;</span><span> f </span><span>=</span><span> pyfits</span><span>.</span><span>open</span><span>(</span><span>'test.fits'</span><span>)</span><span>

</span><span># display first extension of fits file</span><span>
</span><span>&gt;&gt;&gt;</span><span> ds9</span><span>.</span><span>view</span><span>(</span><span>f</span><span>[</span><span>0</span><span>])</span><span>

</span></pre>
      <br>
      <br>
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. <a
 moz-do-not-send="true" href="http://www.astro.rug.nl/software/kapteyn/"
 target="_blank">http://www.astro.rug.nl/software/kapteyn/</a><br>
      <br>
Cheers, <br>
Stefan<br>
      <br>
&nbsp;</div>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div>
        <div><br>
Phil Hodge wrote:<br>
&gt;&gt; The question is whether ds9 is a module that can be used
within a Python<br>
&gt;&gt; program? I really do not know, but indications are that it is
not.<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; ds9 is not a Python module, it's a stand-alone program that you
run from<br>
&gt; Unix. &nbsp;However, there is an interface for displaying images to it,
and<br>
&gt; the Python module numdisplay uses that interface. &nbsp;The advantage
of ds9<br>
&gt; is that it is so powerful. &nbsp;imshow in matplotlib is pretty good,
though,<br>
&gt; and you may want to use matplotlib anyway for plotting.<br>
&gt;<br>
&gt; Phil<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; AstroPy mailing list<br>
&gt; <a moz-do-not-send="true" href="mailto:AstroPy@scipy.org"
 target="_blank">AstroPy@scipy.org</a><br>
&gt; <a moz-do-not-send="true"
 href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
&gt;<br>
_______________________________________________<br>
AstroPy mailing list<br>
        <a moz-do-not-send="true" href="mailto:AstroPy@scipy.org"
 target="_blank">AstroPy@scipy.org</a><br>
        <a moz-do-not-send="true"
 href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
        </div>
        </div>
      </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
-- <br>
Institut f&uuml;r Astronomie und Astrophysik <br>
Eberhard Karls Universit&auml;t T&uuml;bingen<br>
Sand 1 &nbsp; - &nbsp;D-72076 T&uuml;bingen<br>
      <a moz-do-not-send="true"
 href="mailto:schwarz@astro.uni-tuebingen.de" target="_blank">schwarz@astro.uni-tuebingen.de</a><br>
      <a moz-do-not-send="true"
 href="mailto:stefan.schwarzburg@googlemail.com" target="_blank">stefan.schwarzburg@googlemail.com</a><br>
      <br>
Tel.: 07071/29-78605<br>
-----------------------------------------------------------------------<br>
      </div>
      </div>
      <pre><hr size="4" width="90%"><div class="im">
_______________________________________________
AstroPy mailing list
<a moz-do-not-send="true" href="mailto:AstroPy@scipy.org"
 target="_blank">AstroPy@scipy.org</a>
<a moz-do-not-send="true"
 href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a>
  </div></pre>
    </blockquote>
    <br>
    <div class="im">
    <div>-- <br>
    <pre cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)<span
 style="font-weight: bold;"></span><b><b
 style="color: rgb(204, 51, 204);"><span
 style="color: rgb(255, 153, 255);"></span><span
 style="font-family: monospace;"></span></b></b><span
 style="color: rgb(102, 0, 204);">

          "Less than all cannot satisfy Man." -- William Blake
          
</span><font><span style="color: rgb(102, 0, 204);"></span></font></pre>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Institut f&uuml;r Astronomie und Astrophysik <br>
Eberhard Karls Universit&auml;t T&uuml;bingen<br>
Sand 1 &nbsp; - &nbsp;D-72076 T&uuml;bingen<br>
  <a moz-do-not-send="true" href="mailto:schwarz@astro.uni-tuebingen.de">schwarz@astro.uni-tuebingen.de</a><br>
  <a moz-do-not-send="true"
 href="mailto:stefan.schwarzburg@googlemail.com">stefan.schwarzburg@googlemail.com</a><br>
  <br>
Tel.: 07071/29-78605<br>
-----------------------------------------------------------------------<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title>Signature.html</title>
<pre class="moz-signature" cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)<span
 style="font-weight: bold;"></span><b><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="color: rgb(255, 153, 255);"></span><span
 style="font-family: monospace;"></span></b></b><span
 style="color: rgb(102, 0, 204);">

          "Less than all cannot satisfy Man." -- William Blake
          
</span><font class="sqq"><span class="sqq"
 style="color: rgb(102, 0, 204);"></span></font></pre>
</div>
</body>
</html>