function Castraw = acs_elim_duplicates(Castdata);

[isun rows col] = unique(Castdata(:,1), 'rows');
Castraw = Castdata(rows,:);