Welcome to iraf.net Friday, May 03 2024 @ 07:26 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Calling daoedit from within CL script
   
JanRap
 03/19/2010 02:39PM (Read 1814 times)  
+----
Newbie

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 Big Grin -Daniƫl

 
Profile Email
 Quote
fitz
 03/19/2010 02:39PM  
AAAAA
Admin

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.

 
Profile Email
 Quote
   
Content generated in: 0.07 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login