[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compile load-hdf.cc function
From: |
Krikouille |
Subject: |
Compile load-hdf.cc function |
Date: |
Fri, 3 Jan 2014 10:01:39 -0800 (PST) |
Hi there,
I am running Octave version 3.6.4 with Debian (Debian 3.10.11-1 (2013-09-10)
x86_64 GNU/Linux). Now, I am trying to run a Matlab script where HDF
meteorological files are used. I am aware of Octave function ( 'load -hdf5'
<http://octave.1599824.n4.nabble.com/How-to-read-HDF-data-td3298990.html> )
that should read such files, however, it does not work properly in my case.
I get the following errors (I attached the file 05.02.hdf to this mail:
05.02.hdf <http://octave.1599824.n4.nabble.com/file/n4660623/05.02.hdf> ):
octave> load -hdf5 05.02.hdf
HDF5-DIAG: Error detected in HDF5 (1.8.11) thread 140322393601984:
#000: ../../../src/H5F.c line 1586 in H5Fopen(): unable to open file
major: File accessibilty
minor: Unable to open file
#001: ../../../src/H5F.c line 1377 in H5F_open(): unable to read
superblock
major: File accessibilty
minor: Read failed
#002: ../../../src/H5Fsuper.c line 334 in H5F_super_read(): unable to find
file signature
major: File accessibilty
minor: Not an HDF5 file
#003: ../../../src/H5Fsuper.c line 155 in H5F_locate_signature(): unable
to find a valid file signature
major: Low-level I/O
minor: Unable to initialize object
error: load: unable to open input file '05.02.hdf'
Looking for a solution, I came across an Octave 'portage' of the Matlab
hdf_load function here
<http://lasp.colorado.edu/cism/CISM_DX/code/CISM_DX-0.50/required_packages-linux/tsds/deps/octave-rsw/octave-matlab-compat/octave/hdfread/octave/>
. The two functions hdfinfo.m & hdfread.m cannot work unless I compile
load_hdf.cc to get a load_hdf.o file. My attempt to compile load_hdf.cc in
Octave actually fails too:
octave:2> mkoctfile load_hdf.cc
load_hdf.cc:14:28: fatal error: octave/ov-list.h: No such file or directory
#include <octave/ov-list.h>
I understand that octave/ov-list.h should come with headers but even after I
installed liboctave-dev, I end up with the same error. I cannot find any
ov-list.h file on my system using locate ov-list.h, neither can I find
mention of this files in Octave 3.6 from Debian packages.
Any help on how to sort this problem out? Would be great because I have tons
of hdf files to process...
Thanks
Chris
--
View this message in context:
http://octave.1599824.n4.nabble.com/Compile-load-hdf-cc-function-tp4660623.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Compile load-hdf.cc function,
Krikouille <=