:py:mod:`aces.beamset.contourellipse` ===================================== .. py:module:: aces.beamset.contourellipse .. autoapi-nested-parse:: Contains routines for fitting an ellipse to a contour. Fitting the set of (x,y) points on the first null to an ellipse uses the code from http://nicky.vanforeest.com/misc/fitEllipse/fitEllipse.html Also the routine hafLocus to find the locus of points along the half peak level Copyright (C) CSIRO 2017 Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: aces.beamset.contourellipse.ContourEllipse Functions ~~~~~~~~~ .. autoapisummary:: aces.beamset.contourellipse.greens .. py:class:: ContourEllipse(params=[]) Bases: :py:obj:`aces.beamset.model.Model` .. py:attribute:: PARAM_NAMES :value: ['ell_a', 'ell_b', 'ell_c', 'ell_d', 'ell_f', 'ell_g', 'residual_rms'] .. py:attribute:: NUM_PARAMS .. py:method:: fit(x, y) .. py:method:: _fill_attributes() .. py:method:: get_residual_rms() .. py:method:: is_good_fit() .. py:method:: evaluate(arg) For this class, evaluation has no meaning .. py:method:: get_locus50(arg) Returns the locus of (x,y) over the range of the input angular arg .. py:method:: _evaluate(phi) .. py:method:: _get_abcdfg() .. py:method:: _get_up_down() .. py:method:: _ellipse_center() .. py:method:: _ellipse_angle_of_rotation() .. py:method:: _ellipse_angle_of_rotation2() .. py:method:: _ellipse_axis_length() .. py:method:: get_translated(dxy) .. py:method:: _calc_residual(x, y) .. py:function:: greens(seg)