Is it possible to extract the recording date from .fif file header? If
so, what is the best way to do it?
Thanks,
-Burke Rosen
Is it possible to extract the recording date from .fif file header? If
so, what is the best way to do it?
Thanks,
-Burke Rosen
Hi Burke,
in Python you can do:
import mne
from datetime import datetime
raw = mne.fiff.Raw('my-raw.fif')
print datetime.fromtimestamp(raw.info['meas_date'][0])
HTH,
Denis
or with mne commands:
$ mne_show_fiff --in sample_audvis_raw.fif --verbose | head -15
100 = file ID 1.1 0x1083ff3f3a0000 Tue Dec 3 20:01:12 2002
101 = dir pointer -1
106 = free list -1
104 = { 100 = measurement
103 = block ID 1.1 0x306e058d6e0000 Tue Dec 3 20:01:10 2002
104 = { 101 = meas. info
212 = scientist MEG
206 = comment acquisition (megacq) VectorView system at NMR-MGH
104 = { 115 = events
600 = event ch #'s 9 ints
601 = event list 1956 ints
105 = } 115 = events
104 = { 109 = HPI result
213 = dig. point hpi 1 ( -57.9, 68.8, 23.3)
213 = dig. point hpi 2 ( 66.3, -19.4, 45.3)
HTH
Alex