From 9abf81301ba98418539bac9353c3c818784c6cca Mon Sep 17 00:00:00 2001 From: Miles Lucas Date: Thu, 28 Mar 2024 22:58:32 -1000 Subject: [PATCH] confirm correct ratio for obscured airy pattern --- src/airy.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/airy.jl b/src/airy.jl index 5754c43..a54b6c7 100644 --- a/src/airy.jl +++ b/src/airy.jl @@ -47,7 +47,7 @@ function _airydisk(px, py, x, y, fwhm, ratio, amp, theta, background) q = AIRY_PRE * r / fwhm I1 = 2 * besselj1(q) / q iszero(ratio) && return amp * I1^2 + background - I2 = 2 * ratio^2 * besselj1(q * ratio) / q + I2 = 2 * ratio * besselj1(q * ratio) / q return amp * (I1 - I2)^2 + background end @@ -67,6 +67,6 @@ function _airydisk(px, py, x, y, fwhm::BivariateLike, ratio, amp, theta, backgro iszero(q) && return amp + background I1 = 2 * besselj1(q) / q iszero(ratio) && return amp * I1^2 + background - I2 = 2 * ratio^2 * besselj1(q * ratio) / q + I2 = 2 * ratio * besselj1(q * ratio) / q return amp * (I1 - I2)^2+ background end