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

Home » Public Forums » archive » Re: Name of arrays
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: Name of arrays [message #79259 is a reply to message #79257] Mon, 20 February 2012 03:01 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
Hi

On 02/20/2012 10:46 AM, Israel Rodriguez Hermelo wrote:
> The problem is that I don't know a priori the number of
> arrays that I will need nor their size.

If you have IDL 8.* you could use lists. Or you could use pointer arrays:

months = ['FEBRUARY' , 'JULY' , 'SEPTEMBER']
data = PTRARR(N_ELEMENTS(months))
data[0] = PTR_NEW(INDGEN(28))
temp_feb = *data[(where(months eq 'FEBRUARY'))[0]]
IDL> help, temp_feb
TEMP_FEB INT = Array[28]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tracking clusters through multiple timesteps
Next Topic: Issue with console of workbench 8.0

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

Current Time: Wed Oct 08 17:51:01 PDT 2025

Total time taken to generate the page: 0.00401 seconds