%pos2kml.m

clear;

data = csvread('2630ext.csv');

lat = dm2degrees([data(:,3) data(:,4)]);
lon = -1*dm2degrees([data(:,5) data(:,6)]);


for i=1:size(data,1)
    %t(i,:) = sprintf('%d',data(i,1));
    t(i) = cellstr( sprintf('%d',data(i,1)) );
end



kmlwrite('pos.kml',lat,lon,'Name',t);

