Re: HDF_Browser Woes [message #53793] |
Thu, 03 May 2007 10:21  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Richard Edgar writes:
> Knowing what's supposed to be in the file would be a good start :-)
Indeed, but if the folks coming to me knew that, they
wouldn't be coming to me, would they? :-)
Their problem (and, by extension, mine) is that they
don't know jack. We are both trying desperately to
find out. But the tools, uh, seem to be fighting us. :-)
Cheers,
David
P.S. I am making some progress on this problem. I downloaded
HDFView this morning, and by looking at a combination of
that and HDF_BROWSER and some of Liam's excellent programs,
I am beginning to piece things together. But progress is
glacial, I'm afraid... (Humm. Not as good a metaphor as
it used to be, according to my recent reading.)
--
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.")
|
|
|
|
|
Re: HDF_Browser Woes [message #53800 is a reply to message #53798] |
Thu, 03 May 2007 09:21   |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
David Fanning wrote:
> Folks,
>
> Does anyone have the foggiest idea of how HDF_BROWSER works?
> I'm trying to figure out what is in an unknown HDF file.
> When I select the READ button, something is returned,
> but I can make no sense of it whatsoever. Help (or suggestions
> for using something OTHER than HDF_BROWER) is appreciated.
I can tell you how (little) I used hdf_read(). I believe hdf_browser()
can produce a template to subsequently open several files of the same
type / structure with hdf_read() without going through what I describe
below each time.
I open hdf_read() and pick a file. The text field on the upper left
tells you what's in the file (attributes, datasets etc.), which you can
select by doubleclicking. You can also use the dropdown list to show
only a selection. If you select an attribute, dataset or whatever, you
can preview it in the window on the upper right. The preview is kind of
limited, however. For example, byte/char arrays representing strings are
plotted (funny, isn't it?) in one netCDF file I am testing right now
(yes, it also supports netCDF).
In the lower half of the window, once you have selected an attribute /
dataset / whatever, you can choose to extract (read) it and give a name.
Once you click OK, the return value of hdf_read() is a structure with
the fields containing the stuff you have extracted (read). For example,
if you do
data=hdf_read(file)
and then extract attribute 1 as 'a' and dataset 2 as 'b', in the end
you'll have a structure 'data' with fields 'a' and 'b'.
Hope that helps,
Benjamin
|
|
|
|
Re: HDF_Browser Woes [message #53889 is a reply to message #53793] |
Thu, 03 May 2007 10:58  |
Richard Edgar
Messages: 8 Registered: February 2006
|
Junior Member |
|
|
David Fanning wrote:
> Richard Edgar writes:
>
>> Knowing what's supposed to be in the file would be a good start :-)
>
> Indeed, but if the folks coming to me knew that, they
> wouldn't be coming to me, would they? :-)
>
> Their problem (and, by extension, mine) is that they
> don't know jack. We are both trying desperately to
> find out. But the tools, uh, seem to be fighting us. :-)
Sorry... my head is spinning..... they don't have a clue what's supposed
to be in the file (in any way, shape or form), yet they know that they
need to read it????
Richard
|
|
|