Using the read() function from HDF5.jil I obtain this output for data
:
43466-element Vector{NamedTuple{(:H1, […]}}:
(H1 = 8.26600, […]),
(H1 = 8.26600, […]),
How can I access a field? e.g. I tried data.H1
and data["H1"]
and got
type Array has no field H1
and invalid index: "H1" of type String
.
This is working
p = zeros(size(data))
for i in 1:size(data)[1]
p[i] = data[i].H1
end
but I bet there is a clever way to do it.
I appreciate any help.