astrohack.antenna.base_panel
Classes
Module Contents
- class BasePanel(model, screws, plot_screw_pos, plot_screw_size, label, center=None, zeta=None, ref_points=None)[source]
-
- add_sample(sample)[source]
Add a point to the panel’s list of points to be fitted :param sample: tuple/list containing point description [xcoor,ycoor,xidx,yidx,value]
- add_margin(sample)[source]
Add a point to the panel’s list of points to be corrected, but not fitted :param sample: tuple/list containing point description [xcoor,ycoor,xidx,yidx,value]
- export_screws(unit='mm')[source]
Export screw adjustments to a numpy array in unit :param unit: Unit for the screw adjustments
- Returns:
Numpy array with screw adjustments
- plot_label(ax, rotate=True)[source]
Plots panel label to ax :param ax: matplotlib axes instance :param rotate: Rotate label for better display
- plot_corrections(ax, cmap, corrections, threshold, vmin, vmax)[source]
Plot screw corrections onto an axis :param ax: axis for plot :param cmap: Colormap of the corrections to be applied to each screw :param corrections: the screw corrections :param threshold: Threshold below which data is considered negligable :param vmin: bottom of the colormap :param vmax: top of the colormap