Go to the documentation of this file.
28 #ifndef TABLES_COMPRESSCOMPLEX_H
29 #define TABLES_COMPRESSCOMPLEX_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/tables/DataMan/BaseMappedArrayEngine.h>
34 #include <casacore/tables/Tables/ScalarColumn.h>
35 #include <casacore/casa/Arrays/Array.h>
36 #include <casacore/casa/BasicSL/Complex.h>
150 const String& storedColumnName,
165 const String& storedColumnName,
166 const String& scaleColumnName,
167 const String& offsetColumnName,
445 const String& storedColumnName,
460 const String& storedColumnName,
461 const String& scaleColumnName,
462 const String& offsetColumnName,
Float getOffset(uInt rownr)
Get the offset value for this row.
Specify which elements to extract from an n-dimensional array.
Virtual column engine to scale a table Complex array.
virtual DataManager * clone() const
Clone the engine object.
Abstract base class for a data manager.
virtual void prepare()
Preparing consists of setting the writable switch and adding the initial number of rows in case of cr...
void makeScaleOffset(Float &scale, Float &offset, Float minVal, Float maxVal) const
Make scale and offset from the minimum and maximum of the array data.
Templated virtual column engine for a table array of any type.
ScalarColumn< Float > * offsetColumn_p
virtual void putArrayColumn(const Array< Complex > &array)
Put an entire column.
virtual void getArray(uInt rownr, Array< Complex > &array)
Get an array in the given row.
virtual void create(uInt initialNrrow)
Initialize the object for a new table.
Virtual column engine to scale a table Complex array for Single Dish data.
void scaleColumnOnPut(const Array< Complex > &array, Array< Int > &target)
Scale and/or offset array to target for the entire column.
virtual void putSlice(uInt rownr, const Slicer &slicer, const Array< Complex > &array)
Put into a section of the array in the given row.
virtual void scaleOnGet(Float scale, Float offset, Array< Complex > &array, const Array< Int > &target)
Scale and/or offset target to array.
virtual String dataManagerType() const
Return the type name of the engine (i.e.
virtual Record dataManagerSpec() const
Record a record containing data manager specifications.
~CompressComplexSD()
Destructor is mandatory.
virtual void getColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, Array< Complex > &data)
Get a section of some arrays in the column.
ScalarColumn< Float > * scaleColumn_p
virtual void scaleOnPut(Float scale, Float offset, const Array< Complex > &array, Array< Int > &target)
Scale and/or offset array to target.
static void registerClass()
Register the class name and the static makeObject "constructor".
virtual void create(uInt initialNrrow)
Initialize the object for a new table.
Class holding the row numbers in a RefTable.
CompressComplex & operator=(const CompressComplex &)
Assignment is not needed and therefore forbidden (so it is made private and not implemented).
~CompressComplex()
Destructor is mandatory.
virtual void scaleOnGet(Float scale, Float offset, Array< Complex > &array, const Array< Int > &target)
Scale and/or offset target to array.
Float getScale(uInt rownr)
Get the scale value for this row.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Define the "constructor" to construct this engine when a table is read back.
virtual void getArrayColumnCells(const RefRows &rownrs, Array< Complex > &data)
Get some array values in the column.
void putFullPart(uInt rownr, const Slicer &slicer, Array< Complex > &fullArray, const Array< Complex > &partArray, Float minVal, Float maxVal)
Fill the array part into the full array and put it using the given min/max values.
virtual void getSlice(uInt rownr, const Slicer &slicer, Array< Complex > &array)
Get a section of the array in the given row.
void scaleColumnOnGet(Array< Complex > &array, const Array< Int > &target)
Scale and/or offset target to array for the entire column.
virtual void findMinMax(Float &minVal, Float &maxVal, const Array< Complex > &array) const
Find minimum and maximum from the array data.
virtual void scaleOnPut(Float scale, Float offset, const Array< Complex > &array, Array< Int > &target)
Scale and/or offset array to target.
virtual void addRowInit(uInt startRow, uInt nrrow)
Add rows to the table.
this file contains all the compiler specific defines
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
void putPart(uInt rownr, const Slicer &slicer, const Array< Complex > &array, Float scale, Float offset)
Put a part of an array in a row using given scale/offset values.
virtual void putColumnSlice(const Slicer &slicer, const Array< Complex > &array)
Put a section of all arrays in the column.
CompressComplex(const String &virtualColumnName, const String &storedColumnName, Float scale, Float offset=0)
Construct an engine to scale all arrays in a column with the given offset and scale factor.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Define the "constructor" to construct this engine when a table is read back.
CompressComplexSD & operator=(const CompressComplexSD &)
Assignment is not needed and therefore forbidden (so it is made private and not implemented).
static String className()
Return the name of the class.
static String className()
Return the name of the class.
String: the storage and methods of handling collections of characters.
virtual void putArrayColumnCells(const RefRows &rownrs, const Array< Complex > &data)
Put some array values in the column.
virtual void getColumnSlice(const Slicer &slicer, Array< Complex > &array)
Get a section of all arrays in the column.
virtual DataManager * clone() const
Clone the engine object.
bool Bool
Define the standard types used by Casacore.
virtual void getArrayColumn(Array< Complex > &array)
Get an entire column.
virtual String dataManagerName() const
Get the name given to the engine (is the virtual column name).
A hierarchical collection of named fields of various types.
virtual void reopenRW()
Reopen the engine for read/write access.
virtual void putArray(uInt rownr, const Array< Complex > &array)
Put an array in the given row.
virtual String dataManagerType() const
Return the type name of the engine (i.e.
virtual void putColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, const Array< Complex > &data)
Put into a section of some arrays in the column.
CompressComplexSD(const String &virtualColumnName, const String &storedColumnName, Float scale, Float offset=0)
Construct an engine to scale all arrays in a column with the given offset and scale factor.
virtual void findMinMax(Float &minVal, Float &maxVal, const Array< Complex > &array) const
Find minimum and maximum from the array data.
static void registerClass()
Register the class name and the static makeObject "constructor".