There may be an easier way, but this is how you will do it, as far as I know:
import numpy as np import tables
If you want to specify the compression used, take a look at tables.Filters . tables.Filters . for example
import numpy as np import tables
There is probably an easier way for many of them ... I have not used pytables for anything other than tabular data for a long time.
Note: in pytables 3.0 f.createCArray been renamed f.create_carray . It can also take an array directly, without specifying atom ,
f.create_carray('/', 'somename', obj=x, filters=filters)
Joe Kington Jan 12 '12 at 22:45 2012-01-12 22:45
source share