Ask Your Question

How to output numerical array (matrix) out as hdf5 format?

asked 2013-10-08 19:26:33 -0500

chenming gravatar image

I wish to use some other tools to further processing the data generated by sage. the output format should be in hdf5 format. However, it seems very hard to install h5py because it depends on HDF5.

so when i run

./sage --python build

to install h5py, it say

sh5py/api_compat.h:21:18: fatal error: hdf5.h: No such file or directory

so how do you handle hdf5 format in sage, or do you have anyideas to get around this problem (the dataset may be huge so output into txt file may not be practical.)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-10-09 00:26:02 -0500

chenming gravatar image

I think this is a problem to the linux system i use (Scientifc linux)

Once I tried to compile h5py in another genoo pc, it works great

edit flag offensive delete link more

answered 2013-10-09 00:48:42 -0500

tmonteil gravatar image

You can try with Sage SPKG still in development:

sage -i
edit flag offensive delete link more


I tried to install that in my scientific linux but still the same error occurs. It may caused by low version of gcc, not the problem of sage.

chenming gravatar imagechenming ( 2013-10-09 13:35:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-10-08 19:26:33 -0500

Seen: 144 times

Last updated: Oct 09 '13