number input and output images not the same
douglas brenner wrote on Apr 18, 2007
I know I've used tasks with images specified by wildcards but it seems that some routines will only do one image at a time.
blkavg *.fits new/*.fits 3 3 doesn't work. Is there a simple fix that I don't know about?
Thanks
blkavg *.fits new/*.fits 3 3 doesn't work. Is there a simple fix that I don't know about?
Thanks
Mike Fitzpatrick wrote on Apr 18, 2007
While it's true not all tasks take lists, BLKAVG certainly does. If the intent of your command is to prepend 'new' to the image name then the problem is simply that you need to use the '//' concatenation operator rather than the '/' directory delimiter. If you want to put the images in the 'new' subdirectory, then you need to use the '%' operator to do a substitution in the filename, e.g.
Hope this helps. See the FILES help page for more info on substitution.
Cheers,
-Mike
cl> blkavg *.fits %%new/%*.fits 3 3Hope this helps. See the FILES help page for more info on substitution.
Cheers,
-Mike
douglas brenner wrote on Apr 18, 2007
thanks
Last post on Apr 18, 2007