Le 25/11/2010 11:38, Sebastian Walter a écrit : > using math.cos instead of numpy.cos should be much faster. > I believe this is a known issue of numpy. You're right, with math.cos, the code take 4.3s to run, not as fast as IDL, but a lot better.