Closed parfenyev closed 2 years ago
You'd probably need to import fftshift
, e.g., add it in
In your version I have the problem with interpolation:
MethodError: no method matching scale(::Interpolations.BSplineInterpolation{ComplexF64, 2, Matrix{ComplexF64}, BSpline{Linear{Throw{OnGrid}}}, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}, ::Matrix{Float64}, ::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64})
Closest candidates are:
scale(::AbstractInterpolation{T, N, IT}, ::AbstractRange...) where {T, N, IT} at ~/.julia/packages/Interpolations/y4lLj/src/scaling/scaling.jl:27
Probably, it happens because interpolation works only on uniformly spaced grids and this is the way to control this.
Yeap, fair. Forget my suggestion then! :)
Thanks @parfenyev!
Fixing bug in the function
radialspectrum()
. Now the definitions oflshift
andkshift
are consistent with the operationfftshift
.