<div class="gmail_quote">On Fri, Oct 2, 2009 at 8:44 AM, Stefan Behnel <span dir="ltr">&lt;<a href="mailto:stefan_ml@behnel.de">stefan_ml@behnel.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Nicola De Quattro wrote:<br>
&gt; So I&#39;ve to open an image (various formats, first I could need only<br>
&gt; .fits), to process the image in order to select the interesting strip<br>
&gt; containing the star and the spectrum (first image of the link posted,<br>
&gt; but I hope I can select the strip not only in the horizontal line but<br>
&gt; I will rotate the image), to obtain a graph like the second and third<br>
&gt; image (this may be simple, it plots the value of luminosity of each<br>
&gt; point), calibrate the image using periodical table of elements as<br>
&gt; shown in 6th image in order to color the graph.<br>
<br>
</div>Without looking further into your problem, there are two (main) general<br>
purpose image manipulation libraries for Python (that I know of) that you<br>
may want to look at: PIL and ImageMagick. At least ImageMagick supports FITS.</blockquote><div><br></div><div>This is definitely a project you could do with python. It might take a fair amount of programming, but it should certainly take less with python than most other languages. Especially with the implementation of a GUI. I&#39;d suggest PyGTK+ simply because of the rather extensive documentation. I&#39;ve used both Tkinter and PyGTK and the latter is much easier to deal with when using images, though YMMV.</div>

<div><br></div><div>The most difficult task would be analyzing the image and possibly some of the graph generation.</div><div><br></div><div>HTH,</div><div>Wayne</div></div>