You do need to rescale the values as the first step, but not exactly the described way (you need to subtract the data pedestal in order to get linear values).