astrohack.antenna.antenna_surface

Attributes

SUPPORTED_POL_STATES

Classes

AntennaSurface

Module Contents

SUPPORTED_POL_STATES = ['I', 'RR', 'LL', 'XX', 'YY'][source]
class AntennaSurface(inputxds, clip_type='sigma', clip_level=3, pmodel='rigid', nan_out_of_bounds=True, panel_margins=0.05, reread=False, pol_state='I', patch_phase=False, use_detailed_mask=True)[source]
reread = False[source]
phase = None[source]
deviation = None[source]
residuals = None[source]
corrections = None[source]
phase_corrections = None[source]
phase_residuals = None[source]
solved = False[source]
ingains[source]
ougains[source]
in_rms[source]
out_rms[source]
fitted = False[source]
pol_state = 'I'[source]
panels[source]
gains()[source]

Computes antenna gains in decibels before and after panel surface fitting Returns: Gains before panel fitting OR Gains before and after panel fitting

gain_at_wavelength(corrected, wavelength)[source]
get_rms(unit='mm')[source]

Computes antenna surface RMS before and after panel surface fitting Returns: RMS before panel fitting OR RMS before and after panel fitting

fit_surface()[source]

Loops over the panels to fit the panel surfaces

correct_surface()[source]

Apply corrections determined by the panel surface fitting methods to the antenna surface

print_misc()[source]

Print miscelaneous information on the panels in the antenna surface

plot_mask(basename, caller, parm_dict)[source]

Plot mask used in the selection of points to be fitted :param basename: basename for the plot, the prefix ‘ancillary_mask’ will be added to it :param caller: Which mds called this plotting function :param parm_dict: dictionary with plotting parameters

plot_amplitude(basename, caller, parm_dict)[source]

Plot Amplitude map :param basename: basename for the plot, the prefix ‘ancillary_amplitude’ will be added to it :param caller: Which mds called this plotting function :param parm_dict: dictionary with plotting parameters

plot_phase(basename, caller, parm_dict)[source]

Plot phase map(s) :param basename: basename for the plot(s), the prefix ‘phase_{original|corrections|residuals}’ will be added to

it/them

Parameters:
  • caller – Which mds called this plotting function

  • parm_dict – dictionary with plotting parameters

plot_deviation(basename, caller, parm_dict)[source]

Plot deviation map(s) :param basename: basename for the plot(s), the prefix ‘deviation_{original|corrections|residuals}’ will be added

to it/them

Parameters:
  • caller – Which mds called this plotting function

  • parm_dict – dictionary with plotting parameters

plot_screw_adjustments(filename, parm_dict)[source]

Plot screw adjustments as circles over a blank canvas with the panel layout :param filename: Name of the output filename for the plot :param parm_dict: Dictionary with plotting parameters

export_screws(filename, unit='mm', comment_char='#')[source]

Export screw adjustments for all panels onto an ASCII file :param filename: ASCII file name/path :param unit: unit for panel screw adjustments [‘mm’,’miliinches’] :param comment_char: Character used for comments

export_xds()[source]

Export all the data to Xarray dataset :returns: XarrayDataSet containing all the relevant information

export_to_fits(basename)[source]
Data to export: Amplitude, mask, phase, phase_corrections, phase_residuals, deviations, deviation_corrections,

deviation_residuals

conveniently all data are on the same grid! Returns: