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

Home » Public Forums » archive » Combing structures
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: Combing structures [message #72191 is a reply to message #71194] Mon, 16 August 2010 12:55 Go to previous messageGo to previous message
Michael Williams is currently offline  Michael Williams
Messages: 17
Registered: December 2008
Junior Member
On 2010-08-16 21:50:40 +0200, Paulo Penteado said:

> function append_struct, tx, ty
> tags = tag_names(tx)
> tmp=create_struct(tags[0],[tx.(0),ty.(0)])
> for i = 1, n_elements(tags) - 1 do tmp=create_struct(tmp,tags[i],
> [tx.(i),ty.(i)])
> return, tmp
> end

Thanks Paolo, that's certainly an improvement. I didn't know about the
tx.(0) syntax (hence the executes).

-- Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Smoothing Spline -- any existing efficient routines?
Next Topic: Re: getting GeoTiff Information

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

Current Time: Sun Oct 12 01:25:37 PDT 2025

Total time taken to generate the page: 0.80246 seconds