function sato_mother_xL, n, d, xL ; Given a number of points and a spacing, return an ; array of the wavelet values and the ; array of spatial positions for the ; mother wavelet for use with the refractivity. dn = d * n xL=[findgen(n/2)-n/2,findgen(n/2)] * d psihatL=sato_mother_wL(n, d, wL) psiL=shift(float(fft( shift(psihatL,n/2)/dn, /inverse)),n/2) return, psiL end pro sato_mother_xL_test n = 256 d = 8./n psihatL = sato_mother_wL(n, d, wL) psiL = sato_mother_xL(n, d, xL) window, 0, xs=1000,ys=500 !p.multi=[0,2,0] plot, xL, psiL, xr=[-5,5], yr=[-1.5, 1.5], /xs,/ys plot, wL, abs(psihatL), xr=[-10,10], yr=[0,1.2], /xs,/ys end