function [ddata] = new_dedroop(data,tau) 
% Dedroops raw E-field data using time constant provided by user.
     dt=20E-6;  %dt = 1/50000 samples/sec.
     ddata=data+dt*cumsum(data)/tau;
end