Go to the documentation of this file.
28 #ifndef LATTICES_REBINLATTICE_H
29 #define LATTICES_REBINLATTICE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Array.h>
35 #include <casacore/casa/Arrays/Slicer.h>
36 #include <casacore/lattices/Lattices/MaskedLattice.h>
79 class RebinLattice :
public MaskedLattice<T>
97 RebinLattice<T>&
operator=(
const RebinLattice<T>& other);
100 virtual MaskedLattice<T>*
cloneML()
const;
131 virtual void flush();
146 virtual IPosition
shape()
const;
160 virtual Bool doGetSlice (Array<T>& buffer,
const Slicer& section);
164 virtual void doPutSlice (
const Array<T>& sourceBuffer,
165 const IPosition& where,
166 const IPosition& stride);
175 static IPosition
rebinShape (
const IPosition& shapeLatticeIn,
176 const IPosition&
bin);
181 void bin(
const Array<T>& dataIn);
182 void bin(
const Array<T>& dataIn,
const Array<Bool>& maskIn);
197 #ifndef CASACORE_NO_AUTO_TEMPLATES
198 #include <casacore/lattices/Lattices/RebinLattice.tcc>
199 #endif //# CASACORE_NO_AUTO_TEMPLATES
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking of the lattice which is delegated to its parent.
Specify which elements to extract from an n-dimensional array.
virtual Bool isWritable() const
The lattice is not writable.
virtual Bool ok() const
Check class internals - used for debugging.
A Vector of integers, for indexing into Array<T> objects.
virtual Bool isMasked() const
Is the lattice masked? It is if its parent lattice is masked.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
virtual ~RebinLattice()
Destructor.
virtual String name(Bool stripPath=False) const
Return the name of the parent lattice.
A templated, abstract base class for array-like objects with masks.
virtual void reopen()
If needed, reopen a temporarily closed Lattice.
LockType
Define the possible lock types.
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
virtual MaskedLattice< T > * cloneML() const
Make a copy of the object (reference semantics).
static IPosition rebinShape(const IPosition &shapeLatticeIn, const IPosition &bin)
Static function needed by LEL.
void getDataAndMask(const Slicer §ion)
virtual Bool isPaged() const
Is the lattice paged to disk?
RebinLattice< T > & operator=(const RebinLattice< T > &other)
Assignment (reference semantics)
virtual const LatticeRegion * getRegionPtr() const
Get a pointer the region/mask object.
MaskedLattice< T > * itsLatticePtr
this file contains all the compiler specific defines
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of an array of values.
virtual Bool hasLock(FileLocker::LockType) const
virtual void flush()
Flush the data.
template <class T, class U> class vector;
virtual IPosition shape() const
Returns the shape of the lattice.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
bool Bool
Define the standard types used by Casacore.
Slicer findOriginalSlicer(const Slicer §ion) const
void bin(const Array< T > &dataIn)
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
RebinLattice()
Default constructor (Object is unuseable)