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

Home » Public Forums » archive » array handling
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: array handling [message #74189 is a reply to message #52128] Mon, 03 January 2011 10:08 Go to previous messageGo to previous message
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
On Jan 3, 3:04 pm, sirvival <fpfei...@hs.uni-hamburg.de> wrote:
> On 3 Jan., 13:54, bing999 <thibaultga...@gmail.com> wrote:
>
>> Hi,
>
>> In an array, I would like to select only one element over 2 to make a
>> new array. Is there an IDL routine to do it?
>
>> Thanks !
>
> Hi,
> do you mean that you want only values greater than two?
> If so you can use the where command.
>
> pos = where( array gt 2)
> newarry = array[pos]

Thanks for answering. But what I want is to divide the number of
elements of my array by 2 by keeping only elements with odd index for
instance. Is there an IDL routine which does it?
cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: stl files
Next Topic: IDL output directed to STDERR-- can't seem to work around...

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

Current Time: Sun Oct 12 02:29:08 PDT 2025

Total time taken to generate the page: 1.43989 seconds