Hi Chris,<br>Taro's suggestion worked for me.<br>I anyway required a terminal version of epar. So tpar will be quite useful for me.<br>Thanks a lot.<br>Joe<br><br><div class="gmail_quote">On 10 January 2012 02:37, Chris Sontag <span dir="ltr"><<a href="mailto:sontag@stsci.edu">sontag@stsci.edu</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="#330000">
    Hi Joe,<br>
    <br>
    If Taro's suggestion isn't working for you, let me know off list. 
    There are a few different options to get this to work the way you
    need.<br>
    <br>
    And if there is a bug (or "unexpected feature"), we'd like to fix
    it.<br>
    <br>
    Finally, I believe we can get EPAR to do what you want, but to
    answer your question about a non-GUI version, yes, you can try
    "tpar" in PyRAF, for a terminal version (it requires the "urwid"
    package).<br>
    <br>
    Chris<div><div class="h5"><br>
    <br>
    On 1/7/12 2:23 AM, Joe Philip Ninan wrote:
    </div></div><blockquote type="cite">
      <pre><div><div class="h5">Hi,
I have been recently rewriting to pyraf all my photometry iraf scripts.
For using the daofind and then phot task in noan.digiphot.daophot we
first have to set the parameter files.
Following is that section from my code.
#--------------------(all the variables fwhm psfradi sigma datamin
aperture etc. have been defined before in code)---------
    iraf.daopar(matchra=fwhm, psfrad=psfradi, fitrad=fwhm)
    iraf.datapar(fwhmpsf=fwhm, sigma=sigma, datamin=datamin,
datamax=65000 , readnoi=4.8 , epadu=1.22 ,itime=intime,
ifilter=filterr)
    iraf.fitskypar(annulus=270, dannulu=12 )
    iraf.photpar(apertur=aperture)
    iraf.daofind(image=img)
    #Going forward to do phot
    iraf.phot(image=img)
#----------------------------------------------------
Now , when I run this code. It does displays the epar daopar, datapar
etc in the GUI epar window of the pyraf with all correct values set.
But when I press "Save & Quit" button and reaches the daofind or phot
task. It is executing without all the seted parameters.
It looks like inspite of me clicking on "Save & Quit" button. It is
not getting saved. and the phot and daofind task are using some
default setting in my uparm/
In iraf, I had the same problem if i gave :wq in epar. But if I gave
:w and then :q separately it used to work.
There is no :w equivalent button in pyraf's GUI epar window.

Can somebody point out some workaround for this problem? Is it
possible in pyraf to get the non GUI epar window of iraf?
Thanking you
Joe

--
/-----------------------------------------------------------</div></div>----
"GNU/Linux: because a PC is a terrible thing to waste" -  GNU Generation
_______________________________________________
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>
  </div>

</blockquote></div><br><br clear="all"><br>-- <br>/---------------------------------------------------------------<br>"GNU/Linux: because a PC is a terrible thing to waste" -  GNU Generation<br><br>************************************************<br>

Joe Philip Ninan    <a href="http://sites.google.com/site/jpninan/" target="_blank">http://sites.google.com/site/jpninan/</a>    <br>Research Scholar        /________________\<br>DAA,                            | Vadakeparambil |<br>

TIFR,                           | Pullad P.O.         |<br>Mumbai-05, India.      | Kerala, India      |<br>Ph: +917738438212   | PIN:689548       |<br>------------------------------\_______________/--------------<br><br>