View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

daophot psf does not write the psf image in interactive mode

vrooje wrote on Sep 16, 2008

Hi,

I need to make about 200 PSFs for individual images. I have, in the past, successfully used the following sequence to create PSF images in noao.digiphot.daophot:

phot -- starting with just a list of star positions
pstselect
psf
seepsf

All this works fine if I don't run any of the tasks interactively. If I run psf interactively, I can go through the motions of viewing profiles and adding and deleting stars from the list, but after the program finishes, my *.psf.imh is empty, and so are the opst and group files. However, if I manually remove the deleted stars from the pst file and then run psf non-interactively, everything works fine and I can move on to the last step.

(I've tried running pstselect interactively, and that goes nowhere -- just selects 0 stars, writes an empty pst file and quits.)

This was easy to work around when I was only creating a few psfs at a time, but now that I need to do around 200, I really would like to get this working so that I don't have to manually remove bad stars from each list.

I've searched these forums and I haven't really found anything like this. Any suggestions would be appreciated. Thanks!

Francisco Valdes wrote on Sep 16, 2008

Hi,

I am not an expert on this but I have experimented a little. When you do the interactive PSF are you type 'a' to accept stars first, doing an 'f', and writing the file before you quit? Any of these being missing may result in no output being written.

Yours,
Frank Valdes

vrooje wrote on Sep 16, 2008

I wish I had been given an opportunity to write the file before I moved on to the next star, but that never happened. As soon as I accepted or rejected the last star for the object, the program moved on to the next object without any input from me and without ever writing the new psf.

I didn't get a quick response here, so I found a workaround for this problem and moved on. Then I happened to try again the next day for some other psfs and the interactive routines worked just fine (I was able to write each psf before moving on to the next one). I did two things differently:

1) re-started ds9
2) edited the parameters for pstselect so that it was set to run interactively.

A couple of weeks later, I had to make some more psfs, and it didn't work interactively until I did these two steps again (but I didn't try only doing one or only doing the other, as I was in a hurry and I just needed it to work).

Francisco Valdes wrote on Sep 16, 2008

I'm sorry for your problems and glad you found a workaround and got on with your work. Thank you for supplying the additional information that may help others in the future.

The interaction between display and graphics and the tasks are less than ideal for various historical reasons. What I suspect has happened is that the keystrokes being sent between the display and the task get out of sync. Your restart approach is the way to handle this.

Again, I'm sorry for the problems and confusion.

Yours,
Frank Valdes

Last post on Sep 16, 2008