moments

gaussfitter.moments(data, circle, rotate, vheight, estimator=<function median>, angle_guess=45.0, **kwargs)[source] [edit on github]

Returns (height, amplitude, x, y, width_x, width_y, rotation angle) the gaussian parameters of a 2D distribution by calculating its moments. Depending on the input parameters, will only output a subset of the above.

If using masked arrays, pass estimator=np.ma.median