Welcome to iraf.net Thursday, April 25 2024 @ 05:26 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 imcombine
   
dbrenner
 06/02/2006 02:40AM (Read 4978 times)  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
I have the following codeprocedure getmedian
string *filelist
begin
#make list of files
if (access(filename = "left.lis"))
delete(file = "left.lis")
ls "*L.fits", > "left.lis"
filelist = "left.lis"
#make median image
imcombine(input = filelist, output = "leftmedian.fits", combine = "median")
endleft.lis looks like thisker0017L.fits
ker0018L.fits
ker0019L.fits
ker0020L.fits
etc.imcombine stopped after the first image. leftmedian.fits was the same as ker0017L.fitsWhat did I do wrong?Thanks

 
Profile Email
 Quote
fitz
 06/02/2006 02:40AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
It is a subtlety of the use of a "list directed parameter", in this case your 'filelist' script variable. Basically, these parameters return a value from the list each time they are queried, but you only use it in the one imcombine call and so it returns only the first image on the list, and so the input and output image is the same.I think what you intended was for this to be an @file, try instead[code:1:77cf4f421c]imcombine(input="@left.lis", output=.......)[/code:1:77cf4f421c]or even just[code:1:77cf4f421c]imcombine(input="*L.fits", output=......)[/code:1:77cf4f421c]Cheers,
-Mike

 
Profile Email
 Quote
dbrenner
 06/02/2006 02:40AM  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
thanks.

 
Profile Email
 Quote
   
Content generated in: 0.11 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