function [flat] = map_flatten(data)

for i=1:length(data(:,1)),
  flat(i,1)=atan2(data(i,1),data(i,3));
  flat(i,2)=data(i,2);
end
