View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

psf and setairmass

Guest wrote on Oct 19, 2006

Im fairly new to crowded field photometry, and i need help with two problems:
First of all, when i run setairmass for my images, i get an error saying the utility cant find the parameter OBSGETD. What is this, and where can i find it? All of my observatory info should already be correctly referenced, so I am not sure what this message means.

Secondly, I know I cant really do the psf until I have the airmass, but I started fooling around with it anyway. I have set "showplots = no" in the psf file and the plots STILL pop up when I select a psf star. Also when I try to ":wq" to write the psf file, IRAF gets confused as to whether it is operating in the tektronix terminal or the cl terminal, and wont let me write the file. If it would just NOT show the plot, like i told it to, I suspect that there would be no problem. Thanks for any help you can give,

Patrick Brown
President, Society of Physics Students
Student Assistant,
NASA Education and Public Outreach
Sonoma State University

Mike Fitzpatrick wrote on Oct 19, 2006

First of all, when i run setairmass for my images, i get an error saying the utility cant find the parameter OBSGETD. What is this, and where can i find it? All of my observatory info should already be correctly referenced, so I am not sure what this message means.


Are you sure the message isn't more like "Warning: OBSGETD: Observatory parameter not found"? OBSGETD is the name of a procedure used by the task and not a parameter itself, if you're getting an error message from it then there is some error like a missing OBSERVAT keyword in the image, an invalid type for a parameter (e.g. a space in a string, a string where a double belongs, etc). You can unlearn the OBSERVATORY and ASTUTIL task/packages to reset to the defaults, otherwise check the header and values.


Secondly, I know I cant really do the psf until I have the airmass, but I started fooling around with it anyway. I have set "showplots = no" in the psf file and the plots STILL pop up when I select a psf star. Also when I try to ":wq" to write the psf file, IRAF gets confused as to whether it is operating in the tektronix terminal or the cl terminal, and wont let me write the file. If it would just NOT show the plot, like i told it to, I suspect that there would be no problem.


I'm confused: By "psf file" do you mean the task parameter file or an output file. The ":wq" is the way to save-exit the EPAR parameter editor and not a command in the PSF task itself. Also, what do you mean by 'confused' about the tek terminal or cl terminal? Are you in epar or running the task at the time?

-Mike

Warning: OBSGETD: Observatory parameter not found"

patB wrote on Oct 19, 2006

hi there, sorry I was vague, as I said I am very new to this and i was trying to bee too succinct last time.
By "psf file" I did mean the task parameter file. I did epar psf and set all the appropriate fields, including showplots = no. Then I entered ":g" which ran the task and took me into the DS9 screen with a circular star selector cursor. I selected a few stars, and although showplots was set to "no", each time the mesh plot popped up anyway. whether I closed the plot window or just clicked back on DS9 and let the plot screen (tektroniks terminal) go into the background i had the following problem: when I am done selecting stars and want to exit and write the output file, I typed :wq in the cl terminal as per Phil Masseys crowded field photometry guide. This is not working. If the plot screens have been closed, the error "unknown command" appears on the cl terminal. If the plots are still open, the same error appears written over the top of the plots in the tektroniks terminal.
This is what i meant by the program being "confused" between the tektronics and cl terminals. I dont think it is ACTUALLY closing the tektronics terminal when i click the close button on the plots. Rather than my :wq command going to the cl terminal's psf task, it seems like it might be going to the tektronics terminal, where one might normally use commands to rotate the view of the plot, etc. When tektronics sees ":wq" it doesnt recognize it, thus the error message. Just wondering if anyone has had a similar problem, or knows what causes it and how to fix it.
Thanks a lot
-Pat Brown

Last post on Oct 19, 2006