Skip to content

Preprocess a dataset

Keoma Brun edited this page Jan 5, 2017 · 3 revisions

This page explains how to generate files that will be used by the visual application.
We show how to run the different preprocessing scripts and where the results are generated.

All the scripts to preprocess the datasets are located in datasets/scripts/

PDR over Frequency

One to many

Lets say we want to plot the PDR over the different frequencies for each emitter.
Go to the scripts folder and run the following:

python pdr_freq.py grenoble

The script will read the raw grenoble.csv file located in datasets/raw/ and generate a file called 05-43-32-ff-03-d6-c0-68.json under the folder datasets/processed/grenoble/one_to_many/

One to one

Lets say we want to plot the PDR over the different frequencies for each emitter and receiver pair.
Go to the scripts folder and run the following:

python pdr_freq.py grenoble -o2o

The script will read the raw grenoble.csv file located in datasets/raw/ and generate a file called 05-43-32-ff-03-d6-c0-68.json under the folder datasets/processed/grenoble/one_to_one/

RSSI over Frequency

The rssi over frequency pre-processing script works the same way as the PDR over frequency one.