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

Home » Public Forums » archive » Re: VALUE_LOCATE and NaNs
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: VALUE_LOCATE and NaNs [message #81821 is a reply to message #81820] Thu, 25 October 2012 06:41 Go to previous messageGo to previous message
Kai Muehlbauer is currently offline  Kai Muehlbauer
Messages: 13
Registered: February 2011
Junior Member
Am 25.10.2012 13:10, schrieb alx:
> Le jeudi 25 octobre 2012 11:57:31 UTC+2, Fab a �crit :
>> On 10/25/2012 11:34 AM, alx wrote:
>>
>>> Please note that:
>>
>>> IDL> p = VALUE_LOCATE(LINDGEN(10), data) & print, p[0]
>>
>>> -1
>>
>>> gives the correct result.
>>
>>>
>>
>>> alx.
>>
>>
>>
>> Well this is even more confusing. But in my case it doesn't:
>>
>>
>>
>> IDL> data = FINDGEN(10) & data[0] = !VALUES.F_NAN
>>
>> IDL> p = VALUE_LOCATE(LINDGEN(10), data) & print, p[0]
>>
>> -1
>>
>> % Program caused arithmetic error: Floating illegal operand
>>
>> IDL> print, !VERSION
>>
>> { x86_64 linux unix linux 7.1.1 Aug 21 2009 64 64}
>
> Well, I checked with
> { x86_64 Win32 Windows Microsoft Windows 8.2.1 Aug 20 2012 64 64}
> alx.
>

I can confirm:

IDL> print, !VERSION
{ x86_64 linux unix linux 7.1.1 Aug 21 2009 64 64}

IDL> data = FINDGEN(10) & data[0] = !VALUES.F_NAN
IDL> p = VALUE_LOCATE(LINDGEN(10), data) & print, p[0]
-1
% Program caused arithmetic error: Floating illegal operand
IDL>

Cheers,
Kai
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: random numbers with gamma distribution
Next Topic: new graphics legend function: problems with symbol fill color

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

Current Time: Fri Oct 10 16:00:56 PDT 2025

Total time taken to generate the page: 0.71836 seconds