writing snr.py to model SNR at the sensor