28 #ifndef TABLES_COMPRESSCOMPLEX_H
29 #define TABLES_COMPRESSCOMPLEX_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,
virtual void getArray(rownr_t rownr, Array< Complex > &array)
Get an array in the given row.
ScalarColumn< Float > * scaleColumn_p
void makeScaleOffset(Float &scale, Float &offset, Float minVal, Float maxVal) const
Make scale and offset from the minimum and maximum of the array data.
virtual void putArrayColumnCells(const RefRows &rownrs, const Array< Complex > &data)
Put some array values in the column.
~CompressComplexSD()
Destructor is mandatory.
virtual void create64(rownr_t initialNrrow)
Initialize the object for a new table.
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
Templated virtual column engine for a table array of any type.
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...
virtual void getSlice(rownr_t rownr, const Slicer &slicer, Array< Complex > &array)
Get 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.
ScalarColumn< Float > * offsetColumn_p
Virtual column engine to scale a table Complex array.
virtual void putSlice(rownr_t 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 void prepare()
Preparing consists of setting the writable switch and adding the initial number of rows in case of cr...
static void registerClass()
Register the class name and the static makeObject "constructor".
virtual void putColumnSlice(const Slicer &slicer, const Array< Complex > &array)
Put a section of all arrays in the column.
virtual String dataManagerType() const
Return the type name of the engine (i.e.
virtual void reopenRW()
Reopen the engine for read/write access.
virtual DataManager * clone() const
Clone the engine object.
virtual DataManager * clone() const
Clone the engine object.
virtual String dataManagerName() const
Get the name given to the engine (is the virtual column name).
void scaleColumnOnPut(const Array< Complex > &array, Array< Int > &target)
Scale and/or offset array to target for the entire column.
static String className()
Return the name of the class.
virtual void findMinMax(Float &minVal, Float &maxVal, const Array< Complex > &array) const
Find minimum and maximum from the array data.
CompressComplex & operator=(const CompressComplex &)
Assignment is not needed and therefore forbidden (so it is made private and not implemented).
~CompressComplex()
Destructor is mandatory.
Class holding the row numbers in a RefTable.
virtual Record dataManagerSpec() const
Record a record containing data manager specifications.
static void registerClass()
Register the class name and the static makeObject "constructor".
virtual void scaleOnPut(Float scale, Float offset, const Array< Complex > &array, Array< Int > &target)
Scale and/or offset array to target.
void scaleColumnOnGet(Array< Complex > &array, const Array< Int > &target)
Scale and/or offset target to array for the entire column.
virtual void putArray(rownr_t rownr, const Array< Complex > &array)
Put an array in the given row.
static String className()
Return the name of the class.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
CompressComplexSD & operator=(const CompressComplexSD &)
Assignment is not needed and therefore forbidden (so it is made private and not implemented).
void putPart(rownr_t 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.
Float getOffset(rownr_t rownr)
Get the offset value for this row.
Virtual column engine to scale a table Complex array for Single Dish data.
virtual void create64(rownr_t initialNrrow)
Initialize the object for a new table.
virtual void putArrayColumn(const Array< Complex > &array)
Put an entire column.
Specify which elements to extract from an n-dimensional array.
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 addRowInit(rownr_t startRow, rownr_t nrrow)
Add rows to the table.
uInt64 rownr_t
Define the type of a row number in a table.
virtual String dataManagerType() const
Return the type name of the engine (i.e.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Define the "constructor" to construct this engine when a table is read back.
Abstract base class for a data manager.
Float getScale(rownr_t rownr)
Get the scale value for this row.
virtual void getColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, Array< Complex > &data)
Get a section of some arrays in the column.
virtual void putColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, const Array< Complex > &data)
Put into a section of some arrays in the column.
String: the storage and methods of handling collections of characters.
virtual void scaleOnPut(Float scale, Float offset, const Array< Complex > &array, Array< Int > &target)
Scale and/or offset array to target.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Define the "constructor" to construct this engine when a table is read back.
virtual void findMinMax(Float &minVal, Float &maxVal, const Array< Complex > &array) const
Find minimum and maximum from the array data.
virtual void getArrayColumnCells(const RefRows &rownrs, Array< Complex > &data)
Get some array values in the column.
virtual void getArrayColumn(Array< Complex > &array)
Get an entire column.
virtual void getColumnSlice(const Slicer &slicer, Array< Complex > &array)
Get a section of all arrays in the column.
void putFullPart(rownr_t 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.