Welcome to iraf.net Tuesday, May 07 2024 @ 06:25 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 programming in IRAF
   
rohit
 05/07/2007 02:45AM (Read 3342 times)  
++++-
Regular Member

Status: offline


Registered: 06/01/2006
Posts: 86
Hello Mike (fitz), I have been doing the following: take a file,
rotate it by 45 degrees (using rotate command, (images:imgeo:rotate))
and filp it in x (imcopy <filename> [-*,*] <filename>WinkNow, I have 50 such files. I would like to know how I should write a program in IRAF to run this sequence and execute it. Could you please give me an example program in CL, that I could mimic and write the above procedure? Thanks!

 
Profile Email
 Quote
fitz
 05/07/2007 02:45AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Trillian,For script programming I'd suggest reading the Script Programmer's Guide (https://iraf.net/irafdocs/script/). In this case however, you can rotate and flip the images on the command line. For example[code:1:df57441e34]
cl> rotate img*.fits[-*,*] %img%rfimg%*.fits -45
[/code:1:df57441e34]The '%' operator is used to do a substitution, in this case it creates the output file list by changing the 'img' of the filename to 'rfimg', the flip is done with an image section on input but the angle of rotation needs to be negative to get the safe effect.If you were to write a script you would normally loop over a filename list and call the tasks individually but then you'd need to manage temp filenames and such for each step.Cheers,
-Mike

 
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