Export a Segment (EDF+ / BDF+)

Guide | 4 min read

Save a time range of chosen channels, at the original or a lower sample rate, as a de-identified EDF+ or BDF+ file to send to a collaborator (Pro/Max).

1. Open and choose

Picture of the two ways into Export Segment and its time range and channels, with sample data.
  1. From the Viewer: Export Current View > Export Segment as EDF+… (BDF+ for a BDF recording). The window on screen and the recorded channels behind the selected rows, or behind every row when none is selected, are the defaults. A bipolar row brings its two channels and a referential row its reference: the copy holds the recorded signals, not the montage, filters or row settings.
  2. From Recording Files on the recording's page, Export Segment as EDF+…: the first 10 seconds and the saved channel selection are the defaults.
  3. Set Start and End in seconds, or tap Use Viewer Window or Whole Recording. Under Channels use All, Viewer Rows or None, or tick channels one by one; channels without a voltage unit and the BioSemi Status channel can be included and are copied as recorded. Empty placeholder channels are never offered.

2. Whole data records and gaps

The copy is made of whole data records: it starts at the beginning of the record that holds the start time and ends at the end of the record that holds the end time. No sample moves and every record keeps its exact onset; with 1 s records the copy is at most a second longer at each end. The Summary shows the exact range before anything is written.

A range with no gap is saved as EDF+C (BDF+C). A range that spans a gap of an EDF+D or BDF+D recording is saved as EDF+D (BDF+D): every data record keeps its onset, counted from the new start, so each gap keeps its length. Records that overlap the record before stay out, as in the Viewer, and the Summary says how many.

Every segment has an annotation signal, so a plain EDF or BDF recording gives an EDF+ or BDF+ file.

3. Sample rate

Original: every kept sample is copied byte for byte, so a BDF segment stays 24-bit.

A lower rate is the original divided by a whole number: a whole number of Hz, at least 32 Hz, with whole samples per data record, and dividing the rate of every faster channel evenly (for example 1,024 Hz gives 512, 256, 128, 64 or 32 Hz).

Downsampling writes new digital values, and the Summary says so. An anti-aliasing low-pass runs first: a linear-phase FIR filter with a Kaiser window (designed as SciPy’s kaiserord and firwin design it), flat within 0.01% up to 0.4 × the new rate, −6 dB at 0.45 × and at least 80 dB down from the new Nyquist frequency, so nothing above it folds back into the signal. Then every Mth sample is kept, with each channel’s calibration; the filter delays nothing. Each downsampled channel’s prefiltering field names it, for example LP:115.2Hz FIR 1024>256Hz.

The filter reads real samples beyond the cut where the recording continues, so a cut equals the same stretch of a whole-recording export. At the start and end of the recording and next to a gap it mirrors the signal; it never runs across a gap. Channels already at or below the new rate keep their rate, byte for byte. The Status channel keeps every Mth value without filtering, so trigger codes are never blended; its triggers are annotations as well.

4. Annotations, privacy and plans

Annotations come from the Viewer’s list: edits applied, deleted ones left out, added ones included. Those that overlap the copy are written with times from its start; one that starts before the copy or runs past its end is cut at the edge. Also save events.tsv adds a file with onset, duration, trial_type, value, source and the original onset and duration.

The header is de-identified like the De-identified EDF Copy, and annotation text that looks identifying becomes [redacted]. The recording in the library never changes. Export Segment needs Pro or Max, like the Annotated EDF+ Copy. The Online EEG Reviewer has the same export in its Recording panel.

Export a Segment (EDF+ / BDF+)

Guide | 4 min read

Save a time range of chosen channels, at the original or a lower sample rate, as a de-identified EDF+ or BDF+ file to send to a collaborator (Pro/Max).

1. Open and choose

Picture of the two ways into Export Segment and its time range and channels, with sample data.
  1. From the Viewer: Export Current View > Export Segment as EDF+… (BDF+ for a BDF recording). The window on screen and the recorded channels behind the selected rows, or behind every row when none is selected, are the defaults. A bipolar row brings its two channels and a referential row its reference: the copy holds the recorded signals, not the montage, filters or row settings.
  2. From Recording Files on the recording's page, Export Segment as EDF+…: the first 10 seconds and the saved channel selection are the defaults.
  3. Set Start and End in seconds, or click Use Viewer Window or Whole Recording. Under Channels use All, Viewer Rows or None, or tick channels one by one; channels without a voltage unit and the BioSemi Status channel can be included and are copied as recorded. Empty placeholder channels are never offered.

2. Whole data records and gaps

The copy is made of whole data records: it starts at the beginning of the record that holds the start time and ends at the end of the record that holds the end time. No sample moves and every record keeps its exact onset; with 1 s records the copy is at most a second longer at each end. The Summary shows the exact range before anything is written.

A range with no gap is saved as EDF+C (BDF+C). A range that spans a gap of an EDF+D or BDF+D recording is saved as EDF+D (BDF+D): every data record keeps its onset, counted from the new start, so each gap keeps its length. Records that overlap the record before stay out, as in the Viewer, and the Summary says how many.

Every segment has an annotation signal, so a plain EDF or BDF recording gives an EDF+ or BDF+ file.

3. Sample rate

