casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
sdmbin::Integration Class Reference

The class Integration extends the DataDump class by adding an attribute to tag the dump with an integration number. More...

#include <Integration.h>

Inheritance diagram for sdmbin::Integration:
sdmbin::DataDump sdmbin::DataStructure

Public Member Functions

 Integration ()
 
 Integration (std::vector< std::vector< uint32_t > > vv_numPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, float *floatData, uint32_t integNum)
 
 Integration (std::vector< std::vector< uint32_t > > vv_numPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, float *floatData, uint32_t *dataFlags, uint32_t integNum)
 
 Integration (uint32_t numPolProduct, uint32_t numSpectralPoint, uint32_t numBin, Enum< NetSidebandMod::NetSideband > e_sideband, uint32_t numApc, uint32_t numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, float *floatData)
 
 Integration (uint32_t numPolProduct, uint32_t numSpectralPoint, uint32_t numBin, Enum< NetSidebandMod::NetSideband > e_sideband, uint32_t numApc, uint32_t numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, float *floatData, uint32_t *dataFlags, uint32_t integNum)
 
 ~Integration ()
 
 Integration (const Integration &a)
 
- Public Member Functions inherited from sdmbin::DataDump
 DataDump ()
 
 DataDump (uint32_t numPolProduct, uint32_t numBin, Enum< NetSidebandMod::NetSideband > e_sideband, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, const float *floatData)
 A data dump is an object which can be saved at a persistent level. More...
 
 DataDump (uint32_t numSdPolProduct, uint32_t numSpectralPoint, uint32_t numBin, Enum< NetSidebandMod::NetSideband > e_sideband, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, const float *floatData, const uint32_t *dataFlags)
 A constructor convenient for the total power from the baseband processor when some data have been flagged. More...
 
 DataDump (std::vector< std::vector< uint32_t > > vv_numPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, const float *floatData)
 A constructor to be used in more general case of total power data all the data being valid. More...
 
 DataDump (std::vector< std::vector< uint32_t > > vv_numPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, const float *floatData, const uint32_t *dataFlags)
 A constructor to be used in a more general case of total power data when some data have been flagged. More...
 
 DataDump (std::vector< std::vector< uint32_t > > vv_numCrossPolProduct, std::vector< std::vector< uint32_t > > vv_numAutoPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure)
 A constructor with no importation nor attachment of binary meta. More...
 
 ~DataDump ()
 Destructor. More...
 
 DataDump (const DataDump &a)
 Copy constructor Perform a deep copy. More...
 
DataDumpoperator= (const DataDump &a)
 Assignement operatator. More...
 
void attachFlags (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const uint32_t *flagsPtr)
 
void importFlags (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const uint32_t *flagsPtr)
 
void attachActualTimes (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const int64_t *actualTimesPtr)
 
void importActualTimes (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const int64_t *actualTimesPtr)
 
void attachActualDurations (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const int64_t *durationsPtr)
 
void importActualDurations (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const int64_t *durationsPtr)
 
void attachZeroLags (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const float *zeroLagsPtr)
 
void importZeroLags (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const float *zeroLagsPtr)
 
void attachAutoData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const float *autoDataPtr)
 
void importAutoData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const float *autoDataPtr)
 
void attachCrossData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const short int *crossDataPtr)
 
void importCrossData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const short int *crossDataPtr)
 
void attachCrossData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const int *crossDataPtr)
 
void importCrossData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const int *crossDataPtr)
 
void attachCrossData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const float *crossDataPtr)
 
void importCrossData (uint32_t declaredSize, EnumSet< AxisNameMod::AxisName > es_an, uint32_t numData, const float *crossDataPtr)
 
void setScaleFactor (std::vector< std::vector< float > > vv_scaleFactor)
 
uint32_t setIntegration (uint32_t integNum)
 
uint32_t setSubintegration (uint32_t integNum, uint32_t subintegNum)
 
uint32_t setContextUsingProjectPath (std::string projectPathUri)
 
uint32_t integrationNum ()
 Accessor. More...
 
uint32_t subintegrationNum ()
 
float scaleFactor (uint32_t nbb, uint32_t nspw)
 
float scaleFactor (uint32_t ndd)
 
uint64_t time () const
 
uint64_t timeCentroid () const
 
uint64_t interval () const
 
uint64_t exposure () const
 
const int64_t * actualTimes () const
 
