Welcome to iraf.net Friday, May 17 2024 @ 12:11 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 imarith issues
   
Jason Quinn
 10/22/2012 09:26PM (Read 3030 times)  
+++++
Active Member

Status: offline


Registered: 04/07/2006
Posts: 175
I am trying to merely subtract a bias from a long list of image (about 450) and I'm getting strange errors.I've been able to reproduce them using dev$pix.Create a bunch of test files (for example 510) using[code:1:3da5c4ab87]!seq -f 'imcopy dev$pix test%02g.fits' 1 510 > script.cl
cl < script.cl
!seq -f 'test%02g.fits' 1 510 > tlist
!seq -f 'out%02g.fits' 1 510 > olist
imcopy dev$pix bias.fits
imarith @tlist - bias.fits @olist[/code:1:3da5c4ab87]The last imarith command results (for me) in[code:1:3da5c4ab87]ERROR: Wrong number of elements in the operand lists[/code:1:3da5c4ab87]A shorter lists appear to run correctly. For these images, the 87 images or more (at least for my machine) produces the "wrong number of elements" error message.But some numbers of images less than 87 (for example 86) give a different error message:[code:1:3da5c4ab87]!seq -f 'imcopy dev$pix test%02g.fits' 1 86 > script.cl
cl < script.cl
!seq -f 'test%02g.fits' 1 86 > tlist
!seq -f 'out%02g.fits' 1 86 > olist
imcopy dev$pix bias.fits
imarith @tlist - bias.fits @olist[/code:1:3da5c4ab87]results in[code:1:3da5c4ab87]tes is not an image or a number[/code:1:3da5c4ab87]The "tes" part is a truncated part of the file names.The exactly boundaries where this happens (like 86 or 256 for the original files where I noticed it) changes depending on the size of the images involved, so this might be some sort of out of memory error although my machine has 3GB of memory and should certainly be able to load 85'ish half-meg files based on dev$pix even if a few temporary files are involved for each. If this is being causes by out-of-memory conditions, the errors reported are unintuitive and I would think the design of imarith would makes it memory efficient so that all the images don't have to be loaded simultaneously.Can't figure this one out.Cheers,
Jason

 
Profile Email
 Quote
fitz
 10/22/2012 09:26PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
This may be a know issue with the new image template code that should be fixed in the latest update. You can do[code:1:0526f2133b]
% cd /iraf/iraf
% make latest
[/code:1:0526f2133b]to install the update. Otherwise, try using [code:1:0526f2133b]cl> reset use_new_imt = no[/code:1:0526f2133b]to disable the new code and use the original template lists. If you still have problems let me know.

 
Profile Email
 Quote
Jason Quinn
 10/22/2012 09:26PM  
+++++
Active Member

Status: offline


Registered: 04/07/2006
Posts: 175
The "make latest" appears to have solved the issue. I had also reverted to 2.14.1 and the problem didn't exist yet as you also hinted.Thanks for the super fast reply.Jason

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