Hi,

Just for clarification: when you say simultaneously you mean 'all
three tables concatenated in the order given in the list' or 'one
curve per table, all three in the same plot'?

I am going to assume the former.

From the point of view of organizing your data, you do really have the
option of concatenating them on-disk because queries and slicing off
disk are so fast (you can store indexes to relevant slices on another
table --my preferred solution--, or dedicate a column to indicate
whether a sample belongs in 1, 2, or 3). This is assuming that the
file boundary can be smashed, which it probably can't from the way you
formulate your question.

Be ware that if you have long time series to plot (i.e. what is your
sampling rate?)  the bottleneck may be in matplotlib, which may be too
small for the rendering. In that case what you probably want is to
couple the panning events to lazy loading of preceding/succeeding data
chunks (I would also be interested in this, btw, if anybody has a
recipe).

My 2c,

-á.


On Wed, May 2, 2012 at 2:25 AM, lef...@cnr.colostate.edu
<lef...@gmail.com> wrote:
> I am just starting to work with python and pytables and have a question for
> the group.
>
> We have multiple HDF5 files, each of which contains 30 seconds of data from
> a longer sequence. Rather than merge the data, we'd like to be able to
> create a list (or array) of pytables objects and operate on
> them simultaneously. For instance we have three h5 data files, each of which
> can be opened with the openFile command.
>
> data_1=tables.openFile(fname_1)
> plt.plot(data_1.root.photon.channel001.elev[:])
>
> If we define the following list:
>
> all_data=[data_1, data_2, data_3]
>
> the we can do the following :
>
> plt.plot(all_data[0].root.photon.channel001.elev[:])
>
> What we'd like to do is plot the data from all three (or more generally, N)
> hdf5 files simultaneously:
>
> plt.plot(all_data[0].root.photon.channel001.elev[:])
>
> but this doesn't work. Is there a syntax that will work for this ?
>
> M
> --
> Michael Lefsky
> Center for Ecological Applications of Lidar
> College of Natural Resources
> Colorado State University
> http://www.researcherid.com/rid/A-7224-2009
>
> If I were creating the world I wouldn't mess about with butterflies and
> daffodils. I would have started with lasers, eight o'clock, Day One! - Time
> Bandits
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to