aces.beamset.contourellipse

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

ContourEllipse

Functions

greens(seg)

class aces.beamset.contourellipse.ContourEllipse(params=[])[source]

Bases: aces.beamset.model.Model

PARAM_NAMES = ['ell_a', 'ell_b', 'ell_c', 'ell_d', 'ell_f', 'ell_g', 'residual_rms'][source]
NUM_PARAMS[source]
fit(x, y)[source]
_fill_attributes()[source]
get_residual_rms()[source]
is_good_fit()[source]
evaluate(arg)[source]

For this class, evaluation has no meaning

get_locus50(arg)[source]

Returns the locus of (x,y) over the range of the input angular arg

_evaluate(phi)[source]
_get_abcdfg()[source]
_get_up_down()[source]
_ellipse_center()[source]
_ellipse_angle_of_rotation()[source]
_ellipse_angle_of_rotation2()[source]
_ellipse_axis_length()[source]
get_translated(dxy)[source]
_calc_residual(x, y)[source]
aces.beamset.contourellipse.greens(seg)[source]