plot_fit_path¶
-
pyoof.plot_fit_path(path_pyoof, order, illum_func, telgeo, resolution, box_factor, angle, plim_rad, save)[source] [edit on github]¶ Plot all important figures after a least squares minimization.
Parameters: path_pyoof :
strPath to the pyoof output,
'pyoof_out/directory'.order :
intOrder used for the Zernike circle polynomial, \(n\).
illum_func :
functionIllumination function, \(E_\mathrm{a}(x, y)\), to be evaluated with the key I_coeff. The illumination functions available are
illum_pedestalandillum_gauss.telgeo :
listList that contains the blockage distribution, optical path difference (OPD) function, and the primary radius (
float) in meters. The list must have the following order,telego = [block_dist, opd_func, pr].resolution :
intFast Fourier Transform resolution for a rectangular grid. The input value has to be greater or equal to the telescope resolution and with power of 2 for faster FFT processing. It is recommended a value higher than
resolution = 2 ** 8.box_factor :
intRelated to the FFT resolution (resolution key), defines the image pixel size level. It depends on the primary radius,
pr, of the telescope, e.g. abox_factor = 5returnsx = np.linspace(-5 * pr, 5 * pr, resolution), an array to be used in the FFT2 (fft2).angle :
strAngle unit, it can be
'degrees'or'radians'.plim_rad :
ndarrayContains the maximum values for the \(u\) and \(v\) wave-vectors, it can be in degrees or radians depending which one is chosen in angle key. The
ndarraymust be in the following order,plim_rad = np.array([umin, umax, vmin, vmax]).save :
boolIf
True, it stores all plots in the'pyoof_out/directory'directory.Returns: fig_beam :
FigureThe three beam maps plotted from the input parameters. Each map with a different offset \(d_z\) value. From left to right, \(d_z^-\), \(0\) and \(d_z^+\).
fig_phase :
FigureAperture phase distribution for the Zernike circle polynomials for the telescope primary dish.
fig_res :
FigureFigure from the three observed beam maps residual. Each map with a different offset \(d_z\) value. From left to right, \(d_z^-\), \(0\) and \(d_z^+\).
fig_data :
FigureFigure from the three observed beam maps. Each map with a different offset \(d_z\) value. From left to right, \(d_z^-\), \(0\) and \(d_z^+\).
fig_cov :
FigureTriangle figure representing Variance-Covariance matrix.
fig_corr :
FigureTriangle figure representing Correlation matrix.