casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::SDDoubleCircleGainCalImpl Class Reference

#include <SDDoubleCircleGainCalImpl.h>

Public Member Functions

 SDDoubleCircleGainCalImpl ()
 
virtual ~SDDoubleCircleGainCalImpl ()
 
casacore::Double getCentralRegion () const
 getter get size of the central region in radian More...
 
casacore::Bool isSmoothingActive () const
 
casacore::Int getSmoothingSize () const
 get smoothing size More...
 
casacore::Double getObservingFrequency () const
 get observing frequency in Hz More...
 
casacore::Double getAntennaDiameter () const
 get antenna diameter in meter More...
 
casacore::Double getPrimaryBeamSize () const
 primvary beam size in radian More...
 
casacore::Int getDefaultSmoothingSize () const
 default smoothing size More...
 
casacore::Double getRadius ()
 get radius of the central region in radian More...
 
casacore::Int getEffectiveSmoothingSize ()
 get effective smoothing size More...
 
void setCentralRegion (casacore::Double value)
 setter set radius of the central region in radian More...
 
void setSmoothing (casacore::Int size)
 activate smoothing and set smoothing size More...
 
void unsetSmoothing ()
 deactivate smoothing More...
 
void setObservingFrequency (casacore::Double value)
 set observing frequency in Hz More...
 
void setAntennaDiameter (casacore::Double value)
 set antenna diameter in meter More...
 
void calibrate (casacore::Cube< casacore::Float > const &data, casacore::Vector< casacore::Double > const &time, casacore::Matrix< casacore::Double > const &direction, casacore::Vector< casacore::Double > &gain_time, casacore::Cube< casacore::Float > &gain)
 gain calibration based on Stephen White's IDL script More...
 
void calibrate (casacore::Cube< casacore::Float > const &data, casacore::Cube< casacore::Bool > const &flag, casacore::Vector< casacore::Double > const &time, casacore::Matrix< casacore::Double > const &direction, casacore::Vector< casacore::Double > &gain_time, casacore::Cube< casacore::Float > &gain, casacore::Cube< casacore::Bool > &gain_flag)
 subspecies that take into account flag (false: valid, true: invalid) More...
 
void doCalibrate (casacore::Vector< casacore::Double > &gain_time, casacore::Cube< casacore::Float > &gain, casacore::Cube< casacore::Bool > &gain_flag)
 gain calibration implementation More...
 
bool findTimeRange (casacore::Vector< casacore::Double > const &time, casacore::Vector< casacore::Double > const &interval, casacore::Matrix< casacore::Double > const &direction, TimeRangeList &timerange)
 find time range that observed central region More...
 

Private Member Functions

void findDataWithinRadius (casacore::Double const radius, casacore::Vector< casacore::Double > const &time, casacore::Cube< casacore::Float > const &data, casacore::Matrix< casacore::Double > const &direction, casacore::Vector< casacore::Double > &gain_time, casacore::Cube< casacore::Float > &gain)
 find data within radius More...
 
void findDataWithinRadius (casacore::Double const radius, casacore::Vector< casacore::Double > const &time, casacore::Cube< casacore::Float > const &data, casacore::Cube< casacore::Bool > const &flag, casacore::Matrix< casacore::Double > const &direction, casacore::Vector< casacore::Double > &gain_time, casacore::Cube< casacore::Float > &gain, casacore::Cube< casacore::Bool > &gain_flag)
 

Private Attributes

casacore::Double central_region_
 apply gain factor void apply(casacore::Vector<casacore::Double> const &gain_time, casacore::Cube<casacore::Float> const &gain, casacore::Vector<casacore::Double> const &time, casacore::Cube<casacore::Float> &data); More...
 
casacore::Bool do_smooth_
 flag for smoothing More...
 
casacore::Int smooth_size_
 smoothing size More...
 
casacore::Double observing_frequency_
 parameter for primary beam size determination observing frequency [Hz] More...
 
casacore::Double antenna_diameter_
 antenna diameter [m] More...
 
casacore::LogIO logger_
 logger More...
 

Detailed Description

Definition at line 70 of file SDDoubleCircleGainCalImpl.h.

Constructor & Destructor Documentation

casa::SDDoubleCircleGainCalImpl::SDDoubleCircleGainCalImpl ( )
virtual casa::SDDoubleCircleGainCalImpl::~SDDoubleCircleGainCalImpl ( )
virtual

Member Function Documentation

void casa::SDDoubleCircleGainCalImpl::calibrate ( casacore::Cube< casacore::Float > const &  data,
casacore::Vector< casacore::Double > const &  time,
casacore::Matrix< casacore::Double > const &  direction,
casacore::Vector< casacore::Double > &  gain_time,
casacore::Cube< casacore::Float > &  gain 
)

gain calibration based on Stephen White's IDL script

void casa::SDDoubleCircleGainCalImpl::calibrate ( casacore::Cube< casacore::Float > const &  data,
casacore::Cube< casacore::Bool > const &  flag,
casacore::Vector< casacore::Double > const &  time,
casacore::Matrix< casacore::Double > const &  direction,
casacore::Vector< casacore::Double > &  gain_time,
casacore::Cube< casacore::Float > &  gain,
casacore::Cube< casacore::Bool > &  gain_flag 
)

subspecies that take into account flag (false: valid, true: invalid)

void casa::SDDoubleCircleGainCalImpl::doCalibrate ( casacore::Vector< casacore::Double > &  gain_time,
casacore::Cube< casacore::Float > &  gain,
casacore::Cube< casacore::Bool > &  gain_flag 
)

gain calibration implementation

