After an hour of trying to figure out why I don't get anything useful from processing the signal, I looked at the first line again:
f = open("noise-<params>.dat")
The output gets quite a bit saner once there is actually something to see in the input.
