I had had some success reading hdf5 files generated from MSC/Nastran using both h5py and tables. Now I’m trying to do the same with a file generated by Simcenter/Nastran and I’m having trouble because the data block includes a colon in the names.
This Syntax works using h5py:
hf=h5py.File(‘solidbeam-3prtfem-sol101.hdf','r')
myElm=hf['model']['geom2:elem_data']['geom2_chexa']
Typically I would try the following for tables:
hft=tables.open_file(‘solidbeam-3prtfem-sol101.hdf','r')
myElmTable=hft/model/geom2:elem_data/geom2_chexa
The : character in geom2:elem does not work.
The following syntax does work and prints item names as follows:
for obj in hft:
print obj
/model/geom2:elem_data/geom2_chexa (Table(40,)) ‘’
Do you have any advice on how this data-block should be referenced in tables?
Any help will be greatly appreciated.