H5read Error?

22 visualizaciones (últimos 30 días)
Shayma Al Ali
Shayma Al Ali el 27 de Nov. de 2021
Comentada: Walter Roberson el 27 de Nov. de 2021
I keep getting this error when trying to read some variables from a few h5 files. The error I get is:
Error using h5readc
The HDF5 library encountered an error and produced the following stack trace information:
H5G_traverse_real component not found
H5G_traverse internal path traversal failed
H5G_loc_find can't find object
H5Dopen2 not found
Error in h5read (line 93)
[data,var_class] = h5readc(Filename,Dataset,start,count,stride);
Error in getIceSatData (line 68)
ph_h=h5read(fname,'/gt3l/heights/h_ph');
I've been able to use the same code above for another group and it worked fine. I also double checked with h5disp to make sure that the group name and variable names are correct. What could be wrong?
The code I'm using to read the variables:
direc=dir('*.h5');
for i=6:length(direc)
fname=direc(i).name;
%read in variables
ph_h=h5read(fname,'/gt3l/heights/h_ph');
ph_lat=h5read(fname,'/gt3l/heights/lat_ph');
ph_lon=h5read(fname,'/gt3l/heights/lon_ph');
ph_q=h5read(fname,'/gt3l/heights/quality_ph');
sig_conf_ph=h5read(fname,'/gt3l/heights/signal_conf_ph');
%sat_fract=h5read(fname,'/gt3r/geolocation/full_sat_fract');
ph_time=h5read(fname,'/gt3l/heights/delta_time');
I'm trying to attach the file but its saying its too large, even when I compress it. If anyone can help while I try to figure out how to attach the file so its easier to diagnose the problem, I'd really appreciate it!
  1 comentario
Walter Roberson
Walter Roberson el 27 de Nov. de 2021
If the path /gt3l/heights/h_ph (with lower-case L after gt3) exists for sure in the file, then perhaps the file is corrupt.
But I would first double-check to be absolutely sure that the object has gt3l rather than gt3i or gt31

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by