help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to read HDF data ?


From: Stewart Dickson
Subject: Re: How to read HDF data ?
Date: Thu, 10 Feb 2011 11:52:08 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

At: 

http://octave.1599824.n4.nabble.com/read-data-subsets-from-HDF5-td2713674.html

Octave's native HDF-5 reader  (load -hdf5) loads the entire HDF-5 file into memory as an Octave Struct.

Yes, it will load non-Octave-written HDF-5 files.
HDF-5 variable names appear as members with the same names of the HDF-5 Struct in Octave.
Limitations -- Octave chokes on struct member names containing spaces.   HDF files will have variable
names containing spaces.

How do you access struct member:
HDFEOS.SWATHS.MOD_Swath_Snow.'Data Fields' in Octave?

I think that it would be possible to do useful things in Octave with HDF files, however, as HDF file ATTRIBUTES
are ignored by Octave's native HDF-5 reader, you have to use an auxiliary tool, like h5dump (an HDF file dumper)
to discover the data field's names, dimensions, etc.

Since Meterological files are all geo-referenced, you would also like to overlay maps on the data.  In MATLAB,
you use AxesM to do this.  There is an open-source alternative:  M_Map http://www.eos.ubc.ca/~rich/map.html
Does it work in Octave?

-Stewart

On 2/10/2011 11:06 AM, fork wrote:
Noersomadi <adi_pemalang <at> yahoo.com> writes:

How to read HDF data using octave 3.2.4 ?
I don't use HDF, so this is short on details, but you probably need to install
the octcdf package and figure out how to use that:

http://octave.sourceforge.net/octcdf/index.html

Hopefully somebody with experience can answer any more questions you might have.

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]