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

Home » Public Forums » archive » Re: help automating 'read in process' and general automating help
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: help automating 'read in process' and general automating help [message #62088] Mon, 25 August 2008 04:03 Go to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Aug 25, 11:40 am, Spon <christoph.b...@gmail.com> wrote:
> On Aug 25, 4:46 am, mbwel...@gmail.com wrote:
>
>
>
>
>
>> Thanks for the response, I have another question though.
>
>> For the
>
>> IDL> help,table,/structure
>> ** Structure <1229360>, 3 tags, length=300, data length=300, refs=1:
>>    FIELD1          INT       Array[*]
>>    FIELD2          FLOAT     Array[*]
>>    FIELD3          FLOAT     Array[*]
>> IDL> a6=fltarr(3,*)
>
>> How might I set it up so that the * in the array automaticaly becomes
>> placed in the fltarr? i.e. if: array[30] then automatically place 30
>> into fltarr such that fltarr(3,30).
>>  The table structure is throwing me off.
>
>> Thanks,
>> Matt
>
> a6 = Transpose( [ [Table.Field1], [Table.Field2], [Table.Field3] ] )
>
> Search for the array concatenation tutorial onhttp://www.dfanning.com
>
> Regards,
> Chris- Hide quoted text -
>
> - Show quoted text -

I guess the actual answer to your question is that you should be able
to get array sizes out of the structure like this:
NCols = N_Elements(Table.Field1)

My solution just skips that bit and joins up the structure fields into
one array, automatically converting the int column to floats in the
process.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Where is my function called
Next Topic: Re: animation_image_doc.pro

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

Current Time: Wed Oct 08 17:04:28 PDT 2025

Total time taken to generate the page: 0.00351 seconds