casa
5.7.0-16
|
Sky Model: Model the Sky Brightness for the SkyEquation. More...
#include <SkyModel.h>
Public Types | |
enum | PolRep { CIRCULAR, LINEAR } |
Public Member Functions | |
SkyModel () | |
virtual casacore::Int | numberOfModels ()=0 |
Number of models contained. More... | |
virtual casacore::Int | numberOfTaylorTerms ()=0 |
MFS : Number of taylor terms per model. More... | |
virtual casacore::Double | getReferenceFrequency ()=0 |
MFS : Reference Frequency. More... | |
virtual casacore::Int | getTaylorIndex (casacore::Int index=0)=0 |
MFS : Index of Taylor term in array of nmodels x ntaylorterms. More... | |
virtual casacore::Bool | isSolveable (casacore::Int model=0)=0 |
Is this SkyModel solveable? More... | |
virtual casacore::Bool | doFluxScale (casacore::Int model=0)=0 |
Is there a flux scale image associated with this model? More... | |
virtual void | initializeGradients ()=0 |
Initialize for gradient search. More... | |
virtual void | finalizeGradients ()=0 |
Finalize for gradient search. More... | |
virtual ComponentList & | componentList ()=0 |
Return the component list. More... | |
virtual casacore::Bool | hasComponentList ()=0 |
Return the component list. More... | |
virtual casacore::ImageInterface < casacore::Float > & | image (casacore::Int model=0)=0 |
Image interface for this model (casacore::Stokes representation) More... | |
virtual casacore::ImageInterface < casacore::Float > & | deltaImage (casacore::Int model=0)=0 |
Increment in the image. More... | |
virtual casacore::ImageInterface < casacore::Complex > & | cImage (casacore::Int model=0)=0 |
casacore::Complex image (needed for e.g. More... | |
virtual casacore::ImageInterface < casacore::Complex > & | XFR (casacore::Int model=0, casacore::Int numXFR=0)=0 |
casacore::Complex XFR More... | |
virtual casacore::Bool | hasXFR (casacore::Int model=0)=0 |
virtual casacore::ImageInterface < casacore::Float > & | PSF (casacore::Int model=0)=0 |
PSF. More... | |
virtual casacore::ImageInterface < casacore::Float > & | gS (casacore::Int model=0)=0 |
Gradient of chi-squared wrt pixels. More... | |
virtual casacore::ImageInterface < casacore::Float > & | ggS (casacore::Int model=0)=0 |
Grad Grad chi-squared wrt pixels (diagonal elements only) More... | |
virtual casacore::ImageInterface < casacore::Float > & | fluxScale (casacore::Int model=0)=0 |
FluxScale image: image * fluxScale => true brightness distribution. More... | |
virtual casacore::ImageInterface < casacore::Float > & | work (casacore::Int model=0)=0 |
Work image. More... | |
virtual void | addStatistics (casacore::Float sumwt, casacore::Float chisq)=0 |
Add to Sum weights, Chi-Squared. More... | |
virtual casacore::Matrix < casacore::Float > & | weight (casacore::Int model=0)=0 |
Weight per model (channels, polarizations) More... | |
virtual casacore::Bool | solve (SkyEquation &se)=0 |
Solve for this SkyModel. More... | |
virtual casacore::Bool | isEmpty (casacore::Int model=0)=0 |
Is this model empty. More... | |
virtual casacore::Int | getModelIndex (casacore::uInt field=0, casacore::uInt taylor=0)=0 |
void | setAlgorithm (const casacore::String &alg) |
set Algorithm (e.g clean, mem, nnls) More... | |
const casacore::String | getAlgorithm () |
get Algorithm More... | |
void | setSubAlgorithm (const casacore::String &alg) |
set Sub Algorithm More... | |
const casacore::String | getSubAlgorithm () |
get Sub Algorithm More... | |
void | setImageRegion (casacore::ImageRegion &ir) |
Set the imageregion that will be used for the next XFR generation. More... | |
void | unsetImageRegion () |
use the default shape More... | |
void | setImageNormalization (casacore::Bool val) |
casacore::Bool | isImageNormalized () |
virtual void | setMemoryUse (casacore::Bool memuse)=0 |
set and get memory usage model More... | |
virtual casacore::Bool | getMemoryUse ()=0 |
Public Member Functions inherited from casa::Iterate | |
Iterate () | |
Constructor. More... | |
virtual | ~Iterate () |
void | setFree () |
Is this a free variable? More... | |
void | setNotFree () |
casacore::Bool | free () |
void | setNumberIterations (const casacore::Int n) |
void | setGain (const casacore::Float g) |
void | setTolerance (const casacore::Float t) |
void | setThreshold (const casacore::Float t) |
void | setMode (const casacore::String m) |
casacore::Int | numberIterations () |
casacore::Float | gain () |
casacore::Float | tolerance () |
virtual casacore::Float | threshold () |
const casacore::String | mode () |
Protected Attributes | |
casacore::String | itsAlgorithm |
casacore::String | itsSubAlgorithm |
casacore::ImageRegion * | imageRegion_p |
this casacore::ImageRegion is used to suggest the shape for the XFR. More... | |
casacore::Bool | isImageNormalized_p |
Sky Model: Model the Sky Brightness for the SkyEquation.
Public interface
SkyModel describes an interface for Models to be used in the SkyEquation. It is an Abstract Base Class: most methods must be defined in derived classes.
A SkyModel contains a number of separate models. The interface to SkyEquation is via an image per model. SkyEquation uses this image to calculate Fourier transforms, etc. Some (most) SkyModels are solvable: the SkyEquation can be used by the SkyModel to return gradients with respect to itself (via the image interface). Thus for a SkyModel to solve for itself, it calls the SkyEquation methods to get gradients of chi-squared with respect to the image pixel values (thus returning an image: basically a residual image). The SkyModel then uses these gradients as appropriate to update itself.
The following examples illustrate how a SkyModel can be used:
The properties of a model of the sky must be described for the SkyEquation.
Definition at line 132 of file SkyModel.h.
Enumerator | |
---|---|
CIRCULAR | |
LINEAR |
Definition at line 136 of file SkyModel.h.
|
inline |
Definition at line 141 of file SkyModel.h.
|
pure virtual |
Add to Sum weights, Chi-Squared.
Implemented in casa::ImageSkyModel.
|
pure virtual |
|
pure virtual |
Return the component list.
Implemented in casa::ImageSkyModel.
|
pure virtual |
Increment in the image.
Implemented in casa::ImageSkyModel.
|
pure virtual |
Is there a flux scale image associated with this model?
Implemented in casa::ImageSkyModel.
|
pure virtual |
Finalize for gradient search.
Implemented in casa::ImageSkyModel.
|
pure virtual |
FluxScale image: image * fluxScale => true brightness distribution.
Implemented in casa::ImageSkyModel.
|
inline |
|
pure virtual |
Implemented in casa::ImageSkyModel.
|
pure virtual |
Implemented in casa::ImageSkyModel, and casa::WBCleanImageSkyModel.
|
pure virtual |
MFS : Reference Frequency.
Implemented in casa::ImageSkyModel, and casa::WBCleanImageSkyModel.
|
inline |
|
pure virtual |
MFS : Index of Taylor term in array of nmodels x ntaylorterms.
Implemented in casa::ImageSkyModel.
|
pure virtual |
Grad Grad chi-squared wrt pixels (diagonal elements only)
Implemented in casa::ImageSkyModel.
|
pure virtual |
Gradient of chi-squared wrt pixels.
Implemented in casa::ImageSkyModel.
|
pure virtual |
Return the component list.
Implemented in casa::ImageSkyModel.
|
pure virtual |
Implemented in casa::ImageSkyModel.
|
pure virtual |
Image interface for this model (casacore::Stokes representation)
Implemented in casa::ImageSkyModel.
|
pure virtual |
Initialize for gradient search.
Implemented in casa::ImageSkyModel.
|
pure virtual |
Is this model empty.
Implemented in casa::ImageSkyModel.
|
inline |
Definition at line 235 of file SkyModel.h.
References isImageNormalized_p.
|
pure virtual |
Is this SkyModel solveable?
Implemented in casa::ImageSkyModel.
|
pure virtual |
Number of models contained.
Implemented in casa::ImageSkyModel.
|
pure virtual |
MFS : Number of taylor terms per model.
Implemented in casa::ImageSkyModel, and casa::WBCleanImageSkyModel.
|
pure virtual |
PSF.
Implemented in casa::ImageSkyModel.
|
inline |
set Algorithm (e.g clean, mem, nnls)
Definition at line 216 of file SkyModel.h.
References itsAlgorithm.
|
inline |
Definition at line 234 of file SkyModel.h.
References isImageNormalized_p.
|
inline |
Set the imageregion that will be used for the next XFR generation.
Definition at line 229 of file SkyModel.h.
References imageRegion_p.
|
pure virtual |
set and get memory usage model
Implemented in casa::ImageSkyModel.
|
inline |
|
pure virtual |
Solve for this SkyModel.
Implemented in casa::ImageSkyModel, casa::MFMSCleanImageSkyModel, casa::MSCleanImageSkyModel, casa::WFCleanImageSkyModel, casa::WBCleanImageSkyModel, casa::ClarkCleanImageSkyModel, casa::MFCleanImageSkyModel, casa::CSCleanImageSkyModel, casa::MFCEMemImageSkyModel, casa::CEMemImageSkyModel, casa::PClarkCleanImageSkyModel, casa::HogbomCleanImageSkyModel, casa::PWFCleanImageSkyModel, and casa::NNLSImageSkyModel.
|
inline |
|
pure virtual |
Weight per model (channels, polarizations)
Implemented in casa::ImageSkyModel.
|
pure virtual |
Work image.
Implemented in casa::ImageSkyModel.
|
pure virtual |
casacore::Complex XFR
Implemented in casa::ImageSkyModel.
|
protected |
this casacore::ImageRegion is used to suggest the shape for the XFR.
If null, then just use the shape of image(model)
Definition at line 246 of file SkyModel.h.
Referenced by setImageRegion(), and unsetImageRegion().
|
protected |
Definition at line 247 of file SkyModel.h.
Referenced by isImageNormalized(), and setImageNormalization().
|
protected |
Definition at line 242 of file SkyModel.h.
Referenced by getAlgorithm(), and setAlgorithm().
|
protected |
Definition at line 243 of file SkyModel.h.
Referenced by getSubAlgorithm(), and setSubAlgorithm().