const int64_t * actualDurations () const
 
const uint32_t * flags () const
 Accessor to the flags values. More...
 
const float * zeroLags () const
 
const float * autoData () const
 Accessor to the data values. More...
 
const short * crossDataShort () const
 
const int * crossDataLong () const
 
const float * crossDataFloat () const
 
uint32_t floatData (std::vector< std::vector< float > & >)
 Accessor to the data from a 2 levels tree-hierarchy. More...
 
uint32_t floatData (std::vector< std::vector< float * > > &)
 Accessor to the data from a 3 levels tree-hierarchy with muti-dimensional leaves. More...
 
uint32_t floatData (std::vector< std::vector< std::vector< float > > > &)
 Accessor to the data from a 3 levels tree-hierarchy. More...
 
uint32_t floatData (std::vector< std::vector< std::vector< float * > > > &)
 Accessor to the data from a 3 levels tree-hierarchy with muti-dimensional leaves. More...
 
uint32_t floatData (std::vector< std::vector< std::vector< std::vector< float > > > > &)
 Accessor to the data from a 4 levels tree-hierarchy. More...
 
uint32_t floatData (std::vector< std::vector< std::vector< std::vector< float * > > > > &)
 Accessor to the data from a 4 levels tree-hierarchy. More...
 
uint32_t floatData (std::vector< std::vector< std::vector< std::vector< std::vector< float > > > > > &)
 Accessor to the data from a 5 levels tree-hierarchy. More...
 
DataDump operator- (const DataDump &B)
 Operator to take the difference between two data dumps. More...
 
DataDump operator-= (const DataDump &)
 Operator to take the difference between two data dumps. More...
 
DataDump operator+ (const DataDump &)
 Operator to take the sum between two data dumps. More...
 
DataDump operator+= (const DataDump &)
 Method to accumulate dumps. More...
 
DataDump operator* (const float &)
 
DataDump operator/ (const float &)
 
DataDump spectralAverage ()
 
DataDump spectralAverage (uint32_t startIndex, uint32_t endIndex)
 
DataDump decim (const DataDump &)
 
DataDump subtractRef (const DataDump &)
 
- Public Member Functions inherited from sdmbin::DataStructure
 DataStructure ()
 Empty constructor. More...
 
 DataStructure (uint32_t numPolProduct, uint32_t numBin, Enum< NetSidebandMod::NetSideband > e_sideband, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode)
 Constructor for a multi-dimensional structure to use e.g. More...
 
 DataStructure (uint32_t numPolProduct, uint32_t numSpectralPoint, uint32_t numBin, Enum< NetSidebandMod::NetSideband > e_sideband, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode)
 An other constructor for a multi-dimensional structure use-case. More...
 
 DataStructure (std::vector< std::vector< uint32_t > > vv_numCrossPolProduct, std::vector< std::vector< uint32_t > > vv_numAutoPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode)
 Constructor in the general case, the data structure being eventualy a tree-hierarchy. More...
 
 DataStructure (std::vector< std::vector< uint32_t > > vv_numAutoPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode)
 Constructor for the single-dish case, the data structure being eventually a tree-hierarchy. More...
 
 DataStructure (const DataStructure &)
 Copy constructor. More...
 
 ~DataStructure ()
 Destructor (use the default implementation) More...
 
std::vector< std::vector
< uint32_t > > 
numCrossPolProducts ()
 Accessor to the number of polarization cross product for non-zero baselines in every spectral window for every baseband. More...
 
std::vector< std::vector
< uint32_t > > 
numAutoPolProducts ()
 Accessor to the number of polarization cross product for zero-baselines in every spectral window for every baseband. More...
 
std::vector< std::vector
< uint32_t > > 
numSpectralPoints ()
 Accessor to the number of spectral points in every spectral window for every baseband. More...
 
std::vector< std::vector
< uint32_t > > 
numBins ()
 Accessor to the number of bins in every spectral window for every baseband. More...
 
std::vector< std::vector< Enum
< NetSidebandMod::NetSideband > > > 
sidebands ()
 Accessor to the NetSideband qualifiers in every spectral window for every baseband. More...
 
uint32_t numApc ()
 Accessor to the size of the APC axis. More...
 
std::vector< uint32_t > numSpectralWindows ()
 Accessor to the number of spectral windows in the different basebands. More...
 
uint32_t numBaseband ()
 Accessor to the number of basebands. More...
 
