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 #55869 is a reply to message #55868] Tue, 18 September 2007 07:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
leatherback writes:

> Yes. I am sure. The function returns a variable of type string:
>
>
[/color]
[color=blue]>  for i=0,nglobatts-1 do begin[/color]
[color=blue]>      HDF_SD_ATTRINFO,sd_id,i,name=n,type=t,count=c,data=d[/color]
[color=blue]>      if (t eq 'STRING' ) then print,strtrim(n),t,c,d[0,0],FORMAT=FS[/color]
[color=blue]>  else $[/color]
[color=blue]>      if (t eq 'FLOAT' )  then print,strtrim(n),t,c,d[0,0],FORMAT=FF[/color]
[color=blue]>  else $[/color]
[color=blue]>      if (t eq 'DOUBLE' ) then print,strtrim(n),t,c,d[0,0],FORMAT=FD[/color]
[color=blue]>  else $[/color]
[color=blue]>      print,strtrim(n),t,c,d[0,0],FORMAT=FI[/color]
[color=blue]>  endfor[/color]
[color=blue]>  
[/color]
>
> 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?

Ah, well, I guess I would switch to Liam's HDF_SD_ATTRINFO
function. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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 17:25:45 PDT 2025

Total time taken to generate the page: 0.64153 seconds