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

Home » Public Forums » archive » Add a new tag for anonymous structure array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Add a new tag for anonymous structure array [message #58864] Thu, 21 February 2008 16:20
geonline714 is currently offline  geonline714
Messages: 7
Registered: April 2007
Junior Member
I have an anonymous structure array, say, A.Let us assume the size of
the array is 100. Each structure has tags A, B,C. I want to add a new
tag, D. How to do that in IDL?
I tried:
myStruct = create_struct(A, 'D',0), but it failed.

It seems that the above syntax works only for an individual structure
instead of structure array.
For example,

myStruct = create_struct(A[0],'D',0) and it works.

This is an issue that can be easily solved in matlab. I am not sure
whether IDL provides straightforward method to do that.

Sincerely,
Qi
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Generate lat/lon coords from already projected data
Next Topic: Re: Add a new tag for anonymous structure array

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

Current Time: Wed Oct 08 19:53:40 PDT 2025

Total time taken to generate the page: 0.00580 seconds