Original: every kept sample is copied byte for byte, so a BDF segment stays 24-bit.

A lower rate is the original divided by a whole number: a whole number of Hz, at least 32 Hz, with whole samples per data record, and dividing the rate of every faster channel evenly (for example 1,024 Hz gives 512, 256, 128, 64 or 32 Hz).

Downsampling writes new digital values, and the Summary says so. An anti-aliasing low-pass runs first: a linear-phase FIR filter with a Kaiser window (designed as SciPy’s kaiserord and firwin design it), flat within 0.01% up to 0.4 × the new rate, −6 dB at 0.45 × and at least 80 dB down from the new Nyquist frequency, so nothing above it folds back into the signal. Then every Mth sample is kept, with each channel’s calibration; the filter delays nothing. Each downsampled channel’s prefiltering field names it, for example LP:115.2Hz FIR 1024>256Hz.

The filter reads real samples beyond the cut where the recording continues, so a cut equals the same stretch of a whole-recording export. At the start and end of the recording and next to a gap it mirrors the signal; it never runs across a gap. Channels already at or below the new rate keep their rate, byte for byte. The Status channel keeps every Mth value without filtering, so trigger codes are never blended; its triggers are annotations as well.

4. Annotations, privacy and plans

Annotations come from the Viewer’s list: edits applied, deleted ones left out, added ones included. Those that overlap the copy are written with times from its start; one that starts before the copy or runs past its end is cut at the edge. Also save events.tsv adds a file with onset, duration, trial_type, value, source and the original onset and duration.

The header is de-identified like the De-identified EDF Copy, and annotation text that looks identifying becomes [redacted]. The recording in the library never changes. Export Segment needs Pro or Max, like the Annotated EDF+ Copy. The Online EEG Reviewer has the same export in its Recording panel.

Export a Segment (EDF+ / BDF+)

Guide | 4 min read

Save a time range of chosen channels, at the original or a lower sample rate, as a de-identified EDF+ or BDF+ file to send to a collaborator (Pro/Max).

How to use it

Picture of Export Segment, with sample data.
  1. On the recording page, tap Export, then Export Segment.
  2. Time range: drag on the strip, or type the start and end.
  3. Channels: all of them, the rows in the Viewer, or a choice.
  4. Format: EDF+ or BDF+, at the recording's own rate.

From the Viewer, More › Export View › Export Segment… starts from the window on screen and the recorded channels behind the selected rows, or behind every row when none is selected. A bipolar row brings its two channels and a referential row its reference: the copy holds the recorded signals, not the montage, filters or row settings.

From the recording's page, the 10 seconds in its preview and the saved channel selection are the defaults; from Recording Files, the first 10 seconds.

Channels without a voltage unit and the BioSemi Status channel can be included and are copied as recorded. Empty placeholder channels are never offered.

Whole data records and gaps

The copy is made of whole data records: it starts at the beginning of the record that holds the start time and ends at the end of the record that holds the end time. No sample moves and every record keeps its exact onset; with 1 s records the copy is at most a second longer at each end. The Summary shows the exact range before anything is written.

A range with no gap is saved as EDF+C (BDF+C). A range that spans a gap of an EDF+D or BDF+D recording is saved as EDF+D (BDF+D): every data record keeps its onset, counted from the new start, so each gap keeps its length. Records that overlap the record before stay out, as in the Viewer, and the Summary says how many.

Every segment has an annotation signal, so a plain EDF or BDF recording gives an EDF+ or BDF+ file.

Sample rate

Original: every kept sample is copied byte for byte, so a BDF segment stays 24-bit.

A lower rate is the original divided by a whole number: a whole number of Hz, at least 32 Hz, with whole samples per data record, and dividing the rate of every faster channel evenly (for example 1,024 Hz gives 512, 256, 128, 64 or 32 Hz).

Downsampling writes new digital values, and the Summary says so. An anti-aliasing low-pass runs first: a linear-phase FIR filter with a Kaiser window (designed as SciPy’s kaiserord and firwin design it), flat within 0.01% up to 0.4 × the new rate, −6 dB at 0.45 × and at least 80 dB down from the new Nyquist frequency, so nothing above it folds back into the signal. Then every Mth sample is kept, with each channel’s calibration; the filter delays nothing. Each downsampled channel’s prefiltering field names it, for example LP:115.2Hz FIR 1024>256Hz.

The filter reads real samples beyond the cut where the recording continues, so a cut equals the same stretch of a whole-recording export. At the start and end of the recording and next to a gap it mirrors the signal; it never runs across a gap. Channels already at or below the new rate keep their rate, byte for byte. The Status channel keeps every Mth value without filtering, so trigger codes are never blended; its triggers are annotations as well.

Annotations, privacy and plans

Annotations come from the Viewer’s list: edits applied, deleted ones left out, added ones included. Those that overlap the copy are written with times from its start; one that starts before the copy or runs past its end is cut at the edge. Also save events.tsv adds a file with onset, duration, trial_type, value, source and the original onset and duration.

The header is de-identified like the De-identified EDF Copy, and annotation text that looks identifying becomes [redacted]. The recording in the library never changes. Export Segment needs Pro or Max, like the Annotated EDF+ Copy. The Online EEG Reviewer has the same export in its Recording panel.