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

Home » Public Forums » archive » Re: IDL 8.2.2 and PLOT with NaN values
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: IDL 8.2.2 and PLOT with NaN values [message #83725 is a reply to message #83724] Tue, 26 March 2013 09:44 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
The error comes because your are putting a NaN float in an integer
array. Try:

p = PLOT([1.,2,3,4,!VALUES.F_NAN,6,7,8,9])

cheers,

Fab


On 03/26/2013 04:59 PM, Karlo Janos wrote:
> Hi group,
>
> can somebody confirm, that the PLOT function in IDL 8.2.2 produces the
> "arithmetic error: Floating illegal operand" when plotting a vector
> which contains NaN values?
>
> Example:
> p = PLOT([1,2,3,4,!VALUES.F_NAN,6,7,8,9])
>
> If I remember correctly, the former versions of IDL just skipped the
> NaNs without any error message.
>
> I am frustrated...
>
> Thanks
>
> Karlo
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A Healthy Alternative to Takeaway Regret
Next Topic: cursor command

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

Current Time: Wed Oct 08 19:35:29 PDT 2025

Total time taken to generate the page: 0.00406 seconds