The invention relates to a method and apparatus for calculating a laser shot filefor use in a refractive excimer laser comprising the steps of providing informationwith respect to a desired ablation profile, calculating the shot density of thedesired ablation profile, determining a grid width of a grid being used for placinglaser shots of the excimer laser on grid positions wherein the grid width is determinedbased on the calculated shot density of the desired ablation profile.