processRaw function

Process raw data