function refr_mother_xL, n, d, x0, 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 + x0 psihatL=refr_mother_wL(n, d, wL) psiL=shift(float(fft( shift(psihatL,n/2)/dn, /inverse)),n/2) return, psiL end pro refr_mother_xL_test n = 256 d = 20./n psihatL = refr_mother_wL(n, d, wL) psiL = refr_mother_xL(n, d, 0, 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