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

Home » Public Forums » archive » Re: HDF object/tag retrieval
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: HDF object/tag retrieval [message #55871 is a reply to message #55869] Tue, 18 September 2007 07:12 Go to previous messageGo to previous message
leatherback is currently offline  leatherback
Messages: 15
Registered: November 2005
Junior Member
Hi David,

Yes. I am sure. The function returns a variable of type string:

for i=0,nglobatts-1 do begin
    HDF_SD_ATTRINFO,sd_id,i,name=n,type=t,count=c,data=d
    if (t eq 'STRING' ) then print,strtrim(n),t,c,d[0,0],FORMAT=FS
else $
    if (t eq 'FLOAT' )  then print,strtrim(n),t,c,d[0,0],FORMAT=FF
else $
    if (t eq 'DOUBLE' ) then print,strtrim(n),t,c,d[0,0],FORMAT=FD
else $
    print,strtrim(n),t,c,d[0,0],FORMAT=FI
endfor

ENVI> help, d
D STRING = '
GROUP = ARCHIVEDMETADATA
GROUPTYPE = MASTERGROUP

The actual string returned is roughly 11000 chars long, which
indicates it holds all the individual tags. When printed, the string
is structures in an XML kind-a structure (Nested meta data format).

Any suggestions?

Cheers,

Jelle.


On 18 Sep, 14:17, David Fanning <n...@dfanning.com> wrote:
> Are you sure of that? Do you think that because you
> tried to print the results? As far as I know, this
> function returns a structure. Did you try accessing
> the fields of this structure?
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: HDF attribute retrieval
Next Topic: Re: Scaling multiple plots

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

Current Time: Fri Oct 10 13:26:27 PDT 2025

Total time taken to generate the page: 1.36025 seconds