Data conversion scripts

Together these scripts process the data from the location|stimulation sensor and the audio from the bat detector into a dataset and accompanying sound files that can be explored via the Processing sketch. They analyse the skin conductivity data to identify and count peaks, and break down the GPS data into short ’legs’ of the journey. These legs are likely to cover shorter periods of time where there is high stimulation.

You should take the raw data from the run the scripts from the command line in the following order. More details are included in the files, including libraries and software that need to be installed for the scripts to function.


perl peakSoundSplit.pl <raw data filename> <bat detector audio> <csv file out> <xml file out> <sound output directory> <length of each journey segments in mintues>

EXAMPLE: perl peakSoundSplit.pl log010.csv bataudio.mp3 out.csv out.xml snd/ 10

perl sonifyGSR.pl <raw data filename> <processed csv filename> <target output directory> 

EXAMPLE: perl sonifyGSR log010.csv out.csv sndGSR/

The scripts fm2.ck and intensityProcessor.pm are called by the other two files.

Download code as zip