X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 26 Mar 2012 08:57 AM by  anon
Image not in range
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
26 Mar 2012 08:57 AM
    Hello, I'm sub-setting a large amount of images to a .evf file. The code works but if the image is not within the .evf boundary then I get an message that say's: Array dimensions must be greater than zero. The message makes sense but it stops the code and I have to manually bypass the images that's not in the .evf boundary. Is there a IDL code that allows me to bypass the images without manually taking out the images in the code? Thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    26 Mar 2012 09:20 AM
    You may be able to use an IF statement and the SIZE function to avoid this error. For example: if ( SIZE(array_var, /N_DIMENSIONS) eq 2 ) then begin ; Run code that caused error here endif
    You are not authorized to post a reply.