casa
5.7.0-16
|
The class DataDump extends the class DataStructure by adding time information to assign to the dump the observation date etc... More...
#include <Integration.h>
Public Member Functions | |
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... | |
DataDump & | operator= (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) |
TimeMetadataAccessors | |
Accessors on time-related attributes | |
uint64_t | time () const |
uint64_t | timeCentroid () const |
uint64_t | interval () const |
uint64_t | exposure () const |
DataAccessors | |
Accessors to the actual time values | |
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... | |
DataManipulation1 | |
/nant/nbb/nspw/nbin/napc/nsp/npol | | | | | | | | | | | | | corr or uncorr (enum) | | | | | scId (global keys) | | | | spwNames (keys in baseband context) | | | basebandNames (global keys) | | antNames (global keys) | configDescId (global key) Arithmetics operators (these are axis-size invariant manipulations). | |
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 &) |
DataManipulation2 | |
Manipulations which produce output objects with axis-sizes different to those of the input objects. | |
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... | |
Protected Member Functions | |
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 | |
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_ |
Private Member Functions | |
void | getDataStructure () |
The class DataDump extends the class DataStructure by adding time information to assign to the dump the observation date etc...
It also get effectively the data values with eventualy meta-data (flags, actualTimes, actualDurations), auxiliary data (zeroLags). These may be either attached or truly imported.
A set of constructors is provided to avoid unecessary complexities when the context is simpler than the most general one (e.g. when using a simple filter bank spectrometer with a single dish vs multiple baseband/spectral windows with a multiplicity of antennas).
Behaviors: there are two manipulation categories:
DataDump typed objects resulting from these manipulation are owner of their data, these being deleted when these objects are destroyed.
DataDump typed objects are by default anonymous objects in the context of the project data structure. To be identified in this context it is necessary to tag them by their integration number and eventually their sub-integration number. DataDump typed object resulting from the combination of DataDump typed objects become anonymous. However they keep the information to know tagged object they derived from.
Definition at line 368 of file Integration.h.
sdmbin::DataDump::DataDump | ( | ) |
sdmbin::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.
It has a data structure and time informations to tell when this dump was obtained.
The following constructor is convenient e.g. for the total power from the baseband processor if all the data are valid. With this constructor the data values, read-only, are attached. Would the data be averaged over the duration of a (sub)integration, they must be subsequently tagged by their integration (and sub-integration) number(s) using the method setIntegration (or setSubintegration).
numPolProduct | Number of polarization cross-products |
numBin | Number of bins in the switch cycle |
e_sideband | Sideband qualifier (not set or NOSB | LSB | USB | DSB ) |
numBaseband | Number of basebands |
numAnt | Number of antenna (used to determine the number of baselines if correlationMode=0 or 2 |
correlationMode | ( CROSS_ONLY | AUTO_ONLY | CROSS_AND_AUTO ) |
sdmbin::DataDump::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.
Would the data averaged over the duration of an (sub)integration, consider using subsequently the setIntegration (or setSubintegration) method.
numSdPolProduct | Number of polarization cross-products (zero-baselines) |
numSpectralPoint | Number of spectral points in the spectral window |
numBin | Number of bins in the switch cycle |
e_sideband | Sideband qualifier (not set or NOSB | LSB | USB | DSB ) |
numBaseband | Number of basebands |
numAnt | Number of antenna (used to determine the number of baselines if correlationMode=0 or 2 |
correlationMode | ( CROSS_ONLY | AUTO_ONLY | CROSS_AND_AUTO )
|
time | Mid-point (over the interval) epoch for the dump |
timeCentroid | Centroid epoch associated to the exposure This is different than the time value is blanking occured during the observations. |
interval | Duration scheduled to produce the dump. |
exposure | Actual duration effectively spent (this is the difference between interval and the time lost due to blanking. |
dataFlags | The data values. |
sdmbin::DataDump::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.
sdmbin::DataDump::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.
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 | ||
) |
A constructor with no importation nor attachment of binary meta.
sdmbin::DataDump::~DataDump | ( | ) |
Destructor.
The pointer to the floatData being one of the parameters in the constructor, this DataDump class does not have the privilege to delete the allocated memory for these floatData; these are under the responsability of the client. More generally, any data attached by the client will never be deleted by this destructor.
However, if floatData has been created by a method in this class, e.g. when using the operator + then the destructor delete this allocated memory. More generally, any data imported by the client will be deleted by this destructor.
List of methods which create DataDump objects by allocating memory to floatData:
sdmbin::DataDump::DataDump | ( | const DataDump & | a | ) |
Copy constructor Perform a deep copy.
|
protected |
A constructor used by the operators + and -.
const int64_t* sdmbin::DataDump::actualDurations | ( | ) | const |
const int64_t* sdmbin::DataDump::actualTimes | ( | ) | const |
void sdmbin::DataDump::attachActualDurations | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const int64_t * | durationsPtr | ||
) |
void sdmbin::DataDump::attachActualTimes | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const int64_t * | actualTimesPtr | ||
) |
void sdmbin::DataDump::attachAutoData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const float * | autoDataPtr | ||
) |
void sdmbin::DataDump::attachCrossData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const short int * | crossDataPtr | ||
) |
void sdmbin::DataDump::attachCrossData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const int * | crossDataPtr | ||
) |
void sdmbin::DataDump::attachCrossData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const float * | crossDataPtr | ||
) |
void sdmbin::DataDump::attachFlags | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const uint32_t * | flagsPtr | ||
) |
void sdmbin::DataDump::attachZeroLags | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const float * | zeroLagsPtr | ||
) |
const float* sdmbin::DataDump::autoData | ( | ) | const |
Accessor to the data values.
Methods which can be used in case of multi-dimensional data structure. Example of use-cases:
const float* sdmbin::DataDump::crossDataFloat | ( | ) | const |
const int* sdmbin::DataDump::crossDataLong | ( | ) | const |
const short* sdmbin::DataDump::crossDataShort | ( | ) | const |
uint64_t sdmbin::DataDump::exposure | ( | ) | const |
const uint32_t* sdmbin::DataDump::flags | ( | ) | const |
Accessor to the flags values.
Methods which can be used in case of multi-dimensional data structure.
uint32_t sdmbin::DataDump::floatData | ( | std::vector< std::vector< float > & > | ) |
Accessor to the data from a 2 levels tree-hierarchy.
uint32_t sdmbin::DataDump::floatData | ( | std::vector< std::vector< float * > > & | ) |
Accessor to the data from a 3 levels tree-hierarchy with muti-dimensional leaves.
uint32_t sdmbin::DataDump::floatData | ( | std::vector< std::vector< std::vector< float > > > & | ) |
Accessor to the data from a 3 levels tree-hierarchy.
uint32_t sdmbin::DataDump::floatData | ( | std::vector< std::vector< std::vector< float * > > > & | ) |
Accessor to the data from a 3 levels tree-hierarchy with muti-dimensional leaves.
Example of use-cases:
uint32_t sdmbin::DataDump::floatData | ( | std::vector< std::vector< std::vector< std::vector< float > > > > & | ) |
Accessor to the data from a 4 levels tree-hierarchy.
Example of use-cases:
uint32_t sdmbin::DataDump::floatData | ( | std::vector< std::vector< std::vector< std::vector< float * > > > > & | ) |
Accessor to the data from a 4 levels tree-hierarchy.
uint32_t sdmbin::DataDump::floatData | ( | std::vector< std::vector< std::vector< std::vector< std::vector< float > > > > > & | ) |
Accessor to the data from a 5 levels tree-hierarchy.
|
private |
void sdmbin::DataDump::importActualDurations | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const int64_t * | durationsPtr | ||
) |
void sdmbin::DataDump::importActualTimes | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const int64_t * | actualTimesPtr | ||
) |
void sdmbin::DataDump::importAutoData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const float * | autoDataPtr | ||
) |
void sdmbin::DataDump::importCrossData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const short int * | crossDataPtr | ||
) |
void sdmbin::DataDump::importCrossData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const int * | crossDataPtr | ||
) |
void sdmbin::DataDump::importCrossData | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const float * | crossDataPtr | ||
) |
void sdmbin::DataDump::importFlags | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const uint32_t * | flagsPtr | ||
) |
void sdmbin::DataDump::importZeroLags | ( | uint32_t | declaredSize, |
EnumSet< AxisNameMod::AxisName > | es_an, | ||
uint32_t | numData, | ||
const float * | zeroLagsPtr | ||
) |
uint32_t sdmbin::DataDump::integrationNum | ( | ) |
Accessor.
uint64_t sdmbin::DataDump::interval | ( | ) | const |
DataDump sdmbin::DataDump::operator* | ( | const float & | ) |
Operator to take the sum between two data dumps.
Let C be a data dump "sum" of data dumps A and B. Effectively this "sum" is a weighted mean, the weights being equal to the values of the intervals for A and B.
The result attributes of are the following:
Example of use-case: sum data dumps to create a new dump with increased signal-to-noise ratio.
Method to accumulate dumps.
Let A the instance of this data dump and B an other data dump. This method "accumulates" to this A the data dump B. Effectively this accumulation corresponds to a weigthed mean, the weigths being the exposures values. To use the interval values for the wieghts, use the operator +.
The result attributes of the accumulation A += B are the following:
- floatData d:
Example of use-case: sum data dumps to create a new dump with increased signal-to-noise ratio.
Operator to take the difference between two data dumps.
Let C be a data dump difference of two data dumps A and B. The result attributes of are the following:
Example of use-case: compute the difference to subtract a reference data dump to a non-reference data dump.
Operator to take the difference between two data dumps.
The result attributes of A -= B are the following:
Example of use-case: compute the difference to subtract a reference data dump to a non-reference data dump.
DataDump sdmbin::DataDump::operator/ | ( | const float & | ) |
float sdmbin::DataDump::scaleFactor | ( | uint32_t | nbb, |
uint32_t | nspw | ||
) |
float sdmbin::DataDump::scaleFactor | ( | uint32_t | ndd | ) |
uint32_t sdmbin::DataDump::setContextUsingProjectPath | ( | std::string | projectPathUri | ) |
uint32_t sdmbin::DataDump::setIntegration | ( | uint32_t | integNum | ) |
void sdmbin::DataDump::setScaleFactor | ( | std::vector< std::vector< float > > | vv_scaleFactor | ) |
uint32_t sdmbin::DataDump::setSubintegration | ( | uint32_t | integNum, |
uint32_t | subintegNum | ||
) |
DataDump sdmbin::DataDump::spectralAverage | ( | ) |
DataDump sdmbin::DataDump::spectralAverage | ( | uint32_t | startIndex, |
uint32_t | endIndex | ||
) |
uint32_t sdmbin::DataDump::subintegrationNum | ( | ) |
uint64_t sdmbin::DataDump::time | ( | ) | const |
uint64_t sdmbin::DataDump::timeCentroid | ( | ) | const |
const float* sdmbin::DataDump::zeroLags | ( | ) | const |
|
protected |
Definition at line 905 of file Integration.h.
|
protected |
Definition at line 908 of file Integration.h.
|
protected |
Definition at line 903 of file Integration.h.
|
protected |
Definition at line 904 of file Integration.h.
|
protected |
Definition at line 907 of file Integration.h.
|
protected |
Definition at line 902 of file Integration.h.
|
protected |
Definition at line 901 of file Integration.h.
|
protected |
Definition at line 906 of file Integration.h.
|
protected |
Definition at line 900 of file Integration.h.
|
protected |
Definition at line 883 of file Integration.h.
|
protected |
Definition at line 882 of file Integration.h.
|
protected |
Definition at line 886 of file Integration.h.
|
protected |
Definition at line 887 of file Integration.h.
|
protected |
Definition at line 881 of file Integration.h.
|
protected |
Definition at line 884 of file Integration.h.
|
protected |
Definition at line 885 of file Integration.h.
|
protected |
Definition at line 879 of file Integration.h.
|
protected |
Definition at line 915 of file Integration.h.
|
protected |
Definition at line 918 of file Integration.h.
|
protected |
Definition at line 913 of file Integration.h.
|
protected |
Definition at line 914 of file Integration.h.
|
protected |
Definition at line 917 of file Integration.h.
|
protected |
DataDump binSequence(vector<const DataDump &>); see Subscan.
Definition at line 874 of file Integration.h.
|
protected |
Definition at line 878 of file Integration.h.
|
protected |
Definition at line 912 of file Integration.h.
|
protected |
Definition at line 911 of file Integration.h.
|
protected |
Definition at line 891 of file Integration.h.
|
protected |
Definition at line 890 of file Integration.h.
|
protected |
Definition at line 894 of file Integration.h.
|
protected |
Definition at line 895 of file Integration.h.
|
protected |
Definition at line 889 of file Integration.h.
|
protected |
Definition at line 892 of file Integration.h.
|
protected |
Definition at line 893 of file Integration.h.
|
protected |
Definition at line 916 of file Integration.h.
|
protected |
Definition at line 875 of file Integration.h.
|
protected |
Definition at line 876 of file Integration.h.
|
protected |
Definition at line 877 of file Integration.h.
|
protected |
Definition at line 910 of file Integration.h.
|
protected |
Definition at line 898 of file Integration.h.
|
protected |
Definition at line 897 of file Integration.h.