void casa::SDDoubleCircleGainCalImpl::findDataWithinRadius ( casacore::Double const  radius,
casacore::Vector< casacore::Double > const &  time,
casacore::Cube< casacore::Float > const &  data,
casacore::Matrix< casacore::Double > const &  direction,
casacore::Vector< casacore::Double > &  gain_time,
casacore::Cube< casacore::Float > &  gain 
)
private

find data within radius

void casa::SDDoubleCircleGainCalImpl::findDataWithinRadius ( casacore::Double const  radius,
casacore::Vector< casacore::Double > const &  time,
casacore::Cube< casacore::Float > const &  data,
casacore::Cube< casacore::Bool > const &  flag,
casacore::Matrix< casacore::Double > const &  direction,
casacore::Vector< casacore::Double > &  gain_time,
casacore::Cube< casacore::Float > &  gain,
casacore::Cube< casacore::Bool > &  gain_flag 
)
private
bool casa::SDDoubleCircleGainCalImpl::findTimeRange ( casacore::Vector< casacore::Double > const &  time,
casacore::Vector< casacore::Double > const &  interval,
casacore::Matrix< casacore::Double > const &  direction,
TimeRangeList timerange 
)

find time range that observed central region

casacore::Double casa::SDDoubleCircleGainCalImpl::getAntennaDiameter ( ) const
inline

get antenna diameter in meter

Definition at line 92 of file SDDoubleCircleGainCalImpl.h.

References antenna_diameter_.

casacore::Double casa::SDDoubleCircleGainCalImpl::getCentralRegion ( ) const
inline

getter get size of the central region in radian

Definition at line 77 of file SDDoubleCircleGainCalImpl.h.

References central_region_.

casacore::Int casa::SDDoubleCircleGainCalImpl::getDefaultSmoothingSize ( ) const

default smoothing size

casacore::Int casa::SDDoubleCircleGainCalImpl::getEffectiveSmoothingSize ( )

get effective smoothing size

casacore::Double casa::SDDoubleCircleGainCalImpl::getObservingFrequency ( ) const
inline

get observing frequency in Hz

Definition at line 88 of file SDDoubleCircleGainCalImpl.h.

References observing_frequency_.

casacore::Double casa::SDDoubleCircleGainCalImpl::getPrimaryBeamSize ( ) const

primvary beam size in radian

casacore::Double casa::SDDoubleCircleGainCalImpl::getRadius ( )

get radius of the central region in radian

casacore::Int casa::SDDoubleCircleGainCalImpl::getSmoothingSize ( ) const
inline

get smoothing size

Definition at line 84 of file SDDoubleCircleGainCalImpl.h.

References smooth_size_.

casacore::Bool casa::SDDoubleCircleGainCalImpl::isSmoothingActive ( ) const
inline

Definition at line 80 of file SDDoubleCircleGainCalImpl.h.

References do_smooth_.

void casa::SDDoubleCircleGainCalImpl::setAntennaDiameter ( casacore::Double  value)
inline

set antenna diameter in meter

Definition at line 132 of file SDDoubleCircleGainCalImpl.h.

References antenna_diameter_, and casacore::value().

void casa::SDDoubleCircleGainCalImpl::setCentralRegion ( casacore::Double  value)
inline

setter set radius of the central region in radian

Definition at line 110 of file SDDoubleCircleGainCalImpl.h.

References central_region_, and casacore::value().

void casa::SDDoubleCircleGainCalImpl::setObservingFrequency ( casacore::Double  value)
inline

set observing frequency in Hz

Definition at line 127 of file SDDoubleCircleGainCalImpl.h.

References observing_frequency_, and casacore::value().

void casa::SDDoubleCircleGainCalImpl::setSmoothing ( casacore::Int  size)
inline

activate smoothing and set smoothing size

Definition at line 115 of file SDDoubleCircleGainCalImpl.h.

References do_smooth_, casa::vi::size(), and smooth_size_.

void casa::SDDoubleCircleGainCalImpl::unsetSmoothing ( )
inline

deactivate smoothing

Definition at line 121 of file SDDoubleCircleGainCalImpl.h.

References do_smooth_, and smooth_size_.

Member Data Documentation

casacore::Double casa::SDDoubleCircleGainCalImpl::antenna_diameter_
private

antenna diameter [m]

Definition at line 184 of file SDDoubleCircleGainCalImpl.h.

Referenced by getAntennaDiameter(), and setAntennaDiameter().

casacore::Double casa::SDDoubleCircleGainCalImpl::central_region_
private

apply gain factor void apply(casacore::Vector<casacore::Double> const &gain_time, casacore::Cube<casacore::Float> const &gain, casacore::Vector<casacore::Double> const &time, casacore::Cube<casacore::Float> &data);

radius of the central region [rad]

Definition at line 171 of file SDDoubleCircleGainCalImpl.h.

Referenced by getCentralRegion(), and setCentralRegion().

casacore::Bool casa::SDDoubleCircleGainCalImpl::do_smooth_
private

flag for smoothing

Definition at line 174 of file SDDoubleCircleGainCalImpl.h.

Referenced by isSmoothingActive(), setSmoothing(), and unsetSmoothing().

casacore::LogIO casa::SDDoubleCircleGainCalImpl::logger_
private

logger

Definition at line 187 of file SDDoubleCircleGainCalImpl.h.

casacore::Double casa::SDDoubleCircleGainCalImpl::observing_frequency_
private

parameter for primary beam size determination observing frequency [Hz]

Definition at line 181 of file SDDoubleCircleGainCalImpl.h.

Referenced by getObservingFrequency(), and setObservingFrequency().

casacore::Int casa::SDDoubleCircleGainCalImpl::smooth_size_
private

smoothing size

Definition at line 177 of file SDDoubleCircleGainCalImpl.h.

Referenced by getSmoothingSize(), setSmoothing(), and unsetSmoothing().


The documentation for this class was generated from the following file: