You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the value of psf/psf.max() also depends on x_0, y_0. If the center of the PSF shifts, then the pixel boundaries will fall differently and thus the evaluated numbers in the PSF will change, which will cause psf.max() to be different. Is that intentional? It might be right, I just cannot wrap my head around it right now.
If I remember correctly, the parameter used to be the total integrated flux (that's how I implemented it). I just noticed that @larrybradley changed the definition of the parameter in #218 to the peak amplitude, maybe because I called it amplitude in the docs? (Which was a misnomer...sorry) I think it should be changed back. @larrybradley What do you think?
Concerning the normalization factor: The factor 2/sqrt(2) is already included in the error function of scipy. The defintion of the 2D Gaussian using the error function needs a normalization factor of 1/4, because the error function is normalized to one by definition, but only gives the one sided integral. For the full integral you need an additional factor of 1/2 in the 1d case and a factor 1/2**2 = 1/4 in the 2d case. Does that make sense?
@adonath, yes I completely agree that it should be changed back (when I was doing #218 I mentioned that flux seemed better than amplitude, but nonetheless I continued your PR before the 0.1 release).
Activity
hamogu commentedon Mar 4, 2015
Note that the value of
psf/psf.max()also depends onx_0, y_0. If the center of the PSF shifts, then the pixel boundaries will fall differently and thus the evaluated numbers in the PSF will change, which will causepsf.max()to be different. Is that intentional? It might be right, I just cannot wrap my head around it right now.adonath commentedon Mar 4, 2015
If I remember correctly, the parameter used to be the total integrated flux (that's how I implemented it). I just noticed that @larrybradley changed the definition of the parameter in #218 to the peak amplitude, maybe because I called it
amplitudein the docs? (Which was a misnomer...sorry) I think it should be changed back. @larrybradley What do you think?Concerning the normalization factor: The factor
2/sqrt(2)is already included in the error function of scipy. The defintion of the 2D Gaussian using the error function needs a normalization factor of1/4, because the error function is normalized to one by definition, but only gives the one sided integral. For the full integral you need an additional factor of1/2in the 1d case and a factor1/2**2 = 1/4in the 2d case. Does that make sense?larrybradley commentedon Mar 5, 2015
@adonath, yes I completely agree that it should be changed back (when I was doing #218 I mentioned that
fluxseemed better thanamplitude, but nonetheless I continued your PR before the 0.1 release).Changes to Gaussian PSF
Changes to Gaussian PSF