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

Home » Public Forums » archive » Re: UNIQ and structure arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: UNIQ and structure arrays [message #36645] Thu, 09 October 2003 15:18
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Reimar Bauer <R.Bauer@fz-juelich.de> writes:
> Aleksandar Jelenak wrote:
[ ... ]
>> I am looking for methods/procedures of applying a UNIQ-like function to
>> a structure array, i.e. the entire structure record is compared for
>> uniqueness.
[ ... ]
> please can you provide a small example. At the moment I don't know why uniq
> should not work

Reimar, since structures can't be compared by using the EQ operator,
there is no way to use UNIQ on them.

To the original poster, it looks like you will have to make your own
version of UNIQ, which compares the individual fields of the
structure. It's not hard, since the logic of UNIQ is fairly simple.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: UNIQ and structure arrays [message #36650 is a reply to message #36645] Thu, 09 October 2003 13:52 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Aleksandar Jelenak wrote:

> Hello!
>
> I am looking for methods/procedures of applying a UNIQ-like function to
> a structure array, i.e. the entire structure record is compared for
> uniqueness.
>
> Thanks,
>
> Aleksandar

Dear Aleksandar

please can you provide a small example. At the moment I don't know why uniq
should not work

Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: inconsistence in 5.4 -> 6.0
Next Topic: netCDf problem in IDl 6.0

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

Current Time: Wed Oct 08 17:06:27 PDT 2025

Total time taken to generate the page: 0.00486 seconds