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

Home » Public Forums » archive » Re: Creating a sub array from an 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: Creating a sub array from an array [message #71268] Thu, 10 June 2010 10:28 Go to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
On 10 Jun., 16:27, Fster <francis.colle...@live.co.uk> wrote:
> I have an array in this format
>
> OLR             FLOAT     = Array[720, 144, 144]
> where 720 = t
> 144 = x and y
>
> I need to create an array for particular extracted values of this
> array where say x has values from 1 to 5 and y has values from 1 to 5.
>
> I'm just not sure on how to perform this, a do loop perhaps? sorry I
> am a complete beginner!

Is this what you're looking for:

subset=olr[*,1:5,1:5]

regards,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Problem with creating executable files for scripts using envi functions
Next Topic: Object within an Object's Structure

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

Current Time: Fri Oct 10 04:41:22 PDT 2025

Total time taken to generate the page: 0.24179 seconds