Hi Tim,
1) you might want to use H5Literate() to find all members of a group and
to select the right one:
http://www.hdfgroup.org/HDF5/doc/RM/RM_H5L.html#Link-Iterate
Do you have multiple such groups? If so, you might need to consider all
of them or just one, if you can find a criteria.
2) and 3) seem to be application-specific questions which the creator of
the HDF5 file might know better.
Best regards,
Werner
On 27.05.2014 16:00, Tim Gruene wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I am new to HDF5 and received sample neutron time-of-flight data from
the PCS. This machine has 8 detectors and each detects events of the
form (X, Y, t).
I would like to access these triplets from a C-program.
So far hdfview tells me that the top group is "run_515" containing the
groups "tof_detector_1" through "tof_detector_8".
Each of these 8 groups contains the data sets I am interested in, namely
"single_events_time", "single_events_x", and "single_events_y".
I have a couple of questions w.r.t. to coding in C in order to access
these arrays.
1) while I assume that "tof_detector_1" etc. is always the same in
files from this machine, "run_515" seems to vary. I haven't figured
out how to access the data if I don't know the name "run_515". Could
someone point me into the right direction?
2) I received a sketch of the laytout of PCS and I guess that the
detectors are all planar. Should a proper HDF5-file contain the
orientations of each detector w.r.t. sample or some other mark, or do
I have to talk to the instrument scientist?
3) would a proper HDF5 file contain the distance from the 0-point to
the sample so that I know what distance the time t refers to?
This would help me get started on HDF5.
Best regards,
Tim Gruene
- --
- --
Dr Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen
GPG Key ID = A46BEE1A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iD8DBQFThJqHUxlJ7aRr7hoRAh0JAJ43jRoo6hRdL4DCZyB6jWqNfHq/nQCg7Gi9
oY7GBI/1p4jbYwJPL6leUlg=
=cvMY
-----END PGP SIGNATURE-----
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
--
___________________________________________________________________________
Dr. Werner Benger Visualization Research
Center for Computation & Technology at Louisiana State University (CCT/LSU)
2019 Digital Media Center, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809 Fax.: +1 225 578-5362
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5