```python elev = surface_elevation(S, time) ``` is about 20 times slower than ```python elev = np.zeros(time.shape) for ifreq, iS in S.T.iteritems(): elev += iS[0] * np.cos(ifreq*2*np.pi * time + np.random.rand()*2*np.pi) ```