Welcome to iraf.net Tuesday, May 07 2024 @ 06:25 PM GMT
rohit |
05/07/2007 02:45AM (Read 3342 times)
|
|
|
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> Now, 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!
|
|
|
|
fitz |
05/07/2007 02:45AM
|
|
|
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
|
|
|
|
| |
|
Content generated in: 0.07 seconds |
|