function [azspeed,elspeed]=scanspeed(lidar)

[na,nr]=size(lidar.RWS);

spazf=diff(lidar.azimuth(:,1))./(diff(lidar.timestamp)*24*60*60)';
spelf=diff(lidar.elevation(:,1))./(diff(lidar.timestamp)*24*60*60)';


azspeed=spazf;
elspeed=spelf;
return
end