On Tue, 1 Feb 2011, Tim Jenness wrote:
> On Feb 1, 2011, at 9:07 AM, H. Tugca Sener Satir wrote:
>
>> Hi all,
>>
>> I'm trying to use bclean command on more than one file at a time. For
>> this, I tried to give *.sdf as input and *_bclean.sdf as output but it
>> didn't work. I also tried to use a file containing the names of the
>> images but it didn't work either. Now I'm trying to write a script for
>> this, but it seems a bit complicated for me. I hope there is someone
>> who has done this before.
>>
>> I would be very happy if you could help me.
>
> Figaro does not understand multiple input files as it is a very old
> application that has never been updated to use the modern access
> library. Apps like KAPPA, CCDPACK and SMURF can use wildcards and file
> lists.
>
> I'm afraid you are going to have to use a shell foreach loop to send
> multiple files to bclean.
If you are new to shell scripts then have a look at SC/4:
% showme sc4
that has examples of looping over NDFs. In fact one example is:
#!/bin/csh
figaro # Only need be invoked once per process
foreach file ($*)
if (-e $file) then
splot $file:r accept
endif
end
That page will be displayed by the command:
% showme sc4 sc4_se_wildcard_lists
|