A Tuesday 06 January 2009, Timmie escrigué:
> Hello,
> is it possible to add data to an existing hd5-file with pytables?
> I tried it and my original data got finally overwritten.
>
> Is there a minimal example for this?

Well, you should use the .append() method of appendable objects (EArray, 
VLArray and Table) in order to do what you want.  What exactly are you 
trying now?

> What python tools are recommended to convert hdf5 tables to
> ascii/csv?

In general, it is best to retrieve NumPy objects out of PyTables ones, 
and then use the NumPy/Python output capabilities to generate the 
desired ascii/csv files.  If in doubt, ask the NumPy list for how to do 
this efficiently (I've read that they are working on improved methods 
for output arrays in different ascii formats).

Also, if the hdf5 tables are too large to be kept in memory, then you 
may want use the table iterators provided by PyTables.  See:

http://www.pytables.org/docs/manual/ch04.html#TableMethods_reading

for more info on the different read methods/iterators available.

Hope that helps,

-- 
Francesc Alted

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to