uint32_t numAnt ()
 Accessor to the number of antennas. More...
 
CorrelationModeMod::CorrelationMode correlationMode ()
 Accessor to the correlationMode. More...
 
std::vector< uint32_t > leafAxisSizes ()
 Method to get the axis sizes of the leaves when represented as multi-dimensional structures. More...
 
std::vector< uint32_t > leafAxisSizes (uint32_t basebandIndex, uint32_t spectralWindowIndex)
 Axis sizes of the leave of a data structure which may not be necessarily multi-dimensional. More...
 
std::vector< uint32_t > leafAxisSizes (uint32_t dataDescriptionIndex)
 Axis sizes of the leave of a data structure which may not be necessarily multi-dimensional. More...
 
uint32_t isIndexible () const
 A method to know if the whole data structure can be considered as a multi-dimensional structure or not. More...
 
std::vector< uint32_t > eAxisSizes () const
 A method to retrieve the size of all the different axes in case of a multi-dimensional structure. More...
 
std::vector< uint32_t > axisSizes () const
 A method to retrieve the size of the axes for a multi-dimensional structure. More...
 
uint32_t dimension () const
 Accessor to the dimensionality of the structure. More...
 
std::vector< uint32_t > minAxSize () const
 Minimum size for every axis (level) in the structure. More...
 
std::vector< uint32_t > maxAxSize () const
 Maximum size for every axis (level) in the structure. More...
 
uint32_t numAutoData () const
 Number of data value (leaves) that can host the structure. More...
 
uint32_t numCrossData () const
 Number of data value (leaves) that can host the structure. More...
 
std::string axisSequence () const
 Axis sequense: For example 128 means a structure with 3 axes, pol,sp,na. More...
 
void summary () const
 Utility which sumarizes the properties of the data structure. More...
 

Additional Inherited Members

- Protected Member Functions inherited from sdmbin::DataDump
 DataDump (std::vector< std::vector< uint32_t > > vv_numCrossPolProduct, std::vector< std::vector< uint32_t > > vv_numAutoPolProduct, std::vector< std::vector< uint32_t > > vv_numSpectralPoint, std::vector< std::vector< uint32_t > > vv_numBin, std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > > vv_e_sideband, uint32_t numApc, std::vector< uint32_t > v_numSpectralWindow, uint32_t numBaseband, uint32_t numAnt, CorrelationModeMod::CorrelationMode correlationMode, uint64_t time, uint64_t timeCentroid, uint64_t interval, uint64_t exposure, uint32_t numCrossData, const int *crossData, uint32_t numAutoData, const float *floatData, uint32_t numFlags, const uint32_t *dataFlags)
 A constructor used by the operators + and -. More...
 
- Protected Attributes inherited from sdmbin::DataDump
uint32_t integrationNum_
 DataDump binSequence(vector<const DataDump &>); see Subscan. More...
 
uint32_t subintegrationNum_
 
uint64_t time_
 
uint64_t timeCentroid_
 
uint64_t interval_
 
uint64_t exposure_
 
EnumSet< AxisNameMod::AxisName > es_flagsAxes_
 
EnumSet< AxisNameMod::AxisName > es_actualTimesAxes_
 
EnumSet< AxisNameMod::AxisName > es_actualDurationsAxes_
 
EnumSet< AxisNameMod::AxisName > es_weightsAxes_
 
EnumSet< AxisNameMod::AxisName > es_zeroLagsAxes_
 
EnumSet< AxisNameMod::AxisName > es_autoDataAxes_
 
EnumSet< AxisNameMod::AxisName > es_crossDataAxes_
 
uint32_t numFlags_
 
uint32_t numActualTimes_
 
uint32_t numActualDurations_
 
uint32_t numWeights_
 
uint32_t numZeroLags_
 
uint32_t numAutoData_
 
uint32_t numCrossData_
 
std::vector< std::vector< float > > vv_scaleFactor_
 
std::vector< float > v_scaleFactor_
 
const uint32_t * cuintFlagsPtr_
 
const int64_t * clonlonActualTimesPtr_
 
const int64_t * clonlonActualDurationsPtr_
 
const float * cfloatWeightsPtr_
 
const float * cfloatZeroLagsPtr_
 
const float * cfloatAutoDataPtr_
 
const short int * cshortCrossDataPtr_
 
const int * cintCrossDataPtr_
 
