[AstroPy] photometry in pyraf

Joe Philip Ninan indiajoe at gmail.com
Sat Jan 7 02:23:37 EST 2012

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,
    iraf.fitskypar(annulus=270, dannulu=12 )
    #Going forward to do phot
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

"GNU/Linux: because a PC is a terrible thing to waste" -  GNU Generation

More information about the AstroPy mailing list