imarith operand error
Duncan Blackman wrote on May 28, 2010
I am trying to run a simple imarith, which I have done before but can't seem to figure out why this time I am getting an error:
I have tried searching for this error but without any success - and seeing as I ran it a few days ago I'm not sure what changed. I do know that the iobj.list has 30 items correctly named and from the same folder as the list. Is there an error in he code that I can't see?
I also thought I would try it without the folder move like:
Thanks again,
Duncan
ecl> imarith @iobj.list / normiflat.fits /media/600d2743-de8e-42be-bdab-e91207dfd30b/astronomy/DAO/Feb/work/step/step/iobj
ERROR: Wrong number of elements in the operand listsI have tried searching for this error but without any success - and seeing as I ran it a few days ago I'm not sure what changed. I do know that the iobj.list has 30 items correctly named and from the same folder as the list. Is there an error in he code that I can't see?
I also thought I would try it without the folder move like:
ecl> imarith @iobj.list / normiflat.fits iobj
ERROR: Wrong number of elements in the operand listsThanks again,
Duncan
Mike Fitzpatrick wrote on May 28, 2010
The problem is you're specifying an @file of 30 input images, but only one output filename. The task wants the same number of output filenames as input, so you'll need to create another @file or use the same 'iobj.list' if you want to overwrite the input image.
Duncan Blackman wrote on May 28, 2010
Right, that makes sense. Out of interest if I had the iobj.list file in the new folder would i have to have the connected files in the new folder as well or would I be able to have the list be divided by the files and add the new file to the new folder or should copy all the files and the lists over to the new folder for editing?
Duncan
Duncan
Mike Fitzpatrick wrote on May 28, 2010
An @file (for either input or output) can contain just the file names (in which case they are assumed to be in the current directory) or full directory paths to the files. In the latter case, you can have a single input @file get data from multiple directories, likewise the corresponding output @file can put the results in multiple places.
Last post on May 28, 2010