Hi all,
I have a question about HDF5 files created from Julia with HDF5.jl
package. I create files with the following commands:
# Open the HDF5 file for writing
fid = h5open(nameout, "w")
#----------------------#
# Group for header #
#----------------------#
g = create_group(fid, "header")
g["problemname"] = commands.problemname
g["timestep"] = Δτ
g["time"] = τ
#-------------------------------------------------------#
# Group for commands - simply store the entire file #
#-------------------------------------------------------#
g = create_group(fid, "commands")
g["whole"] = commands.whole
#--------------------------#
# Group with grid data #
#--------------------------#
g = create_group(fid, "grid")
g["nnodes"] = grid.nnodes
g["nicells"] = grid.nicells
g["xn"] = grid.xn[1:3, 1:nn]
g["xc"] = grid.xc[1:3, 1:nc]
#------------------------#
# Group with results #
#------------------------#
g = create_group(fid, "results")
g["velocity"] = field.u[1:3, 1:nf]
g["pseudo-pressure"] = field.pp[1:nc]
g["pressure"] = field.p[1:nc]
Quite basic it is. I create three groups, save some date in and that’s all there is to it. The data is indeed stored because I can read it from Julia too, group by group, all is there, unaltered and safe. However, if I use hdfview
to see what is in the files, I see nothing, have a look:
Why can’t I see my groups and datasets I am saving in hdfview
? Any ideas?
Cheers