const float * cfloatCrossDataPtr_
 
uint32_t * uintFlagsPtr_
 
int64_t * lonlonActualTimesPtr_
 
int64_t * lonlonActualDurationsPtr_
 
float * floatWeightsPtr_
 
float * floatZeroLagsPtr_
 
float * floatAutoDataPtr_
 
short int * shortCrossDataPtr_
 
int * intCrossDataPtr_
 
float * floatCrossDataPtr_
 
- Protected Attributes inherited from sdmbin::DataStructure
std::vector< std::vector
< uint32_t > > 
vv_numCrossPolProduct_
 
std::vector< std::vector
< uint32_t > > 
vv_numAutoPolProduct_
 
std::vector< std::vector
< uint32_t > > 
vv_numSpectralPoint_
 
std::vector< std::vector
< uint32_t > > 
vv_numBin_
 
std::vector< std::vector< Enum
< NetSidebandMod::NetSideband > > > 
vv_e_sideband_
 
uint32_t numApc_
 
std::vector< uint32_t > v_numSpectralWindow_
 
uint32_t numBaseband_
 
uint32_t numAnt_
 
CorrelationModeMod::CorrelationMode correlationMode_
 
std::string axisSequence_
 
std::vector< uint32_t > v_minSize_
 
std::vector< uint32_t > v_maxSize_
 

Detailed Description

The class Integration extends the DataDump class by adding an attribute to tag the dump with an integration number.

Integration numbers are one-based, a value of 0 meaning undefined. Note that integrations object have always an subintegration number which is set undefined.

Definition at line 952 of file Integration.h.

Constructor & Destructor Documentation

sdmbin::Integration::Integration ( )
sdmbin::Integration::Integration ( std::vector< std::vector< uint32_t > >  vv_numPolProduct,
std::vector< std::vector< uint32_t > >  vv_numSpectralPoint,
std::vector< std::vector< uint32_t > >  vv_numBin,
std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > >  vv_e_sideband,
uint32_t  numApc,
std::vector< uint32_t >  v_numSpectralWindow,
uint32_t  numBaseband,
uint32_t  numAnt,
CorrelationModeMod::CorrelationMode  correlationMode,
uint64_t  time,
uint64_t  timeCentroid,
uint64_t  interval,
uint64_t  exposure,
float *  floatData,
uint32_t  integNum 
)
sdmbin::Integration::Integration ( std::vector< std::vector< uint32_t > >  vv_numPolProduct,
std::vector< std::vector< uint32_t > >  vv_numSpectralPoint,
std::vector< std::vector< uint32_t > >  vv_numBin,
std::vector< std::vector< Enum< NetSidebandMod::NetSideband > > >  vv_e_sideband,
uint32_t  numApc,
std::vector< uint32_t >  v_numSpectralWindow,
uint32_t  numBaseband,
uint32_t  numAnt,
CorrelationModeMod::CorrelationMode  correlationMode,
uint64_t  time,
uint64_t  timeCentroid,
uint64_t  interval,
uint64_t  exposure,
float *  floatData,
uint32_t *  dataFlags,
uint32_t  integNum 
)
sdmbin::Integration::Integration ( uint32_t  numPolProduct,
uint32_t  numSpectralPoint,
uint32_t  numBin,
Enum< NetSidebandMod::NetSideband >  e_sideband,
uint32_t  numApc,
uint32_t  numSpectralWindow,
uint32_t  numBaseband,
uint32_t  numAnt,
CorrelationModeMod::CorrelationMode  correlationMode,
uint64_t  time,
uint64_t  timeCentroid,
uint64_t  interval,
uint64_t  exposure,
float *  floatData 
)
sdmbin::Integration::Integration ( uint32_t  numPolProduct,
uint32_t  numSpectralPoint,
uint32_t  numBin,
Enum< NetSidebandMod::NetSideband >  e_sideband,
uint32_t  numApc,
uint32_t  numSpectralWindow,
uint32_t  numBaseband,
uint32_t  numAnt,
CorrelationModeMod::CorrelationMode  correlationMode,
uint64_t  time,
uint64_t  timeCentroid,
uint64_t  interval,
uint64_t  exposure,
float *  floatData,
uint32_t *  dataFlags,
uint32_t  integNum 
)
sdmbin::Integration::~Integration ( )
sdmbin::Integration::Integration ( const Integration a)

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