RAW DATA Got from Arthur Venancio the "lightly grilled" files, with one line for each sampling frame: "EEG_raw.csv" with 19 raw scalp electrode channel samples per line, comma-separated. "lightsensor_raw.txt" with one screen brightness sensor (SBS) sample per line. The sampling frequency was 500 Hz (samples per second). Both files had 1466500 frames (2933 seconds exactly). SBS CLEANUP The SBS file was rather dirty and unnecessarily complicated (with blinking used to indicate the SETUP intervals). It was cleaned with ( cat lightsensor_raw.txt | ../../cleanup_light_sensor.gawk > lightsensor_cooked.txt ) 2> lightsensor_segs.txt The summary of the segments is (frame indices starting at 1): 1 .. 73711 : 73711 frames : SETUP 73712 .. 594312 : 520601 frames : PHASE 0 (DBS off) 594313 .. 805276 : 210964 frames : SETUP 805277 .. 1325877 : 520601 frames : PHASE 1 (DBS on) 1325878 .. 1466500 : 140623 frames : SETUP CREATING A SYNTHETIC TEST CHANNEL Creating a syntetic electrode signal for each PHASE, to monitor the effect of filters. nmeeg_make_test_signal.gawk -v nt=520601 -v fsmp=500 > synth_dbs0.txt nmeeg_make_test_signal.gawk -v nt=520601 -v fsmp=500 > synth_dbs1.txt Adding fake SETUP segments: ( \ ( yes '0.0' | head -n 73711 ) ; \ ( egrep -e '^[ ]*[-+]?[0-9.]' synth_dbs0.txt ) ; \ ( yes '0.0' | head -n 210964 ) ; \ ( egrep -e '^[ ]*[-+]?[0-9.]' synth_dbs1.txt ) ; \ ( yes '0.0' | head -n 140623 ) ; \ ) > synth.txt wc -l synth.txt JOINING THE FILES Joining the files together: paste -d ' ' EEG_raw.csv synth.txt lightsensor_cooked.txt | tr ',' ' ' > EEG_with_synth_sbs.txt ( cat EEG_with_synth_sbs.txt | ../../check_pasted_EEG.gawk > EEG_cooked.txt ) 2> channel_summary.txt. head EEG_cooked.txt tail EEG_cooked.txt wc -l EEG_cooked.txt FILTERING AND SPLITTING Filtering and spliting: nmeeg_split_e19_av2020 \ -padFrames 500 \ -outDir . \ < EEG_cooked.txt