1 #if !defined(_BASELINESSET_H)
39 std::vector<int> v_feedIdArray,
40 std::vector<int> v_phasedArrayList,
41 std::vector<bool> v_antennaUsedArray,
68 unsigned int transferId(
unsigned int na,
unsigned int ndd,
unsigned int nbin);
87 unsigned int transferId(
unsigned int na,
unsigned int nfe,
unsigned int ndd,
unsigned int nbin);
100 unsigned int transferId(
unsigned int na1,
unsigned int na2,
unsigned int ndd,
unsigned int nbin,
unsigned int napc);
114 unsigned int transferId(
unsigned int na1,
unsigned int na2,
unsigned int nfe,
unsigned int ndd,
unsigned int nbin,
unsigned int napc);
163 unsigned int baselineIndex(
unsigned int na1,
unsigned int na2) ;
174 unsigned int antenna1(
unsigned int baselineIndex) ;
185 unsigned int antenna2(
unsigned int baselineIndex) ;
222 int getFeedId(
unsigned int na,
unsigned int nfe) ;
260 unsigned int getNumPDTvalue(Enum<DataContentMod::DataContent> e_dc, EnumSet<AxisNameMod::AxisName> es_an,
bool effective);
276 inline unsigned int BaselinesSet::transferId(
unsigned int na1,
unsigned int na2,
unsigned int nfe,
unsigned int ndd,
unsigned int nbin,
unsigned int napc){
286 v_cumulCrossSize_ndd +
287 nbin*(v_crossSize_ndd/
numBin(ndd)) +
294 unsigned int iIdx =
std::min (na1, na2);
295 unsigned int jIdx =
std::max (na1, na2);
296 return jIdx * (jIdx - 1) / 2 + iIdx;
299 #define _BASELINESSET_H
unsigned int getNumEffBaselines()
Get the effective number of antenna pairs producing data.
std::vector< asdm::Tag > v_AntennaIdArray_
Input array set of antenna identifiers (size numAntennas_)
unsigned int numEffBaselines_
Effective number of antenna pairs.
std::vector< unsigned long > v_cumulCrossSize_
Number of bytes to skip for every dataDesc (size numDataDesc_)
unsigned int transferId(unsigned int na, unsigned int ndd, unsigned int nbin)
Transfer identifier for a given node in the tree hierarchy for auto-correlation data Transfer identif...
unsigned int getNumBaselines()
Get the number of antenna pairs if all the antennas in v_AntennaIdArray_ were used.
unsigned int getNumAntennas()
Number of antenna involved in the data if none would have been dropped.
~BaselinesSet()
Destructor (use the default implementation)
unsigned int numApc_
APC axis size (can take the value 1 or 2 only)
asdm::Tag getEffAntennaId(unsigned int na)
Antenna identifier from its index in the sequence of antenna restricted to those effectively producin...
unsigned int getNumPDTvalue(Enum< DataContentMod::DataContent > e_dc, EnumSet< AxisNameMod::AxisName > es_an, bool effective)
Get the number of primitive data values (i.e.
Definition of the second level (the top level) in the tree hierarchy: include the antenna baseline co...
std::vector< int > v_FeedIdArray_
Input array list of feed identifiers (size numFeed*numAntennas_)
std::vector< int > v_PhasedArrayList_
Input phasedArray list (not yet implemented)
unsigned long sumCrossSize_
Sum of the elements of the vector v_crossSize_.
unsigned int numAntennas_
Input number of antennas.
Definition of the first level in the tree hierarchy: set of spectro-polarization descriptions, basebands.
std::vector< unsigned long > v_crossSize_
Size, in nb PDT values, for every dataDesc (size numDataDesc_)
unsigned int numEffAntennas_
Effective number of antennas with data.
unsigned int numFeeds_
Input number of feeds.
unsigned int antenna1(unsigned int baselineIndex)
Antenna index of the first antenna of a pair defining a baseline number.
unsigned int baselineIndex(asdm::Tag antennaId)
Baseline number for a given antenna identifier.
std::vector< asdm::Tag > v_effAntennaIdArray_
Effective array of antenna identifiers.
unsigned int antenna2(unsigned int baselineIndex)
Antenna index of the second antenna of a pair defining a baseline number.
unsigned int getNumEffAntennas()
Number of antenna actualy involved in the data.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
unsigned int numBin(unsigned int ndd)
Accessor to the number of steps for the baseband of a given dataDescription.
unsigned int feedIndex(asdm::Tag antennaId, int feedId)
Accessor to the feed index of a feed identifier given an antenna identifier.
unsigned int numBaselines_
number of antenna pairs
int getFeedId(unsigned int na, unsigned int nfe)
Accessor to the feed identifier given a feed index and an antenna index.