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 #74191 is a reply to message #52128] Mon, 03 January 2011 06:04 Go to previous messageGo to previous message
sirvival is currently offline  sirvival
Messages: 18
Registered: August 2010
Junior Member
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]
[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: Sat Oct 11 08:13:46 PDT 2025

Total time taken to generate the page: 0.48047 seconds