J: added working version for calibrating PSA32 rawdata