<div dir="ltr">It's also worth noting that you can read IDL save files using scipy.io.readsav (<a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.io.readsav.html">http://docs.scipy.org/doc/scipy/reference/generated/scipy.io.readsav.html</a>). This is useful if, for example, you have a legacy IDL pipeline that produces some output that you then wish to analyze further using Python. If I intend to continue using an IDL script frequently, I convert it to Python, but if it's not worth converting, I use this save file approach to 'patch' together IDL and Python.<div>
<br></div><div>Cheers,</div><div><br>Chris</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 23, 2013 at 10:37 PM, Thøger Emil Rivera-Thorsen <span dir="ltr"><<a href="mailto:thoger.emil@gmail.com" target="_blank">thoger.emil@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>I second that!<br>
<br>
There is even a page, Numpy for IDL Users (<a href="https://www.cfa.harvard.edu/%7Ejbattat/computer/python/science/idl-numpy.html" target="_blank">https://www.cfa.harvard.edu/~jbattat/computer/python/science/idl-numpy.html</a>),
that shows a lot of function and command equivalences between the
two languages. When I wrote my Master's degree thesis, my
supervisor gave me some IDL scripts and told me to "read them,
understand them and then run them". I took that as my chance to
learn python, so I re-wrote them in Python, and ran both the IDL
and python versions and checked that they gace identical results -
which was actually a great jumpstart to python coding. I have
never regretted it - in fact it took me only two or three weeks
before I could do as much in Python as I could in IDL, plus some
plotting stuff that was much easier in Python. <br><div><div class="h5">
<br>
<br>
On 23-09-2013 21:12, Slavin, Jonathan wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Morris,</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
As far as I know, i2py is an abandoned project. I think it
only worked partially even when it was maintained. Ouf of
curiosity, which IDL programs did you want to convert to
python? If you're familiar with IDL but not so much with
python, converting IDL programs to python is a good way learn
it.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Jon</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Message: 1<br>
Date: Mon, 23 Sep 2013 13:11:22 +0100<br>
From: Morris Stranger <<a href="mailto:ma.stranger@o2.co.uk" target="_blank">ma.stranger@o2.co.uk</a>><br>
Subject: [AstroPy] help with i2py software<br>
To: <a href="mailto:astropy@scipy.org" target="_blank">astropy@scipy.org</a><br>
Message-ID: <<a href="mailto:1E0CC95D-0BEB-437D-ACC0-CBE40A6CA590@o2.co.uk" target="_blank">1E0CC95D-0BEB-437D-ACC0-CBE40A6CA590@o2.co.uk</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
<br>
I'm having trouble using the i2py software. I have very
little knowledge of computers (mainly just using my
computer for the internet and downloading simple files). I
am saying this because when someone gave me help last
time, whilst I was very grateful, he was instructing me to
do things that were beyond my knowledge. I want to get the
i2py software working as a translator on my computer. My
knowledge of python isn't very good either (I know how to
make simple programs and how to work a bit with Numpy but
nothing fancy). I downloaded the software from this link:
<a href="http://code.google.com/p/i2py/downloads/detail?name=i2py-0.1.0.zip&can=2&q=" target="_blank">http://code.google.com/p/i2py/downloads/detail?name=i2py-0.1.0.zip&can=2&q=</a><br>
and I got a folder of files but I don't know beyond that
how to get the IDl2python translator up and running. I
would be very grateful if someone could help me with this.<br>
<br>
Thank You,<br>
<br>
Morris Stranger<br>
</blockquote>
</div>
-- <br>
<div dir="ltr">________________________________________________________<br>
Jonathan D. Slavin Harvard-Smithsonian CfA<br>
<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>
60 Garden Street, MS 83<br>
phone: <a href="tel:%28617%29%20496-7981" value="+16174967981" target="_blank">(617) 496-7981</a> Cambridge, MA 02138-1516<br>
fax: <a href="tel:%28617%29%20496-7577" value="+16174967577" target="_blank">(617) 496-7577</a> USA<br>
________________________________________________________<br>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
AstroPy mailing list
<a href="mailto:AstroPy@scipy.org" target="_blank">AstroPy@scipy.org</a>
<a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Chris Hayward<br>Heidelberger Institut für Theoretische Studien<br>Schloss-Wolfsbrunnenweg 35<br>69118 Heidelberg, Germany<br>Google Voice: +1 (617) 744-9416<br>
Office: +49 6221 533 284<br>Fax: +49 6221 533 298<br><a href="http://www.cfa.harvard.edu/~chayward" target="_blank">http://www.cfa.harvard.edu/~chayward</a>
</div>