function dsp_theo, dim, L, r0, L0
;
; dim = array linear dimension [px]
; L   = array physical length [m]
; r0  = phase screen Fried parameter [m]
; L0  = phase screen outerscale [m]
; use: dsp=dsp_theo(dim,L,r0,L0) 
; to be plotted afterwards with:
; plot_oo, 1./L*findgen(dim), dsp, XR=[1/L/1.2,dim*1/L*1.2], /XS, $
;          YR=[0.1, 1E7], TIT='PSD(L0)', XTIT='freq. [1/m]', YTIT='PSD'
; oplot  , 1./L*findgen(dim), dsp, LINE=1
; playing, e.g., with L0=100.,10.,1., or r0=.05, .1, .2
;
freq = findgen(dim)
dsp  = .0228*(L/r0)^(5/3.)*L^2*(freq^2+(L/L0)^2)^(-11./6)

return, dsp
end