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

Home » Public Forums » archive » Re: compare 2-d array with vector
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: compare 2-d array with vector [message #82604 is a reply to message #82529] Mon, 07 January 2013 02:59 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 12/17/2012 08:25 PM, Chris Torrence wrote:
> This is now fixed and will be in IDL 8.8.2. You can now pass a 1-element array or a scalar into value_locate.
>
> -Chris
> ExelisVIS

Hi Chris,

While you are looking at VALUE_LOCATE, could you also look into this?

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

This was discussed in this thread:
https://groups.google.com/forum/?hl=fr&fromgroups=#!sear chin/comp.lang.idl-pvwave/fab/comp.lang.idl-pvwave/DBbUmnAaB Mc/kYdniU_d3koJ

Thanks!

Fab
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: copying pointers in structures
Next Topic: interpolation of two different model

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

Current Time: Fri Oct 10 20:48:08 PDT 2025

Total time taken to generate the page: 0.74938 seconds