help-octave
[Top][All Lists]
Advanced

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

Re: read data subsets from HDF5


From: Francesco Potortì
Subject: Re: read data subsets from HDF5
Date: Wed, 29 Sep 2010 10:49:09 +0200

>> >>>octave:10> fieldnames(mag.lines._10.SECOND)
>> >>>ans =
>> >>>
>> >>>{
>> >>>
>> >>> [1,1] = _0
>> >>> [2,1] = C
>> >>>
>> >>>}
>> >>>octave:12> mag.lines._10.SECOND.C(1,1)
>> >>>ans = 62327
>> >>>
>> >>>Sorry for this long list: There are many mag lines which contain data c 
>> >>>hannels consisting of columns (double), SECOND for time. (1-column-data
>> >>>sets) How can I read _selected_ channels like SECOND of line "10" into
>> >>>an array  in octave? Not the whole structure?
>> >>
>> >>mag.lines._10.SECOND.C is an array, if I am not wrong. Is that what you
>> >>want?
>> >
>> >Correct. C is just an alternative link for the time data set, besides a
>> >version number.
>> >Besides "10" are a number of other lines which I don't want to read.
>> >Besides "SECOND" are a few more channels which I would like to see like
>> >"height" etc.
>> 
>> So you have an answer to your original question?
>
>Unfortunately not yet and I gave up for the moment. Perhaps I will write some 
>program to write to stdout and pipe it directly into gnuplot from hdf5.

If you want to plot data in that array, all you need is 

 plot (mag.lines._10.SECOND.C)

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/


reply via email to

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