diff --git a/src/frebin.jl b/src/frebin.jl index df866d3..e7561de 100644 --- a/src/frebin.jl +++ b/src/frebin.jl @@ -127,10 +127,13 @@ the sum of the x and y coordinates in the original image: ```jldoctest julia> using AstroLib -julia> image = [x+y for x in 1:800, y in 1:800] +julia> image = [x+y for x in 1:800, y in 1:800]; + julia> image1 = frebin(image, 850, 900, total=true); + julia> sum(image) 512640000 + julia> sum(image1) 5.126400000000241e8 ``` diff --git a/src/fshift.jl b/src/fshift.jl index c7b429c..3dbecf0 100644 --- a/src/fshift.jl +++ b/src/fshift.jl @@ -55,7 +55,9 @@ y coordinates: ```jldoctest julia> using AstroLib + julia> image = [x+y for x in 1:10, y in 1:10]; + julia> fshift(image, 0.5, 0.5) 10×10 Matrix{Float64}: 11.0 7.0 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0