Closed snowuyl closed 6 months ago
You can use the same program to inspect the contents of a SNIRF file.
Alternatively, you could try h5dump:
$ h5dump -n test.snirf
HDF5 "test.snirf" {
FILE_CONTENTS {
group /
dataset /formatVersion
group /nirs
group /nirs/data1
dataset /nirs/data1/dataTimeSeries
group /nirs/data1/measurementList1
dataset /nirs/data1/measurementList1/dataType
dataset /nirs/data1/measurementList1/dataTypeIndex
dataset /nirs/data1/measurementList1/detectorIndex
dataset /nirs/data1/measurementList1/sourceIndex
dataset /nirs/data1/measurementList1/wavelengthIndex
group /nirs/data1/measurementList10
dataset /nirs/data1/measurementList10/dataType
dataset /nirs/data1/measurementList10/dataTypeIndex
dataset /nirs/data1/measurementList10/detectorIndex
dataset /nirs/data1/measurementList10/sourceIndex
dataset /nirs/data1/measurementList10/wavelengthIndex
...
group /nirs/data1/measurementList9
dataset /nirs/data1/measurementList9/dataType
dataset /nirs/data1/measurementList9/dataTypeIndex
dataset /nirs/data1/measurementList9/detectorIndex
dataset /nirs/data1/measurementList9/sourceIndex
dataset /nirs/data1/measurementList9/wavelengthIndex
dataset /nirs/data1/time
group /nirs/metaDataTags
dataset /nirs/metaDataTags/DateOfBirth
dataset /nirs/metaDataTags/FrequencyUnit
dataset /nirs/metaDataTags/LengthUnit
dataset /nirs/metaDataTags/MNE_coordFrame
dataset /nirs/metaDataTags/MeasurementDate
dataset /nirs/metaDataTags/MeasurementTime
dataset /nirs/metaDataTags/SubjectID
dataset /nirs/metaDataTags/TimeUnit
dataset /nirs/metaDataTags/sex
group /nirs/probe
dataset /nirs/probe/detectorLabels
dataset /nirs/probe/detectorPos3D
dataset /nirs/probe/landmarkLabels
dataset /nirs/probe/landmarkPos3D
dataset /nirs/probe/sourceLabels
dataset /nirs/probe/sourcePos3D
dataset /nirs/probe/wavelengths
group /nirs/stim1
dataset /nirs/stim1/data
dataset /nirs/stim1/name
group /nirs/stim2
dataset /nirs/stim2/data
dataset /nirs/stim2/name
group /nirs/stim3
dataset /nirs/stim3/data
dataset /nirs/stim3/name
group /nirs/stim4
dataset /nirs/stim4/data
dataset /nirs/stim4/name
}
}
Thanks for your reply!
I can use HDF View (https://www.hdfgroup.org/downloads/hdfview/) to show data structure of HDF file. Is there any tool to show data structure of SNIRF file?