casa
$Rev:20696$
|
Class for baseline-based metadata objects, one type of component in SDM data objects. More...
#include <BaselineMetadata.h>
Public Member Functions | |
int | numValue () |
Total (cross+auto) number of metadata values. | |
virtual int | numAnt ()=0 |
Accessor to a generic number of antennas Specifities are defined in the derived classes. | |
virtual int | actualNumAnt ()=0 |
Accessor to an actual number of antennas Specifities are defined in the derived classes. | |
int | numBaseline () |
Accessor to the number of baselines. | |
int | numBaseband () |
Accessor to the number of basebands. | |
int | numPolProduct (int basebandNum) throw (Error) |
Accessor to the number of polarization products of a given baseband. | |
vector< int > | numPolProduct () |
Accessor to the number of polarization products. | |
int | numBin (int basebandNum) throw (Error) |
Accessor to the number of bins (steps or phases in scwitching cycles) for a given baseband. | |
vector< int > | numBin () |
Accessor to the number of bins (steps or phases in scwitching cycles) for each baseband. | |
int | correlationMode () |
Accessor to the correlation mode. | |
int | numAutoPolProduct (int basebandNum) throw (Error) |
Accessor to the (derived) number of polarization products for the zero baselines for a given baseband. | |
vector< int > | numAutoPolProduct () |
Accessor to the (derived) number of polarization products for the zero baselines for all the basebands. | |
virtual vector< int > | antennaIndexUsed (unsigned long int valLimit)=0 |
Method to get the list of the antenna indices restricted to those which are not flagged above a certain critical limit in all baseband. | |
int | baselineNum (int anti, int antj) throw (Error) |
Baseline number (one-based) given a pair of antenna indices. | |
int | at (int npp, int nbin, int nbb, int i, int j) |
Index in a container of baseline-based metadata given a node specified by a full set of indices of the parameter space. | |
vector< int > | at (int npp, int nbb, int i, int j) |
Set of indices, one per polarization product, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space. | |
vector< int > | at (int npp, int nbin, int nbb) |
Set of indices, one per non-zero basleine, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space. | |
vector< vector< int > > | at (int nbin, int nbb) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space. | |
vector< vector< vector< int > > > | at (bool cross, int i) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space. | |
int | numValue () |
Total (cross+auto) number of metadata values. | |
virtual int | numAnt ()=0 |
Accessor to a generic number of antennas Specifities are defined in the derived classes. | |
virtual int | actualNumAnt ()=0 |
Accessor to an actual number of antennas Specifities are defined in the derived classes. | |
int | numBaseline () |
Accessor to the number of baselines. | |
int | numBaseband () |
Accessor to the number of basebands. | |
int | numPolProduct (int basebandNum) throw (Error) |
Accessor to the number of polarization products of a given baseband. | |
vector< int > | numPolProduct () |
Accessor to the number of polarization products. | |
int | numBin (int basebandNum) throw (Error) |
Accessor to the number of bins (steps or phases in scwitching cycles) for a given baseband. | |
vector< int > | numBin () |
Accessor to the number of bins (steps or phases in scwitching cycles) for each baseband. | |
int | correlationMode () |
Accessor to the correlation mode. | |
int | numAutoPolProduct (int basebandNum) throw (Error) |
Accessor to the (derived) number of polarization products for the zero baselines for a given baseband. | |
vector< int > | numAutoPolProduct () |
Accessor to the (derived) number of polarization products for the zero baselines for all the basebands. | |
virtual vector< int > | antennaIndexUsed (unsigned long int valLimit)=0 |
Method to get the list of the antenna indices restricted to those which are not flagged above a certain critical limit in all baseband. | |
int | baselineNum (int anti, int antj) throw (Error) |
Baseline number (one-based) given a pair of antenna indices. | |
int | at (int npp, int nbin, int nbb, int i, int j) |
Index in a container of baseline-based metadata given a node specified by a full set of indices of the parameter space. | |
vector< int > | at (int npp, int nbb, int i, int j) |
Set of indices, one per polarization product, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space. | |
vector< int > | at (int npp, int nbin, int nbb) |
Set of indices, one per non-zero basleine, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space. | |
vector< vector< int > > | at (int nbin, int nbb) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space. | |
vector< vector< vector< int > > > | at (bool cross, int i) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space. | |
Static Public Attributes | |
static int | FLAGLIMIT |
Protected Member Functions | |
BaselineMetadata () | |
Default constructor. | |
virtual | ~BaselineMetadata () |
Virtual destructor. | |
void | mkBaselineMetadata (vector< int > v_npp, vector< int > v_nbin, int nbb, int nant, int correlationMode) |
Method to instantiate the base of the hierarchy. | |
bool | wrongBasebandNum (int basebandNum) |
Utility to access the validity of an input basebandNum. | |
bool | notFor (bool interfero) |
Utility method to check that a query is relevant or not for interferometric data. | |
bool | wrongAntennaIndex (int antIndex) |
Utility method to check that the input value of antenna index in a query is valid or not. | |
bool | wrongBasebandIndex (int bbIndex) |
Utility method to check that the input baseband index value in a query is valid or not. | |
bool | wrongPolProductIndex (int ppIndex, int bbIndex, int antIndex_i, int antIndex_j) |
Utility method to check that the input set of index values in a query is valid or not. | |
virtual void | display ()=0 |
Common part shared by the derived classes for summary information Display, for each baseband sizes (i.e. | |
BaselineMetadata () | |
Default constructor. | |
virtual | ~BaselineMetadata () |
Virtual destructor. | |
void | mkBaselineMetadata (vector< int > v_npp, vector< int > v_nbin, int nbb, int nant, int correlationMode) |
Method to instantiate the base of the hierarchy. | |
bool | wrongBasebandNum (int basebandNum) |
Utility to access the validity of an input basebandNum. | |
bool | notFor (bool interfero) |
Utility method to check that a query is relevant or not for interferometric data. | |
bool | wrongAntennaIndex (int antIndex) |
Utility method to check that the input value of antenna index in a query is valid or not. | |
bool | wrongBasebandIndex (int bbIndex) |
Utility method to check that the input baseband index value in a query is valid or not. | |
bool | wrongPolProductIndex (int ppIndex, int bbIndex, int antIndex_i, int antIndex_j) |
Utility method to check that the input set of index values in a query is valid or not. | |
virtual void | display ()=0 |
Common part shared by the derived classes for summary information Display, for each baseband sizes (i.e. | |
Protected Attributes | |
vector< int > | v_numPolProduct_ |
Number of cross polarization products for every baseband. | |
vector< int > | v_numBin_ |
Number of phases in SwitchCycles for every baseband. | |
int | numBaseband_ |
Number of basebands. | |
int | numAnt_ |
Number of antennas. | |
int | numBaseline_ |
Number of baselines. | |
int | autoSize_ |
Number of metadata values for all the zero baselines (second part in size formula) | |
int | crossSize_ |
Number of metadata values for all the non-zero baselines (first part in size formula) | |
int | correlationMode_ |
Correlation mode. | |
vector< int > | v_numAutoPolProduct_ |
Number of auto polarization products for every baseband. | |
Private Member Functions | |
void | sizes () |
Method to get the size (in number of typed values). | |
void | sizes () |
Method to get the size (in number of typed values). | |
Private Attributes | |
int | numValPerBaseline_ |
Number of metadata values per non-zero baseline (first sum in size formula) | |
int | numValPerZeroBaseline_ |
Number of metadata values per zero baseline (second sum in size formula) |
Class for baseline-based metadata objects, one type of component in SDM data objects.
There are three baseline-based metadata in these objects, the flags, the actual times (the mid-point) and the actual durations. Sharing the same type of tree structure they derive from this BaselineMetadata virtual class, the common base.
An example of how to Access to the baseline-based metadata is given in a test program which uses methods defined in this base but also other methods which are extensions defined in the BaselineFlagsMetada and the ActualTimeDurations classes.
Definition at line 14 of file BaselineMetadata.h.
sdmbin::BaselineMetadata::BaselineMetadata | ( | ) | [protected] |
Default constructor.
virtual sdmbin::BaselineMetadata::~BaselineMetadata | ( | ) | [protected, virtual] |
Virtual destructor.
sdmbin::BaselineMetadata::BaselineMetadata | ( | ) | [protected] |
Default constructor.
virtual sdmbin::BaselineMetadata::~BaselineMetadata | ( | ) | [protected, virtual] |
Virtual destructor.
virtual int sdmbin::BaselineMetadata::actualNumAnt | ( | ) | [pure virtual] |
Accessor to an actual number of antennas Specifities are defined in the derived classes.
virtual int sdmbin::BaselineMetadata::actualNumAnt | ( | ) | [pure virtual] |
Accessor to an actual number of antennas Specifities are defined in the derived classes.
virtual vector<int> sdmbin::BaselineMetadata::antennaIndexUsed | ( | unsigned long int | valLimit | ) | [pure virtual] |
Method to get the list of the antenna indices restricted to those which are not flagged above a certain critical limit in all baseband.
valLimit | critical flagging limit |
virtual vector<int> sdmbin::BaselineMetadata::antennaIndexUsed | ( | unsigned long int | valLimit | ) | [pure virtual] |
Method to get the list of the antenna indices restricted to those which are not flagged above a certain critical limit in all baseband.
valLimit | critical flagging limit |
int sdmbin::BaselineMetadata::at | ( | int | npp, |
int | nbin, | ||
int | nbb, | ||
int | i, | ||
int | j | ||
) |
Index in a container of baseline-based metadata given a node specified by a full set of indices of the parameter space.
npp | polarization product index |
nbin | bin index (always 0 when there is no switching mode used) |
nbb | baseband index |
i | antenna index i |
j | antenna index j (if i=j this means a zero-baseline) |
int sdmbin::BaselineMetadata::at | ( | int | npp, |
int | nbin, | ||
int | nbb, | ||
int | i, | ||
int | j | ||
) |
Index in a container of baseline-based metadata given a node specified by a full set of indices of the parameter space.
npp | polarization product index |
nbin | bin index (always 0 when there is no switching mode used) |
nbb | baseband index |
i | antenna index i |
j | antenna index j (if i=j this means a zero-baseline) |
vector<int> sdmbin::BaselineMetadata::at | ( | int | npp, |
int | nbb, | ||
int | i, | ||
int | j | ||
) |
Set of indices, one per polarization product, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space.
npp | polarization product index |
nbb | baseband index |
i | antenna index i |
j | antenna index j (if i=j this means a zero-baseline) |
vector<int> sdmbin::BaselineMetadata::at | ( | int | npp, |
int | nbb, | ||
int | i, | ||
int | j | ||
) |
Set of indices, one per polarization product, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space.
npp | polarization product index |
nbb | baseband index |
i | antenna index i |
j | antenna index j (if i=j this means a zero-baseline) |
vector<int> sdmbin::BaselineMetadata::at | ( | int | npp, |
int | nbin, | ||
int | nbb | ||
) |
Set of indices, one per non-zero basleine, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space.
npp | polarization product index |
nbin | bin index (always 0 when there is no switching mode used) |
nbb | baseband index |
vector<int> sdmbin::BaselineMetadata::at | ( | int | npp, |
int | nbin, | ||
int | nbb | ||
) |
Set of indices, one per non-zero basleine, in a container of baseline-based metadata given a set of nodes specified by a subset of indices of the parameter space.
npp | polarization product index |
nbin | bin index (always 0 when there is no switching mode used) |
nbb | baseband index |
vector<vector<int> > sdmbin::BaselineMetadata::at | ( | int | nbin, |
int | nbb | ||
) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space.
nbin | bin index (always 0 when there is no switching mode used) |
nbb | baseband index |
vector<vector<int> > sdmbin::BaselineMetadata::at | ( | int | nbin, |
int | nbb | ||
) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space.
nbin | bin index (always 0 when there is no switching mode used) |
nbb | baseband index |
vector<vector<vector<int> > > sdmbin::BaselineMetadata::at | ( | bool | cross, |
int | i | ||
) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space.
cross | true to select the indices for the non-zero baselines, else false for the zero baselines |
i | antenna index i to select all baselines involving this antenna of index i |
vector<vector<vector<int> > > sdmbin::BaselineMetadata::at | ( | bool | cross, |
int | i | ||
) |
Set of indices in a container of baseline-based metadata given a set of nodes node specified by a subset of indices of the parameter space.
cross | true to select the indices for the non-zero baselines, else false for the zero baselines |
i | antenna index i to select all baselines involving this antenna of index i |
int sdmbin::BaselineMetadata::baselineNum | ( | int | anti, |
int | antj | ||
) | throw (Error) |
Baseline number (one-based) given a pair of antenna indices.
anti | index (zero-based) for antenna i |
antj | index (zero-based) for antenna i |
Error | the indices anti and/or antj exceed the limit for the number of baselines. |
int sdmbin::BaselineMetadata::baselineNum | ( | int | anti, |
int | antj | ||
) | throw (Error) |
Baseline number (one-based) given a pair of antenna indices.
anti | index (zero-based) for antenna i |
antj | index (zero-based) for antenna i |
Error | the indices anti and/or antj exceed the limit for the number of baselines. |
Accessor to the correlation mode.
Accessor to the correlation mode.
virtual void sdmbin::BaselineMetadata::display | ( | ) | [protected, pure virtual] |
Common part shared by the derived classes for summary information Display, for each baseband sizes (i.e.
number of branches in the baseline-based metadata tree)
virtual void sdmbin::BaselineMetadata::display | ( | ) | [protected, pure virtual] |
Common part shared by the derived classes for summary information Display, for each baseband sizes (i.e.
number of branches in the baseline-based metadata tree)
void sdmbin::BaselineMetadata::mkBaselineMetadata | ( | vector< int > | v_npp, |
vector< int > | v_nbin, | ||
int | nbb, | ||
int | nant, | ||
int | correlationMode | ||
) | [protected] |
Method to instantiate the base of the hierarchy.
v_npp | Number of polarization product for every baseband |
v_nbin | Number of bins (phases in a switch cycle) for every baseband |
nbb | Number of baseband (should be the size of v_npp and v_nbin) |
nant | Number of antennas ( ) |
correlationMode | The correlation mode (must be 0 or 1 or 2). |
void sdmbin::BaselineMetadata::mkBaselineMetadata | ( | vector< int > | v_npp, |
vector< int > | v_nbin, | ||
int | nbb, | ||
int | nant, | ||
int | correlationMode | ||
) | [protected] |
Method to instantiate the base of the hierarchy.
v_npp | Number of polarization product for every baseband |
v_nbin | Number of bins (phases in a switch cycle) for every baseband |
nbb | Number of baseband (should be the size of v_npp and v_nbin) |
nant | Number of antennas ( ) |
correlationMode | The correlation mode (must be 0 or 1 or 2). |
bool sdmbin::BaselineMetadata::notFor | ( | bool | interfero | ) | [protected] |
Utility method to check that a query is relevant or not for interferometric data.
interfero |
bool sdmbin::BaselineMetadata::notFor | ( | bool | interfero | ) | [protected] |
Utility method to check that a query is relevant or not for interferometric data.
interfero |
virtual int sdmbin::BaselineMetadata::numAnt | ( | ) | [pure virtual] |
Accessor to a generic number of antennas Specifities are defined in the derived classes.
virtual int sdmbin::BaselineMetadata::numAnt | ( | ) | [pure virtual] |
Accessor to a generic number of antennas Specifities are defined in the derived classes.
int sdmbin::BaselineMetadata::numAutoPolProduct | ( | int | basebandNum | ) | throw (Error) |
Accessor to the (derived) number of polarization products for the zero baselines for a given baseband.
basebandNum | The baseband number (one-based) |
Error | the method returns -1 in lax mode |
int sdmbin::BaselineMetadata::numAutoPolProduct | ( | int | basebandNum | ) | throw (Error) |
Accessor to the (derived) number of polarization products for the zero baselines for a given baseband.
basebandNum | The baseband number (one-based) |
Error | the method returns -1 in lax mode |
vector<int> sdmbin::BaselineMetadata::numAutoPolProduct | ( | ) |
Accessor to the (derived) number of polarization products for the zero baselines for all the basebands.
vector<int> sdmbin::BaselineMetadata::numAutoPolProduct | ( | ) |
Accessor to the (derived) number of polarization products for the zero baselines for all the basebands.
Accessor to the number of basebands.
Accessor to the number of basebands.
Accessor to the number of baselines.
Accessor to the number of baselines.
int sdmbin::BaselineMetadata::numBin | ( | int | basebandNum | ) | throw (Error) |
Accessor to the number of bins (steps or phases in scwitching cycles) for a given baseband.
basebandNum | The basbabnd number (one-based) |
Error | the method returns -1 in lax mode |
int sdmbin::BaselineMetadata::numBin | ( | int | basebandNum | ) | throw (Error) |
Accessor to the number of bins (steps or phases in scwitching cycles) for a given baseband.
basebandNum | The basbabnd number (one-based) |
Error | the method returns -1 in lax mode |
vector<int> sdmbin::BaselineMetadata::numBin | ( | ) |
Accessor to the number of bins (steps or phases in scwitching cycles) for each baseband.
vector<int> sdmbin::BaselineMetadata::numBin | ( | ) |
Accessor to the number of bins (steps or phases in scwitching cycles) for each baseband.
int sdmbin::BaselineMetadata::numPolProduct | ( | int | basebandNum | ) | throw (Error) |
Accessor to the number of polarization products of a given baseband.
basebandNum | Baseband number (one-based) |
Error | the method returns -1 in lax mode |
int sdmbin::BaselineMetadata::numPolProduct | ( | int | basebandNum | ) | throw (Error) |
Accessor to the number of polarization products of a given baseband.
basebandNum | Baseband number (one-based) |
Error | the method returns -1 in lax mode |
vector<int> sdmbin::BaselineMetadata::numPolProduct | ( | ) |
Accessor to the number of polarization products.
The constraint is that all spectral windows in a baseband are associated with a common polarization identifier.
vector<int> sdmbin::BaselineMetadata::numPolProduct | ( | ) |
Accessor to the number of polarization products.
The constraint is that all spectral windows in a baseband are associated with a common polarization identifier.
Total (cross+auto) number of metadata values.
Total (cross+auto) number of metadata values.
void sdmbin::BaselineMetadata::sizes | ( | ) | [private] |
Method to get the size (in number of typed values).
The size is determined from the following formula:
and the peculiar non-standard mode (correlationMode=0) by:
with in this specific case
In this abstract class must be considered as generic. Its actual value depends of the context in the derived classes.
void sdmbin::BaselineMetadata::sizes | ( | ) | [private] |
Method to get the size (in number of typed values).
The size is determined from the following formula:
and the peculiar non-standard mode (correlationMode=0) by:
with in this specific case
In this abstract class must be considered as generic. Its actual value depends of the context in the derived classes.
bool sdmbin::BaselineMetadata::wrongAntennaIndex | ( | int | antIndex | ) | [protected] |
Utility method to check that the input value of antenna index in a query is valid or not.
antIndex | The antenna index |
bool sdmbin::BaselineMetadata::wrongAntennaIndex | ( | int | antIndex | ) | [protected] |
Utility method to check that the input value of antenna index in a query is valid or not.
antIndex | The antenna index |
bool sdmbin::BaselineMetadata::wrongBasebandIndex | ( | int | bbIndex | ) | [protected] |
Utility method to check that the input baseband index value in a query is valid or not.
bbIndex | The baseband index |
bool sdmbin::BaselineMetadata::wrongBasebandIndex | ( | int | bbIndex | ) | [protected] |
Utility method to check that the input baseband index value in a query is valid or not.
bbIndex | The baseband index |
bool sdmbin::BaselineMetadata::wrongBasebandNum | ( | int | basebandNum | ) | [protected] |
Utility to access the validity of an input basebandNum.
basebandNum | Baseband number |
bool sdmbin::BaselineMetadata::wrongBasebandNum | ( | int | basebandNum | ) | [protected] |
Utility to access the validity of an input basebandNum.
basebandNum | Baseband number |
bool sdmbin::BaselineMetadata::wrongPolProductIndex | ( | int | ppIndex, |
int | bbIndex, | ||
int | antIndex_i, | ||
int | antIndex_j | ||
) | [protected] |
Utility method to check that the input set of index values in a query is valid or not.
ppIndex | The polarization product index |
bbIndex | The baseband index |
antIndex_i | The antenna index for antenna i |
antIndex_j | The antenna index for antenna j |
bool sdmbin::BaselineMetadata::wrongPolProductIndex | ( | int | ppIndex, |
int | bbIndex, | ||
int | antIndex_i, | ||
int | antIndex_j | ||
) | [protected] |
Utility method to check that the input set of index values in a query is valid or not.
ppIndex | The polarization product index |
bbIndex | The baseband index |
antIndex_i | The antenna index for antenna i |
antIndex_j | The antenna index for antenna j |
int sdmbin::BaselineMetadata::autoSize_ [protected] |
Number of metadata values for all the zero baselines (second part in size formula)
Definition at line 206 of file BaselineMetadata.h.
int sdmbin::BaselineMetadata::correlationMode_ [protected] |
Correlation mode.
Definition at line 208 of file BaselineMetadata.h.
int sdmbin::BaselineMetadata::crossSize_ [protected] |
Number of metadata values for all the non-zero baselines (first part in size formula)
Definition at line 207 of file BaselineMetadata.h.
static int sdmbin::BaselineMetadata::FLAGLIMIT [static] |
Definition at line 181 of file BaselineMetadata.h.
int sdmbin::BaselineMetadata::numAnt_ [protected] |
Number of antennas.
Definition at line 203 of file BaselineMetadata.h.
int sdmbin::BaselineMetadata::numBaseband_ [protected] |
Number of basebands.
Definition at line 202 of file BaselineMetadata.h.
int sdmbin::BaselineMetadata::numBaseline_ [protected] |
Number of baselines.
Definition at line 204 of file BaselineMetadata.h.
int sdmbin::BaselineMetadata::numValPerBaseline_ [private] |
Number of metadata values per non-zero baseline (first sum in size formula)
Definition at line 256 of file BaselineMetadata.h.
int sdmbin::BaselineMetadata::numValPerZeroBaseline_ [private] |
Number of metadata values per zero baseline (second sum in size formula)
Definition at line 257 of file BaselineMetadata.h.
vector< int > sdmbin::BaselineMetadata::v_numAutoPolProduct_ [protected] |
Number of auto polarization products for every baseband.
Definition at line 209 of file BaselineMetadata.h.
vector< int > sdmbin::BaselineMetadata::v_numBin_ [protected] |
Number of phases in SwitchCycles for every baseband.
Definition at line 201 of file BaselineMetadata.h.
vector< int > sdmbin::BaselineMetadata::v_numPolProduct_ [protected] |
Number of cross polarization products for every baseband.
Definition at line 200 of file BaselineMetadata.h.