Sorry, this content is no longer available

Ask Your Question
0

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

asked 11 years ago

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.)

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 11 years ago

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
Preview: (hide)
link

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 ( 11 years ago )
0

answered 11 years ago

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

Preview: (hide)
link

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: 11 years ago

Seen: 458 times

Last updated: Oct 09 '13