comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Findind NANs in unformatted image data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Findind NANs in unformatted image data [message #83639 is a reply to message #83628] Fri, 15 March 2013 05:05 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Friday, March 15, 2013 2:36:00 AM UTC-4, steph wrote:
> Hi, I'm trying to open unformatted floating point images, add them together, and save the sum as a unformatted floating point image (see below). I can open the images, display with TVscl and print out a bit of image info (including the correct pixel values). I get an error 'Program caused arithmetic error: Floating illegal operand'. I understand this may have something to do with NANs in the images but I can't find any. I've also tried opening just one of the images and saving it using writeu. The result is an image with a few really low values and nothing resembling what I expect. ANY suggestions are very much appreciated!

You can use the FINITE() function to search for NAN values (or infinite values).

Example,
help, where(finite(image_data) EQ 0)

CM
[Message index]
 
Read Message
Read Message
Previous Topic: Re: qualifying object classes on the fly
Next Topic: cgPlotS and cgColorBar issues

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:25:51 PDT 2025

Total time taken to generate the page: 0.00362 seconds