Hi Eric,<div><br></div><div>The idea is that we want to run JMFIT on a list of point-like sources in an image cube. We want to generate the list of sources dynamically, and call JMFIT to fit for the source parameters, writing the output to a text file for each source, parsing the output file and appending the fitted parameters to our source listing. Doing this from our own scripts will enable efficient bookkeeping, where we can keep track of the source and the fit at the same time. </div>

<div><br></div><div>We have many hundreds of sources, and dealing with hundreds of little JMFIT ouput files is daunting. It would be easiest if we could, e.g. call JMFIT from the UNIX command line (or through a spawned AIPS shell), perform the fit, save the parameters, and absorb the results into our dynamically-executing code.</div>

<div><br></div><div>We have so far been using MIRIAD, where this functionality is available and works very well. However, the AIPS routine JMFIT is best suited for our scientific purpose and we were wondering if dynamic execution in this fashion is possible in AIPS.</div>

<div>Many thanks,</div><div>Tanmoy</div><div><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-family:arial;font-size:small"><div style="text-align:left">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div style="text-align:left">2nd Yr Graduate Student in Astronomy</div><div><div style="text-align:left">Harvard-Smithsonian Center for Astrophysics</div><div style="text-align:left">

A-107, 60 Garden St, Cambridge (617)-495-5989 </div></div><div style="text-align:left"><a href="http://www.cfa.harvard.edu/%7Etlaskar" target="_blank">http://www.cfa.harvard.edu/~tlaskar</a></div><div><div style="text-align:left">

Mobile: (617)-899-9361</div><div style="text-align:left">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div></div></span></span><br>
<br><br><div class="gmail_quote">On Wed, Jun 22, 2011 at 9:59 AM, Eric Greisen <span dir="ltr"><<a href="mailto:egreisen@nrao.edu">egreisen@nrao.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5">Ashley Zauderer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Eric,<br>
<br>
Is there any way to run aips tasks from outside of the aips environment?<br>
<br>
Or do you always have to startup aips to run tasks, run files, etc.?<br>
<br>
thanks!<br>
ashley<br>
<br>
</blockquote>
<br></div></div>
Why would you need to?  Actually, OBIT (Bill Cotton's package "for the recently deceased") and ParselTongue packages for VLBI in Europe use a python scripting language to run both AIPS tasks and their own programs in a combined environment.  But they have to go to lots of work to make sure the AIPS environment is set up - there are logicals that must be known in orderto find things.<br>

<font color="#888888">
<br>
ERic Greisen<br>
<br>
</font></blockquote></div><br></div>