HOPS
HOPS class reference
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
hops::MHO_EstimatePCManual Class Reference

Class MHO_EstimatePCManual. More...

#include <MHO_EstimatePCManual.hh>

Inheritance diagram for hops::MHO_EstimatePCManual:
[legend]

Public Member Functions

 MHO_EstimatePCManual ()
 
virtual ~MHO_EstimatePCManual ()
 
void SetParameterStore (MHO_ParameterStore *paramStore)
 Setter for parameter store. More...
 
void SetPhasors (phasor_type *phasors)
 Setter for visibility channel phasors. More...
 
void SetPlotData (mho_json &plot_data)
 Setter for plot data. More...
 
void SetWeights (const weight_type *weights)
 Setter for weights. More...
 
- Public Member Functions inherited from hops::MHO_InspectingOperator< visibility_type >
 MHO_InspectingOperator ()
 
virtual ~MHO_InspectingOperator ()
 
virtual bool Execute () override
 Executes the inspection on the input array. More...
 
virtual bool Initialize () override
 initializes inspection for a single const array of type XArgType. More...
 
virtual void SetArgs (const visibility_type *in)
 Setter for args. More...
 
- Public Member Functions inherited from hops::MHO_Operator
 MHO_Operator ()
 
virtual ~MHO_Operator ()
 
std::string GetName () const
 Getter for operator name. More...
 
double Priority () const
 Get the the priority field value. More...
 
void SetName (std::string name)
 Setter for operator name. More...
 
void SetPriority (double priority)
 Setter for operator priority (determines order of execution within a operator category) More...
 

Protected Member Functions

void adj_delays (double sbd_max, double *sbd, double *esd, double delta_delay, int first, int final, int is_ref, int how)
 Adjusts delays for Single Band Delay (SBD) and Effective Single Band Delay (ESBD) arrays based on given parameters. More...
 
void est_delays (int is_ref, int how)
 Calculates and adjusts delays for fringe estimation based on reference station and delay modes. More...
 
void est_offset (int is_ref)
 Calculates export overall phase offset (pc_phase_offset_?) More...
 
void est_pc_manual (int mode)
 executes estimation of manual phase (and/or delay) corrections More...
 
void est_phases (int is_ref, int keep)
 Estimates phases for reference or remote station with optional phase bias and displays messages. More...
 
virtual bool ExecuteImpl (const visibility_type *in) override
 Executes manual PC estimation using input visibility data. More...
 
void fill_sbd (std::vector< std::string > &ch_labels, std::vector< double > &sbd)
 
double get_manual_delayoff (int is_remote, int channel_idx, std::string pol)
 Calculates and returns manual delay offset for a given channel and polarization. More...
 
double get_manual_phasecal (int is_remote, int channel_idx, std::string pol)
 Calculates and returns manual phase calibration for a given channel and polarization. More...
 
virtual bool InitializeImpl (const visibility_type *in) override
 Initializes implementation using input visibility type. More...
 
void masthead (int mode, std::string root_file, int first_ch, int final_ch)
 

Protected Attributes

std::map< std::string, int > fChannelLabel2Index
 
std::map< int, std::string > fIndex2ChannelLabel
 
MHO_ParameterStorefParameterStore
 
phasor_typefPhasors
 
MHO_ParameterStore fPlotData
 
std::string fRefStationMk4ID
 
std::string fRefStationPol
 
std::string fRemStationMk4ID
 
std::string fRemStationPol
 
const visibility_typefVisibilities
 
const weight_typefWeights
 
- Protected Attributes inherited from hops::MHO_InspectingOperator< visibility_type >
const visibility_typefArg
 

Detailed Description

Class MHO_EstimatePCManual.

Author
J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
Date
Wed May 29 03:40:50 PM EDT 2024

Constructor & Destructor Documentation

◆ MHO_EstimatePCManual()

hops::MHO_EstimatePCManual::MHO_EstimatePCManual ( )

◆ ~MHO_EstimatePCManual()

hops::MHO_EstimatePCManual::~MHO_EstimatePCManual ( )
virtual

Member Function Documentation

◆ adj_delays()

void hops::MHO_EstimatePCManual::adj_delays ( double  sbd_max,
double *  sbd,
double *  esd,
double  delta_delay,
int  first,
int  final,
int  is_ref,
int  how 
)
protected

Adjusts delays for Single Band Delay (SBD) and Effective Single Band Delay (ESBD) arrays based on given parameters.

Parameters
sbd_maxMaximum delay value for SBD
sbdArray of Single Band Delay values
esdArray of Effective Single Band Delay values
delta_delayDelay adjustment factor
firstStarting index for delay adjustment
finalEnding index for delay adjustment
is_ref(station) reference flag for delay adjustment
howMethod flag for delay adjustment @detail This routine adjusts delays according to the method specified in 'how': 0x02: use median channel SBD 0x04: average channel SBD 0x08: use total SBD channel 0x10: use original SBD values 0x20: use heuristics to discard outliers

◆ est_delays()

void hops::MHO_EstimatePCManual::est_delays ( int  is_ref,
int  how 
)
protected

Calculates and adjusts delays for fringe estimation based on reference station and delay modes.

