29 #ifndef VISIMAGINGWEIGHT_H
30 #define VISIMAGINGWEIGHT_H
38 template<
class T>
class Matrix;
39 template<
class T>
class Vector;
40 template<
class T>
class ImageInterface;
47 class ROVisibilityIterator;
185 #endif // VISIMAGINGWEIGHT_H
virtual casacore::Bool getWeightDensity(casacore::Block< casacore::Matrix< casacore::Float > > &density)
This is to get/set uniform style weight density...e.g if the caller wants to add densities from diffe...
A Lattice that can be used for temporary storage.
std::vector< double > Vector
Object to hold type of imaging weight scheme to be used on the fly and to provide facilities to do th...
VisibilityIterator2 iterates through one or more readonly MeasurementSets.
casacore::Quantity noise_p
virtual Type type()
Return the type enum.
casacore::Vector< casacore::Float > d2_p
casacore::Vector< casacore::Float > f2_p
VisImagingWeight & operator=(const VisImagingWeight &imwgt)
reference semantically = operator
std::map< casacore::String, casacore::Int > multiFieldMap_p
virtual void setWeightDensity(const casacore::Block< casacore::Matrix< casacore::Float > > &density)
*virtual void weightRadial(casacore::Matrix< casacore::Float > &imagingWeight, const casacore::Matrix< casacore::Bool > &flag, const casacore::Matrix< casacore::Double > &uvw, const casacore::Vector< casacore::Double > &frequency, const casacore::Matrix< casacore::Float > &weight) const
Radial weighting imagingWeight should be sized by (nchan, row) already.
virtual ~VisImagingWeight()
VisImagingWeight()
empty constructor
casacore::Vector< casacore::Int > shapeOfdensityGrid()
virtual void weightUniform(casacore::Matrix< casacore::Float > &imagingWeight, const casacore::Matrix< casacore::Bool > &flag, const casacore::Matrix< casacore::Double > &uvw, const casacore::Vector< casacore::Double > &frequency, const casacore::Matrix< casacore::Float > &weight, const casacore::Int msid, const casacore::Int fieldid) const
casacore::Function to calculate the uniform style weights, include Brigg's for example imagingWeight ...
casacore::Int activeFieldIndex_p
Referenced counted pointer for constant data.
casacore::Matrix< casacore::Float > a_gwt_p
casacore::Double robust_p
virtual void weightNatural(casacore::Matrix< casacore::Float > &imagingWeight, const casacore::Matrix< casacore::Bool > &flag, const casacore::Matrix< casacore::Float > &weight) const
Natural weighting scheme imagingWeight should be sized by (nchan, row) already.
virtual void setFilter(const casacore::String &type, const casacore::Quantity &bmaj, const casacore::Quantity &bmin, const casacore::Quantity &bpa)
setting uv filtering
bool Bool
Define the standard types used by Casacore.
casacore::Bool doFilter_p
casacore::String wgtType_p
static void unPolChanWeight(casacore::Matrix< casacore::Float > &chanRowWt, const casacore::Cube< casacore::Float > &corrChanRowWt)
Form corr-indep weight by averaging parallel-hand weights.
void cube2Matrix(const casacore::Cube< casacore::Bool > &fcube, casacore::Matrix< casacore::Bool > &fMat)
virtual casacore::Bool doFilter() const
returns if uv filtering is set
casacore::Block< casacore::CountedPtr< casacore::TempLattice< casacore::Float > > > gwt_p
virtual void filter(casacore::Matrix< casacore::Float > &imWeight, const casacore::Matrix< casacore::Bool > &flag, const casacore::Matrix< casacore::Double > &uvw, const casacore::Vector< casacore::Double > &frequency, const casacore::Matrix< casacore::Float > &weight) const
do uvfiltering...to be called after imaging weight is calculated
String: the storage and methods of handling collections of characters.
virtual void toImageInterface(casacore::ImageInterface< casacore::Float > &im)
you have to make sure the imageinterface passed has the shape of gwt on the first 2 axex and last axi...
ROVisibilityIterator iterates through one or more readonly MeasurementSets.
virtual casacore::String getType() const
Get the type of weighting this object is on..will return one of "natural", "uniform", "radial".
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.