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 A Vector of integers, for indexing into Array<T> objects.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
RebinLattice< T > & operator=(const RebinLattice< T > &other)
Assignment (reference semantics)
virtual Bool isMasked() const
Is the lattice masked? It is if its parent lattice is masked.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of an array of values.
virtual MaskedLattice< T > * cloneML() const
Make a copy of the object (reference semantics).
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.
virtual void flush()
Flush the data.
void bin(const Array< T > &dataIn)
A templated, abstract base class for array-like objects with masks.
virtual Bool isPaged() const
Is the lattice paged to disk?
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
RebinLattice()
Default constructor (Object is unuseable)
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking of the lattice which is delegated to its parent.
virtual Bool isWritable() const
The lattice is not writable.
virtual const LatticeRegion * getRegionPtr() const
Get a pointer the region/mask object.
virtual Bool hasLock(FileLocker::LockType) const
bool Bool
Define the standard types used by Casacore.
virtual Bool ok() const
Check class internals - used for debugging.
virtual void reopen()
If needed, reopen a temporarily closed Lattice.
virtual ~RebinLattice()
Destructor.
virtual String name(Bool stripPath=False) const
Return the name of the parent lattice.
MaskedLattice< T > * itsLatticePtr
template <class T, class U> class vector;
Specify which elements to extract from an n-dimensional array.
static IPosition rebinShape(const IPosition &shapeLatticeIn, const IPosition &bin)
Static function needed by LEL.
LockType
Define the possible lock types.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
void getDataAndMask(const Slicer §ion)
Slicer findOriginalSlicer(const Slicer §ion) const
this file contains all the compiler specific defines