Class MetaData¶
Defined in File MetaData.h
Inheritance Relationships¶
Derived Type¶
public icrar::cuda::HostMetaData
(Class HostMetaData)
Class Documentation¶
-
class
icrar::cpu
::
MetaData
¶ container of phaserotation constants and variables for calibrating a single beam. Can be mutated to calibrate for multiple directions.
Subclassed by icrar::cuda::HostMetaData
Public Functions
-
MetaData
(const icrar::MeasurementSet &ms, boost::optional<unsigned int> refAnt = boost::none, double minimumBaselineThreshold = 0.0, bool computeInverse = true, bool useCache = true)¶ Construct a new MetaData object. SetUVW() and SetDirection() must be called after construction.
- Parameters
ms
:minimumBaselineThreshold
:useCache
:
-
MetaData
(const icrar::MeasurementSet &ms, const std::vector<icrar::MVuvw> &uvws, boost::optional<unsigned int> refAnt = boost::none, double minimumBaselineThreshold = 0.0, bool computeInverse = true, bool useCache = true)¶ Construct a new MetaData object. SetDirection() must be called after construction.
- Parameters
ms
: measurement set to read observations fromuvws
: uvw coordinates of stationsrefAnt
: the reference antenna index, default is the last indexminimumBaselineThreshold
: baseline lengths less that the minimum in meters are flaggeduseCache
: whether to load Ad matrix from cache
-
MetaData
(const icrar::MeasurementSet &ms, const SphericalDirection &direction, const std::vector<icrar::MVuvw> &uvws, boost::optional<unsigned int> refAnt = boost::none, double minimumBaselineThreshold = 0.0, bool computeInverse = true, bool useCache = true)¶ Construct a new MetaData object.
- Parameters
ms
: measurement set to read observations fromdirection
: the direction of the beam to calibrate foruvws
: uvw coordinates of stationsrefAnt
: the reference antenna index, default is the last indexminimumBaselineThreshold
: baseline lengths less that the minimum in meters are flaggeduseCache
: whether to load Ad matrix from cache
-
const Eigen::VectorXi &
GetI
() const¶ Vector of indexes of the stations that are not flagged, shape [stations].
-
Eigen::MatrixXd &
GetAd
()¶ Gets a mutable reference to Ad. Host references may need to reregister after resize.
-
const Eigen::MatrixXd &
GetA1
() const¶ Matrix of baselines using the reference antenna of shape [stations+1, stations] the last row represents the reference antenna.
-
Eigen::MatrixXd &
GetAd1
()¶ Gets a mutable reference to Ad1. Host references may need to reregister after resize.
-
const SphericalDirection &
GetDirection
() const¶
-
void
SetDirection
(const SphericalDirection &direction)¶
-
void
ComputeInverse
()¶ Computes the A and A1 inverse matrices.
-
void
ValidateInverse
() const¶ Output logs on the validity of inverse matrices.
-
Eigen::Matrix3d
GenerateDDMatrix
(const SphericalDirection &direction) const¶ Utility method to generate a direction matrix using the configured zenith direction.
- Return
Eigen::Matrix3d
- Parameters
direction
:
Protected Attributes
-
double
m_minimumBaselineThreshold
¶
-
bool
m_useCache
¶
-
SphericalDirection
m_direction
¶
Friends
- friend class icrar::cuda::DeviceMetaData
- friend class icrar::cuda::ConstantBuffer
-