Calling daoedit from within CL script
JanRap wrote on Mar 19, 2010
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 :D
-Daniël
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 :D
-Daniël
Mike Fitzpatrick wrote on Mar 19, 2010
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.
If you still have questions, please post specifics of what you are doing.
daoedit ("foo.fits", igcommands="cursor.txt", >& "output.txt")
If you still have questions, please post specifics of what you are doing.
Last post on Mar 19, 2010