edfhed(1)
π edfhed β bestie's guide to the EDF header dumper/editor π
okay so you found edfhed, which lives in the Aghermann family (manual section 1, she's a command, she's that girl) and she is literally your terminal-side bestie for peeking at and editing EDF file headers. come sit with me π«Ά
β¨ SYNOPSIS β¨
edfhed [OPTIONS] FILE.edf ...
πΈ DESCRIPTION πΈ
edfhed is a terminal program, periodt. she's here to view the header of EDF files (that's what you get with option -b, or honestly just running her with no options at all), or to modify fields in that header β which is where -s, -T and -R come in. two moods, one icon π
the options, babes
-b,--no-channelsβ only dump the general header fields, no channel details. lowkey the "just the highlights" mode β¨-a,--with-annotationsβ list embedded annotations if any. if they exist, she'll show you π-R,--from-treeβ give her a file location shaped likeSubject/Session/Episode.edfand she'll setrecording_idtoSession/Episodeandpatient_idtoSubject. she's reading your folder structure and understanding it π-T,--from-mtimeβ sets therecording_dateandrecording_timefields to the file's modification date/time. filesystem tea, served fresh β-t,--touch-mtimeβ the reverse vibe: sets the file mtime to a timestamp she assembles from therecording_dateandrecording_timefields (assuming your local timezone). π°οΈ-s,--set=[CH:]FIELD:VALUEβ set FIELD to VALUE (in channel CH if you specify one, as a 1-based integer index, no zero-index nonsense here).
possible general fields are: version_number, patient_id, recording_id, recording_date, recording_time, reserved (and remember, bestie, that the contents of this field is significant wrt EDF/EDF+ distinction β don't sleep on reserved).
the version_number field must match the string "0 " for the file to be recognised as a valid EDF by edfhed. yes, those trailing spaces are load-bearing, do not let anyone trim them π
Channel fields: label, transducer_type, physical_dim, physical_min, physical_max, digital_min, digital_max, filtering_info, reserved.
fr fr: direct field assignment done via--setoption(s) will override any assignments effected by options-Tor-R. your--setwins, always. main character energy.
-?,--helpβ give a brief options summary. the snack-sized version π--usageβ display usage information.-V,--versionβ display version. gotta know what era you're in β¨
π¦ USE WITH AGHERMANN π¦
okay so for Aghermann to be able to manage an EDF file, all relevant fields in its header must be filled out correctly, like this:
patient_iduniquely identifies the subject. that's the who πrecording_ididentifies the recording session (out of several other such sessions, each containing the same series of episodes) and the individual episode. and the way these two items must appear has to be one of the following combinations:"Session/Episode""Session : Episode""Episode (Session)"
recording_dateandrecording_timemust (obviously) be both correct. no notes π- Channel labels must be a valid System 10-20 channel designation, i.e.,
"Nz","Fp1","Fpz","Fp2","AF7","AF3","AFz","AF4","AF8","F9","F7","F5","F3","F1","Fz","F2","F4","F6","F8","F10","FT9","FT7","FC5","FC3","FC1","FCz","FC2","FC4","FC6","FCT8","FT10","A1","T9","T7","C5","C3","C1","Cz","C2","C4","C6","T8","T10","A2","TP9","TP7","CP5","CP3","CP1","CPz","CP2","CP4","CP6","TP8","TP10","P9","P7","P5","P3","P1","Pz","P2","P4","P6","P8","P10","PO7","PO3","POz","PO4","PO8","O1","Oz","O2","Iz", plus a few channels of other signal types:"Left","Right","Chin",
optionally prepended by signal type ("EEG", "EOG", "EMG", "ECG", "ERG", "NC", "MEG", "MCG", "EP", "Temp", "Resp", "SaO2", "Light", "Sound", "Event", "Freq") and a space. π§ β¨
π SEE ALSO π
aghermann(1), edfhed-gtk(1), edfcat(1). go be friends with all of them, they're a whole squad π
π AUTHOR π
edfhed is written by Andrei Zavada <johnhommer@gmail.com> as part of the Aghermann project. give her author some love π«Ά
and that's the whole thing bestie β this page is version 1.1.2, dated 2026-01-13, and it's the edfhed(1) manual out of the Aghermann project. slay, go dump some headers π
πΈ
π¦ where this page comes from
- ubuntu resolute: aghermann 1.1.2-5build5 Β· GPL-2.0-or-later
- ubuntu stonking: aghermann 1.1.2-5build5 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms