Script to perform the preproc of the raw data