BoresightScan

class Data_Reduction.GAVRT.BoresightScan(parent, xpwr_cfg_id)

Bases: Data_Reduction.GAVRT.Observation

class for a single scan during a boresight

Attrs:

axis - direction of the scan bs_data - scan data (time, positions and Tsys) from ‘xpwr’ table cal_flux - flux of the calibrator source cal_src - source used to set the flux scale chan - channel used for the boresight by EAC program ‘xant’ data - scan data (time, positions and Tsys) from ‘tlog’ table diode - state of the noise diode epoch - UNIX time start of scan freq - frequency xant used to fit ‘xpwr’ data, in MHz IFbw - IF band width in MHz IFmode - IF phasing logger - logging.Logger object log_data - data from ‘tlog’ table name - identifier string based on xpwr_cfg_id pol - channel polarization session - parent Session object source - name of scanned source

Methods Summary

fit_gaussian(channel[, beam_limit])

Fit the scan to a Gaussian and a baseline

Methods Documentation

fit_gaussian(channel, beam_limit=2.5)

Fit the scan to a Gaussian and a baseline

Extract the appropriate data:

For raster scans, 'xdec' means that 'xdec' stays fixed while the
antenna moves up and down; 'dec' means that 'dec' stays fixed while the
left and right.

The Gaussian is assumed to fit the inner five beamwidths of the data, though that limit can be adjusted. The baseline is the rest of the data, although the lower baseline includes at least data[:5] and the upper baseline includes data[-5:]

:param channel : channel whose data will be fit (required) :type channel : int

:param beam_limit : distance from the center included in Gaussian fit :type beam_limit : float