Welcome to iraf.net Thursday, April 25 2024 @ 05:26 AM GMT
dbrenner |
06/02/2006 02:40AM (Read 4978 times)
|
|
|
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
|
|
|
|
fitz |
06/02/2006 02:40AM
|
|
|
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
|
|
|
|
dbrenner |
06/02/2006 02:40AM
|
|
|
Status: offline
Registered: 05/05/2006
Posts: 115
|
thanks.
|
|
|
|
| |
|
Content generated in: 0.11 seconds |
|