% This script reads in a text file with time, stage and velocity, % converts the time to a particular format, and writes the result as % a .mat file. Stage is converted to meters above sea level, and % velocity is converted to m/s. The data is stored as a structure named cs20. date=2.; load /d4/Darmat/data/adcp/9806/tms3/tms3cs20.txt cs20.pstseccs=((date*24.+fix(tms3cs20(:,1)/100))*60+ ... mod(tms3cs20(:,1),100))*60.; cs20.hcs=(tms3cs20(:,2)-11.)*12.*.0254; cs20.vcs=tms3cs20(:,3)*12.*.0254; save /d4/Darmat/data/adcp/9806/tms3/tms3cs20 cs20