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

Home » Public Forums » archive » Re: newbie: multiple subarrays in array
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: newbie: multiple subarrays in array [message #31556 is a reply to message #31555] Mon, 15 July 2002 11:54 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ken Mankoff (mankoff@I.HATE.SPAM.cs.colorado.edu) writes:

> You can access the sub-array like this:
>
> good = where( data NE -9999 )
> data = data[ good ]

Ken is absolutely right, but because you are a newbie,
I feel an obligation to get you started in the right
direction. I would write the code like this:

good = where( data NE -9999, count )
IF count GT 0 THEN data = data[ good ]

That will save you a couple of headaches down the road. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: newbie: multiple subarrays in array
Next Topic: ctd synchronizing script

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

Current Time: Wed Oct 08 19:04:07 PDT 2025

Total time taken to generate the page: 0.00178 seconds