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

Home » Public Forums » archive » Re: Matching Structure Tag Lengths
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: Matching Structure Tag Lengths [message #31400 is a reply to message #31226] Mon, 08 July 2002 11:43 Go to previous messageGo to previous message
doyle is currently offline  doyle
Messages: 6
Registered: April 2002
Junior Member
> My suggestion.
>
> P has less tags and this tags are all given in S.
>
> result=struct2ptr_struct(P)
> tn=tag_names(p)
> pos=tag_position(S,tn)
> n=n_elements(tn)
> FOR I=0,n-1 do $
> *result.(I)=interp1(P.(i),S.(pos[i]))
> ; I don't know this routine interp1
>
> result=ptr_struct2struct(result,/free)


Thanks for the reply. I'm not sure that I communicated my problem
quite right so I think your solution is for a slightly different
problem. I want the number of tags in the arrays to stay the same, it
is the length of the tags that I want to change. Perhaps I just don't
understand your code though. It's very possible.

Nate Doyle
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Error messages
Next Topic: importing ascii files

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

Current Time: Sun Oct 12 04:31:25 PDT 2025

Total time taken to generate the page: 1.67739 seconds