Welcome to iraf.net Friday, May 03 2024 @ 07:26 PM GMT
JanRap |
03/19/2010 02:39PM (Read 1814 times)
|
|
|
Status: offline
Registered: 09/14/2009
Posts: 11
|
Hi, I hope I'm posting this in the correct forum.I am trying to call the 'daoedit' task from within a CL script, but I am struggling with the syntax.Firstly I created a .coo file containing the coordinates and type (target, comparison or standard) of each star I'm interested in, for the first FITS frame in a list. I now need daoedit to get parameters like the fwhmpsf and skysigma for me, in order to pass that to daofind so that it can find those stars in the other frames in the list.Essentially, I now want daoedit to press 'a' for me (by sending it a cursor command with imcur, using the .coo file) and then i want to catch the output (the fwhmpsf, skysigma etc. which is usually printed to the screen).I am confident that the syntax for the imcur command is correct, but I am struggling with the syntax of calling daoedit and telling it to press 'a' at those coordinates, as well as catching the output.Thanks for reading up to this point. Hope you can help -Daniƫl
|
|
|
|
fitz |
03/19/2010 02:39PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
It sounds like you want the 'igcommands' parameter to read from a cursor file to execute the 'a' command at a set of coordinates. The cursor file is NOT the .coo file, see 'help cursors' for details. You can use the FIELDS task to extract the (x,y) values from the .coo file or edit them by hand, to save the output just redirect it to a file, e.g.[code:1:50d80a8779]
daoedit ("foo.fits", igcommands="cursor.txt", >& "output.txt")
[/code:1:50d80a8779]If you still have questions, please post specifics of what you are doing.
|
|
|
|
| |
|
Content generated in: 0.07 seconds |
|