11 #ifndef CARMA_SDP_SPWBANDRELATIONSHIPS_H
12 #define CARMA_SDP_SPWBANDRELATIONSHIPS_H
65 static bool isLSB(
const int& spw);
69 static bool isUSB(
const int& spw);
78 static std::vector<int>
bandSbToSpw(
const int& band,
104 static int sysTempIndex(
const int& ant,
const int& nant,
105 const int& band,
const SIDEBAND& sideband);
109 static int psysIndex(
const int& ant,
const int& nant,
124 #endif //CARMA_SDP_SPWBANDRELATIONSHIPS_H
Mapping of correlator bands and sidebands to output spectral windows.
static int bandSbIndex(const int &band, const SIDEBAND &sideband)
Map a (band,sideband) tuple to a unique sequential array index.
static int spwToBand(const int &spw)
Map a spectral window to the matching band number.
static SIDEBAND spwToSideband(const int &spw)
Map a spectral window to the matching (single) sideband.
~SpwBandRelationships()
Desctructor.
SIDEBAND
Enumerated sideband types.
static int sysTempIndex(const int &ant, const int &nant, const int &band, const SIDEBAND &sideband)
Map a (ant,band,sideband) tuple to a systemp astro header index.
static std::vector< int > bandSbToSpw(const int &band, const SIDEBAND &sideband)
Map a (band,sideband) tuple to the matching spectral windows.
static int matchingSbSpw(const int &spw)
Return the matching sideband spw for a specified input spw.
SpwBandRelationships()
Constructor.
static bool isLSB(const int &spw)
Return true if specified spectral window is LSB.
static void setNumWin(const int &num)
Set the number of windows in the data set(6 or 16)
static int psysIndex(const int &ant, const int &nant, const int &band)
Map a (ant,band) pair to a psys astro header index.
static bool isUSB(const int &spw)
Return true if specified spectral window is USB.
static int bandFreqIndex(const int &band, const SIDEBAND &sideband)
Map a (band,sideband) tuple to a bandfreq astro header index.
static int numSpw()
Return the number of output spectral windows.
static std::pair< int, SIDEBAND > bandSbIndexInv(const int &index)
Compute inverse mapping of bandSbIndex method.