Ask Your Question
0

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

asked 2013-10-09 02:26:33 +0100

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 setup.py 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
0

answered 2013-10-09 07:48:42 +0100

tmonteil gravatar image

You can try with Sage SPKG still in development:

sage -i https://github.com/downloads/aginiewicz/spkgs/hdf5-1.8.9.spkg
edit flag offensive delete link more

Comments

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 20:35:40 +0100 )edit
0

answered 2013-10-09 07:26:02 +0100

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

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-10-09 02:26:33 +0100

Seen: 433 times

Last updated: Oct 09 '13