Parameters
is_refFlag indicating whether to use reference station (true) or remote station (false).
howBitmask specifying delay calculation method (see adj_delays() )

◆ est_offset()

void hops::MHO_EstimatePCManual::est_offset ( int  is_ref)
protected

Calculates export overall phase offset (pc_phase_offset_?)

Parameters
is_refFlag indicating whether to use reference or remote station.

◆ est_pc_manual()

void hops::MHO_EstimatePCManual::est_pc_manual ( int  mode)
protected

executes estimation of manual phase (and/or delay) corrections

Parameters
modeMode dictating estimation method

◆ est_phases()

void hops::MHO_EstimatePCManual::est_phases ( int  is_ref,
int  keep 
)
protected

Estimates phases for reference or remote station with optional phase bias and displays messages.

Parameters
is_refFlag indicating whether to estimate phases on reference (true) or remote station (false)
keepFlag indicating whether to keep phase bias

◆ ExecuteImpl()

bool hops::MHO_EstimatePCManual::ExecuteImpl ( const visibility_type in)
overrideprotectedvirtual

Executes manual PC estimation using input visibility data.

Parameters
inInput visibility_type pointer containing visibility data.
Returns
Always returns true.
Note
This is a virtual function.

Implements hops::MHO_InspectingOperator< visibility_type >.

◆ fill_sbd()

void hops::MHO_EstimatePCManual::fill_sbd ( std::vector< std::string > &  ch_labels,
std::vector< double > &  sbd 
)
protected

◆ get_manual_delayoff()

double hops::MHO_EstimatePCManual::get_manual_delayoff ( int  is_remote,
int  channel_idx,
std::string  pol 
)
protected

Calculates and returns manual delay offset for a given channel and polarization.

Parameters
is_remoteFlag indicating whether the current station is the remote station (true) or reference station (false).
channel_idxIndex of the channel for which to calculate the phase calibration.
polPolarization string ('L' or 'R', 'X' or 'Y')
Returns
Calculated manual delay offset as a double.

◆ get_manual_phasecal()

double hops::MHO_EstimatePCManual::get_manual_phasecal ( int  is_remote,
int  channel_idx,
std::string  pol 
)
protected

Calculates and returns manual phase calibration for a given channel and polarization.

Parameters
is_remoteFlag indicating whether the current station is the remote station (true) or reference station (false).
channel_idxIndex of the channel for which to calculate the phase calibration.
polPolarization string ('L' or 'R', 'X' or 'Y')
Returns
Calculated manual phase calibration in degrees.

◆ InitializeImpl()

virtual bool hops::MHO_EstimatePCManual::InitializeImpl ( const visibility_type in)
inlineoverrideprotectedvirtual

Initializes implementation using input visibility type.

Parameters
inInput visibility_type pointer for initialization
Returns
Boolean indicating successful initialization
Note
This is a virtual function.

Implements hops::MHO_InspectingOperator< visibility_type >.

◆ masthead()

void hops::MHO_EstimatePCManual::masthead ( int  mode,
std::string  root_file,
int  first_ch,
int  final_ch 
)
protected

◆ SetParameterStore()

void hops::MHO_EstimatePCManual::SetParameterStore ( MHO_ParameterStore paramStore)
inline

Setter for parameter store.

Parameters
paramStorePointer to MHO_ParameterStore object

◆ SetPhasors()

void hops::MHO_EstimatePCManual::SetPhasors ( phasor_type phasors)
inline

Setter for visibility channel phasors.

Parameters
phasorsInput phasors of type phasor_type

◆ SetPlotData()

void hops::MHO_EstimatePCManual::SetPlotData ( mho_json plot_data)
inline

Setter for plot data.

Parameters
plot_dataReference to an mho_json object containing plot data.

◆ SetWeights()

void hops::MHO_EstimatePCManual::SetWeights ( const weight_type weights)
inline

Setter for weights.

Parameters
weightsInput weights of type const weight_type*

Member Data Documentation

◆ fChannelLabel2Index

std::map< std::string, int > hops::MHO_EstimatePCManual::fChannelLabel2Index
protected

◆ fIndex2ChannelLabel

std::map< int, std::string > hops::MHO_EstimatePCManual::fIndex2ChannelLabel
protected

◆ fParameterStore

MHO_ParameterStore* hops::MHO_EstimatePCManual::fParameterStore
protected

◆ fPhasors

phasor_type* hops::MHO_EstimatePCManual::fPhasors
protected

◆ fPlotData

MHO_ParameterStore hops::MHO_EstimatePCManual::fPlotData
protected

◆ fRefStationMk4ID

std::string hops::MHO_EstimatePCManual::fRefStationMk4ID
protected

◆ fRefStationPol

std::string hops::MHO_EstimatePCManual::fRefStationPol
protected

◆ fRemStationMk4ID

std::string hops::MHO_EstimatePCManual::fRemStationMk4ID
protected

◆ fRemStationPol

std::string hops::MHO_EstimatePCManual::fRemStationPol
protected

◆ fVisibilities

const visibility_type* hops::MHO_EstimatePCManual::fVisibilities
protected

◆ fWeights

const weight_type* hops::MHO_EstimatePCManual::fWeights
protected

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