casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
casa::ImagePolarimetry Class Reference

Polarimetric analysis of images. More...

#include <ImagePolarimetry.h>

List of all members.

Public Types

enum  StokesTypes {
  I,
  Q,
  U,
  V
}
 Stokes types. More...

Public Member Functions

 ImagePolarimetry (const ImageInterface< Float > &image)
 Constructor.
 ImagePolarimetry (const ImagePolarimetry &other)
 Copy constructor (reference semantics)
virtual ~ImagePolarimetry ()
 Destructor.
ImagePolarimetryoperator= (const ImagePolarimetry &other)
 Assignment operator (reference semantics)
void summary (LogIO &os) const
 Summary.
const ImageInterface< Float > * imageInterface () const
 Get the ImageInterface pointer of the construction image Don't delete it !
CoordinateSystem coordinates () const
 Get the CoordinateSystem of the construction image.
IPosition shape () const
 Get the shape of the construction image.
Bool isMasked () const
 Is the construction image masked ?
IPosition singleStokesShape (CoordinateSystem &cSys, Stokes::StokesTypes type) const
 Get the shape and CoordinateSystem of an image for a single Stokes pixel Thus, if the construction image shape was [10,10,4,20] where axis 2 (shape 4) is the Stokes axis, this function would return [10,10,1,20] Specify the type of Stokes pixel you want.
ImageExpr< Complex > complexLinearPolarization ()
 Complex linear polarization.
ImageExpr< Complex > complexFractionalLinearPolarization ()
 Complex fractional linear polarization.
ImageExpr< FloatstokesI () const
 Get the Stokes I image and the standard deviation of the I image.
Float sigmaStokesI (Float clip=10.0)
ImageExpr< FloatstokesQ () const
 Get the Stokes Q image and the standard deviation of the Q image.
Float sigmaStokesQ (Float clip=10.0)
ImageExpr< FloatstokesU () const
 Get the Stokes U image and the standard deviation of the U image.
Float sigmaStokesU (Float clip=10.0)
ImageExpr< FloatstokesV () const
 Get the Stokes V image and the standard deviation of the V image.
Float sigmaStokesV (Float clip=10.0)
ImageExpr< Floatstokes (ImagePolarimetry::StokesTypes index) const
 Get the specified Stokes image and the standard deviation of the image.
Float sigmaStokes (ImagePolarimetry::StokesTypes index, Float clip=10.0)
Float sigma (Float clip=10.0)
 Get the best estimate of the statistical noise.
ImageExpr< FloatlinPolInt (Bool debias, Float clip=10.0, Float sigma=-1.0)
 Get the linearly polarized intensity image and its standard deviation.
Float sigmaLinPolInt (Float clip=10.0, Float sigma=-1.0)
ImageExpr< FloattotPolInt (Bool debias, Float clip=10.0, Float sigma=-1.0)
 Get the total polarized intensity (from whatever combination of Q, U, and V the construction image has) image and its error (standard deviation).
Float sigmaTotPolInt (Float clip=10.0, Float sigma=-1.0)
ImageExpr< FloatlinPolPosAng (Bool radians) const
 Get linearly polarized position angle (degrees or radians) image and error (standard deviation).
ImageExpr< FloatsigmaLinPolPosAng (Bool radians, Float clip=10.0, Float sigma=-1.0)
ImageExpr< FloatfracLinPol (Bool debias, Float clip=10.0, Float sigma=-1.0)
 Get fractional linear polarization image and error (standard deviation).
ImageExpr< FloatsigmaFracLinPol (Float clip=10.0, Float sigma=-1.0)
ImageExpr< FloatfracTotPol (Bool debias, Float clip=10.0, Float sigma=-1.0)
 Get Fractional total polarization and error (standard deviation) var is the standard deviation of the thermal noise.
ImageExpr< FloatsigmaFracTotPol (Float clip=10.0, Float sigma=-1.0)
void fourierRotationMeasure (ImageInterface< Complex > &pol, Bool zeroZeroLag)
 Fourier Rotation Measure.
IPosition rotationMeasureShape (CoordinateSystem &cSys, Int &frequencyAxis, Int &stokesAxis, LogIO &os, Int spectralAxis=-1) const
 This function is used in concert with the rotationMeasure function.
IPosition positionAngleShape (CoordinateSystem &cSys, Int &frequencyAxis, Int &stokesAxis, LogIO &os, Int spectralAxis=-1) const
 This function is used in concert with the rotationMeasure function.
void rotationMeasure (ImageInterface< Float > *&rmPtr, ImageInterface< Float > *&rmErrPtr, ImageInterface< Float > *&pa0Ptr, ImageInterface< Float > *&pa0ErrPtr, ImageInterface< Float > *&nTurns, ImageInterface< Float > *&rChiSqPtr, PGPlotter &plotter, Int spectralAxis, Float rmMax, Float maxPaErr=1.0e30, Float sigma=-1.0, Float rmFg=0.0, Bool showProgress=False)
 This function applies a traditional (i.e.

Static Public Member Functions

static ImageExpr< FloatdepolarizationRatio (const ImageInterface< Float > &im1, const ImageInterface< Float > &im2, Bool debias, Float clip=10.0, Float sigma=-1.0)
 Depolarization ratio image and error.
static ImageExpr< FloatsigmaDepolarizationRatio (const ImageInterface< Float > &im1, const ImageInterface< Float > &im2, Bool debias, Float clip=10.0, Float sigma=-1.0)

Private Member Functions

void cleanup ()
 Delete all private pointers.
void copyDataAndMask (ImageInterface< Float > &out, ImageInterface< Float > &in) const
 Copy data and mask.
Bool dealWithMask (Lattice< Bool > *&pMask, ImageInterface< Float > *&pIm, LogIO &os, const String &type) const
 For traiditional RM approach, give output a mask if possible.
void fiddleStokesCoordinate (ImageInterface< Float > &ie, Stokes::StokesTypes type) const
 Change the Stokes Coordinate for the given float image to be of the specified Stokes type.
void fiddleStokesCoordinate (CoordinateSystem &cSys, Stokes::StokesTypes type) const
void fiddleStokesCoordinate (ImageInterface< Complex > &ie, Stokes::StokesTypes type) const
 Change the Stokes Coordinate for the given complex image to be of the specified Stokes type.
void fiddleTimeCoordinate (ImageInterface< Complex > &ie, const Quantum< Double > &f, Int coord) const
 Change the time coordinate to be rotation measure.
Quantum< DoublefindCentralFrequency (const Coordinate &coord, Int shape) const
 Find the central frequency from the given spectral coordinate.
Bool findRotationMeasure (Float &rmFitted, Float &rmErrFitted, Float &pa0Fitted, Float &pa0ErrFitted, Float &rChiSqFitted, Float &nTurns, const Vector< uInt > &sortidx, const Vector< Float > &wsq, const Vector< Float > &pa, const Array< Bool > &paMask, const Array< Float > &paerr, Float rmfg, Float rmmax, Float paErrMax, PGPlotter &plotter, const String &posString)
 Fit the spectrum of position angles to find the rotation measure via Leahy algorithm.
void findStokes ()
 Find the Stokes in the construction image and assign pointers.
Int findSpectralCoordinate (const CoordinateSystem &cSys, LogIO &os, Bool fail) const
 Find the spectral coordinate.
void findFrequencyAxis (Int &spectralCoord, Int &fAxis, const CoordinateSystem &cSys, Int spectralAxis) const
 FInd frequency axis.
void hasQU () const
 So we have Q and U ? Excpetion if not.
LatticeExprNode makePolIntNode (LogIO &os, Bool debias, Float clip, Float sigma, Bool doLin, Bool doCirc)
 Make a LEN for the give types of polarized intensity.
ImageExpr< FloatmakeStokesExpr (ImageInterface< Float > *imPtr, Stokes::StokesTypes type, const String &name) const
 Make an IE for the specified Stokes.
ImageInterface< Float > * makeSubImage (IPosition &blc, IPosition &trc, Int axis, Int pix) const
 Make a SubImage from the construction image for the specified pixel along the specified pixel axis.
Bool rmLsqFit (Vector< Float > &pars, const Vector< Float > &wsq, const Vector< Float > pa, const Vector< Float > &paerr) const
 Least squares fit to find RM from position angles.
Bool rmPrimaryFit (Float &nTurns, Float &rmFitted, Float &rmErrFitted, Float &pa0Fitted, Float &pa0ErrFitted, Float &rChiSqFitted, const Vector< Float > &wsq, const Vector< Float > &pa, const Vector< Float > &paerr, Float rmmax, PGPlotter &plotter, const String &posString)
 Fit the spectrum of position angles to find the rotation measure via Leahy algorithm for primary (n>2) points.
Bool rmSupplementaryFit (Float &nTurns, Float &rmFitted, Float &rmErrFitted, Float &pa0Fitted, Float &pa0ErrFitted, Float &rChiSqFitted, const Vector< Float > &wsq, const Vector< Float > &pa, const Vector< Float > &paerr)
 Fit the spectrum of position angles to find the rotation measure via Leahy algorithm for supplementary (n==2) points.
String stokesName (ImagePolarimetry::StokesTypes index) const
 Return I, Q, U or V for specified integer index (0-3)
Stokes::StokesTypes stokesType (ImagePolarimetry::StokesTypes index) const
 Return I, Q, U or V for specified integer index (0-3)
Float sigma (ImagePolarimetry::StokesTypes index, Float clip)
 Find the standard deviation for the Stokes image specified by the integer index.
void subtractProfileMean (ImageInterface< Float > &im, uInt axis) const
 Subtract profile mean from image.
void _createBeamsEqMat ()
Bool _checkBeams (const Vector< StokesTypes > &stokes, const Bool requireChannelEquality, const Bool throws=True) const
Bool _checkIQUBeams (const Bool requireChannelEquality, const Bool throws=True) const
Bool _checkIVBeams (const Bool requireChannelEquality, const Bool throws=True) const
Bool _checkQUBeams (const Bool requireChannelEquality, const Bool throws=True) const
void _setInfo (ImageInterface< Complex > &im, const StokesTypes stokes) const
void _setInfo (ImageInterface< Float > &im, const StokesTypes stokes) const
void _setDoLinDoCirc (Bool &doLin, Bool &doCirc) const

Static Private Member Functions

static void _checkBeams (const ImagePolarimetry &im1, const ImagePolarimetry &im2, const Vector< StokesTypes > &stokes)

Private Attributes

const ImageInterface< Float > * itsInImagePtr
 
 

LinearFitSVD< Float > * itsFitterPtr
Float itsOldClip
PtrBlock< ImageInterface
< Float > * > 
itsStokesPtr
 These blocks are always size 4, with IQUV in slots 0,1,2,3 If your image is IV only, they still use slots 0 and 3.
PtrBlock< LatticeStatistics
< Float > * > 
itsStokesStatsPtr
Matrix< Bool_beamsEqMat

Detailed Description

Polarimetric analysis of images.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Polarimetric analysis of Images

Synopsis

This class provides polarimetric image analysis capability. It takes an image with a Stokes axis (some combination of IQUV is needed) as its input.

Many functions return ImageExpr objects. These are read-only images.

Sometimes the standard deviation of the noise is needed. This is for debiasing polarized intensity images or working out error images. By default it is worked out for you with a clipped mean algorithm. However, you can provide sigma if you know it accurately. It should be the standard deviation of the noise in the absence of signal. You won't measure that very well from Stokes I if it is dynamic range limited. Better to get it from V or Q or U. When this class needs the standard deviation of the noise, it will try and get it from V or Q and U and finally I.

However, note that the functions sigmaStokes{I,Q,U,V} DO return the standard deviation of the noise for that specific Stokes type.

The ImageExpr objects returned have the brightness units and ImageInfo set. The MiscInfo (a permanent record) and logSink are not set.

Motivation

Basic image analysis capability

To Do

Definition at line 112 of file ImagePolarimetry.h.


Member Enumeration Documentation

Stokes types.

Enumerator:
I 
Q 
U 
V 

Definition at line 117 of file ImagePolarimetry.h.


Constructor & Destructor Documentation

Constructor.

The input image must have a Stokes axis with some subset of I,Q,U, and V

Copy constructor (reference semantics)

Destructor.


Member Function Documentation

Bool casa::ImagePolarimetry::_checkBeams ( const Vector< StokesTypes > &  stokes,
const Bool  requireChannelEquality,
const Bool  throws = True 
) const [private]
static void casa::ImagePolarimetry::_checkBeams ( const ImagePolarimetry im1,
const ImagePolarimetry im2,
const Vector< StokesTypes > &  stokes 
) [static, private]
Bool casa::ImagePolarimetry::_checkIQUBeams ( const Bool  requireChannelEquality,
const Bool  throws = True 
) const [private]
Bool casa::ImagePolarimetry::_checkIVBeams ( const Bool  requireChannelEquality,
const Bool  throws = True 
) const [private]
Bool casa::ImagePolarimetry::_checkQUBeams ( const Bool  requireChannelEquality,
const Bool  throws = True 
) const [private]
void casa::ImagePolarimetry::_setDoLinDoCirc ( Bool doLin,
Bool doCirc 
) const [private]
void casa::ImagePolarimetry::_setInfo ( ImageInterface< Complex > &  im,
const StokesTypes  stokes 
) const [private]
void casa::ImagePolarimetry::_setInfo ( ImageInterface< Float > &  im,
const StokesTypes  stokes 
) const [private]
void casa::ImagePolarimetry::cleanup ( ) [private]

Delete all private pointers.

Complex fractional linear polarization.

Complex linear polarization.

Get the CoordinateSystem of the construction image.

Definition at line 141 of file ImagePolarimetry.h.

References casa::ImageInterface< T >::coordinates(), and itsInImagePtr.

void casa::ImagePolarimetry::copyDataAndMask ( ImageInterface< Float > &  out,
ImageInterface< Float > &  in 
) const [private]

Copy data and mask.

Bool casa::ImagePolarimetry::dealWithMask ( Lattice< Bool > *&  pMask,
ImageInterface< Float > *&  pIm,
LogIO os,
const String type 
) const [private]

For traiditional RM approach, give output a mask if possible.

static ImageExpr<Float> casa::ImagePolarimetry::depolarizationRatio ( const ImageInterface< Float > &  im1,
const ImageInterface< Float > &  im2,
Bool  debias,
Float  clip = 10.0,
Float  sigma = -1.0 
) [static]

Depolarization ratio image and error.

Requires two images hence static functions.

Change the Stokes Coordinate for the given float image to be of the specified Stokes type.

void casa::ImagePolarimetry::fiddleStokesCoordinate ( ImageInterface< Complex > &  ie,
Stokes::StokesTypes  type 
) const [private]

Change the Stokes Coordinate for the given complex image to be of the specified Stokes type.

void casa::ImagePolarimetry::fiddleTimeCoordinate ( ImageInterface< Complex > &  ie,
const Quantum< Double > &  f,
Int  coord 
) const [private]

Change the time coordinate to be rotation measure.

Quantum<Double> casa::ImagePolarimetry::findCentralFrequency ( const Coordinate coord,
Int  shape 
) const [private]

Find the central frequency from the given spectral coordinate.

void casa::ImagePolarimetry::findFrequencyAxis ( Int spectralCoord,
Int fAxis,
const CoordinateSystem cSys,
Int  spectralAxis 
) const [private]

FInd frequency axis.

Bool casa::ImagePolarimetry::findRotationMeasure ( Float rmFitted,
Float rmErrFitted,
Float pa0Fitted,
Float pa0ErrFitted,
Float rChiSqFitted,
Float nTurns,
const Vector< uInt > &  sortidx,
const Vector< Float > &  wsq,
const Vector< Float > &  pa,
const Array< Bool > &  paMask,
const Array< Float > &  paerr,
Float  rmfg,
Float  rmmax,
Float  paErrMax,
PGPlotter plotter,
const String posString 
) [private]

Fit the spectrum of position angles to find the rotation measure via Leahy algorithm.

Int casa::ImagePolarimetry::findSpectralCoordinate ( const CoordinateSystem cSys,
LogIO os,
Bool  fail 
) const [private]

Find the spectral coordinate.

Find the Stokes in the construction image and assign pointers.

void casa::ImagePolarimetry::fourierRotationMeasure ( ImageInterface< Complex > &  pol,
Bool  zeroZeroLag 
)

Fourier Rotation Measure.

The output image is the complex polarization (Q + iU) with the spectral axis replaced by a RotationMeasure axis. The appropriate shape and CoordinateSystem must be obtained with function singleStokesShape (ask for type STokes::Plinear). Howeverm this function will replace the SpectralCoordinate by a LinearCoordinate describing the Rotation Measure. ImageInfo, and Units are copied to the output. MiscInfo and history are not. If the output has a mask, and the input is masked, the mask is copied. If the output has a mask, it should already have been initialized to True

ImageExpr<Float> casa::ImagePolarimetry::fracLinPol ( Bool  debias,
Float  clip = 10.0,
Float  sigma = -1.0 
)

Get fractional linear polarization image and error (standard deviation).

If wish to debias the image, you can either provide sigma (the standard deviation of the termal noise) or if sigma is non-positive, it will be worked out for you with a clipped mean algorithm.

ImageExpr<Float> casa::ImagePolarimetry::fracTotPol ( Bool  debias,
Float  clip = 10.0,
Float  sigma = -1.0 
)

Get Fractional total polarization and error (standard deviation) var is the standard deviation of the thermal noise.

If sigma is non-positive, it will be worked out for you with a clipped mean algorithm.

void casa::ImagePolarimetry::hasQU ( ) const [private]

So we have Q and U ? Excpetion if not.

Get the ImageInterface pointer of the construction image Don't delete it !

Definition at line 138 of file ImagePolarimetry.h.

References itsInImagePtr.

Is the construction image masked ?

Definition at line 147 of file ImagePolarimetry.h.

References casa::MaskedLattice< T >::isMasked(), and itsInImagePtr.

ImageExpr<Float> casa::ImagePolarimetry::linPolInt ( Bool  debias,
Float  clip = 10.0,
Float  sigma = -1.0 
)

Get the linearly polarized intensity image and its standard deviation.

If wish to debias the image, you can either provide sigma (the standard deviation of the termal noise ) or if sigma is non-positive, it will be worked out for you with a clipped mean algorithm.

Get linearly polarized position angle (degrees or radians) image and error (standard deviation).

If you provide sigma it is the standard deviation of the termal noise. If sigma is non-positive, it will be worked out for you with a clipped mean algorithm.

LatticeExprNode casa::ImagePolarimetry::makePolIntNode ( LogIO os,
Bool  debias,
Float  clip,
Float  sigma,
Bool  doLin,
Bool  doCirc 
) [private]

Make a LEN for the give types of polarized intensity.

ImageExpr<Float> casa::ImagePolarimetry::makeStokesExpr ( ImageInterface< Float > *  imPtr,
Stokes::StokesTypes  type,
const String name 
) const [private]

Make an IE for the specified Stokes.

ImageInterface<Float>* casa::ImagePolarimetry::makeSubImage ( IPosition blc,
IPosition trc,
Int  axis,
Int  pix 
) const [private]

Make a SubImage from the construction image for the specified pixel along the specified pixel axis.

ImagePolarimetry& casa::ImagePolarimetry::operator= ( const ImagePolarimetry other)

Assignment operator (reference semantics)

IPosition casa::ImagePolarimetry::positionAngleShape ( CoordinateSystem cSys,
Int frequencyAxis,
Int stokesAxis,
LogIO os,
Int  spectralAxis = -1 
) const

This function is used in concert with the rotationMeasure function.

It tells you what the shape of the output Position Angle image should be, and gives you its CoordinateSystem. Because the ImagePolarimetry construction image may house the frequencies coordinate description in a Spectral, Tabular or Linear coordinate, you may explicitly specify which axis is the Spectral axis (spectralAxis). By default, it tries to find the SpectralCoordinate. If there is none, it will look for Tabular or Linear coordinates with a "FREQ" label.

Bool casa::ImagePolarimetry::rmLsqFit ( Vector< Float > &  pars,
const Vector< Float > &  wsq,
const Vector< Float pa,
const Vector< Float > &  paerr 
) const [private]

Least squares fit to find RM from position angles.

Bool casa::ImagePolarimetry::rmPrimaryFit ( Float nTurns,
Float rmFitted,
Float rmErrFitted,
Float pa0Fitted,
Float pa0ErrFitted,
Float rChiSqFitted,
const Vector< Float > &  wsq,
const Vector< Float > &  pa,
const Vector< Float > &  paerr,
Float  rmmax,
PGPlotter plotter,
const String posString 
) [private]

Fit the spectrum of position angles to find the rotation measure via Leahy algorithm for primary (n>2) points.

Bool casa::ImagePolarimetry::rmSupplementaryFit ( Float nTurns,
Float rmFitted,
Float rmErrFitted,
Float pa0Fitted,
Float pa0ErrFitted,
Float rChiSqFitted,
const Vector< Float > &  wsq,
const Vector< Float > &  pa,
const Vector< Float > &  paerr 
) [private]

Fit the spectrum of position angles to find the rotation measure via Leahy algorithm for supplementary (n==2) points.

void casa::ImagePolarimetry::rotationMeasure ( ImageInterface< Float > *&  rmPtr,
ImageInterface< Float > *&  rmErrPtr,
ImageInterface< Float > *&  pa0Ptr,
ImageInterface< Float > *&  pa0ErrPtr,
ImageInterface< Float > *&  nTurns,
ImageInterface< Float > *&  rChiSqPtr,
PGPlotter plotter,
Int  spectralAxis,
Float  rmMax,
Float  maxPaErr = 1.0e30,
Float  sigma = -1.0,
Float  rmFg = 0.0,
Bool  showProgress = False 
)

This function applies a traditional (i.e.

non-Fourier) Rotation Measure algorithm (Leahy et al, A&A, 156, 234) approach. For the RM images you must get the shape and CoordinateSYstem from function rotationMeasureShape. For the position angle images, use function singleStokesShape. Null pointer ImageInterface objects are not accessed so you can select which output images you want. Any output images not masked will be given a mask. The position angles are all in degrees. The RM images in rad/m/m. ImageInfo and Units, are copied to the output. MiscInfo and history are not. You specify which axis houses the frequencies, the noise level of Q and U if you know it (by default it is worked out for you) for error images, the value of the foreground RM if you know it (helps for unwinding ambiguity), the absolute maximum RM it should solve for, and the maximum error in the position angle that should be allowed. The state of the plotter should be set by the caller (e.g. character size, number of plots in x and y etc).

IPosition casa::ImagePolarimetry::rotationMeasureShape ( CoordinateSystem cSys,
Int frequencyAxis,
Int stokesAxis,
LogIO os,
Int  spectralAxis = -1 
) const

This function is used in concert with the rotationMeasure function.

It tells you what the shape of the output RM image should be, and gives you its CoordinateSystem. Because the ImagePolarimetry construction image may house the frequencies coordinate description in a Spectral, Tabular or Linear coordinate, you may explicitly specify which axis is the Spectral axis (spectralAxis). By default, it tries to find the SpectralCoordinate. If there is none, it will look for Tabular or Linear coordinates with a "FREQ" label. It returns to you the frequencyAxis (i.e. the one it is concluded houses the frequency spectrum) and the stokesAxis that it finds.

Get the shape of the construction image.

Definition at line 144 of file ImagePolarimetry.h.

References itsInImagePtr, and casa::LatticeBase::shape().

Get the best estimate of the statistical noise.

This gives you the standard deviation with outliers from the mean clipped first. The idea is to not be confused by source or dynamic range issues. Generally Stokes V is empty of sources (not always), then Q and U are generally less bright than I. So this function first tries V, then Q and U and lastly I to give you its noise estimate

Find the standard deviation for the Stokes image specified by the integer index.

static ImageExpr<Float> casa::ImagePolarimetry::sigmaDepolarizationRatio ( const ImageInterface< Float > &  im1,
const ImageInterface< Float > &  im2,
Bool  debias,
Float  clip = 10.0,
Float  sigma = -1.0 
) [static]
ImageExpr<Float> casa::ImagePolarimetry::sigmaFracLinPol ( Float  clip = 10.0,
Float  sigma = -1.0 
)
ImageExpr<Float> casa::ImagePolarimetry::sigmaFracTotPol ( Float  clip = 10.0,
Float  sigma = -1.0 
)
Float casa::ImagePolarimetry::sigmaLinPolInt ( Float  clip = 10.0,
Float  sigma = -1.0 
)
ImageExpr<Float> casa::ImagePolarimetry::sigmaLinPolPosAng ( Bool  radians,
Float  clip = 10.0,
Float  sigma = -1.0 
)
Float casa::ImagePolarimetry::sigmaTotPolInt ( Float  clip = 10.0,
Float  sigma = -1.0 
)

Get the shape and CoordinateSystem of an image for a single Stokes pixel Thus, if the construction image shape was [10,10,4,20] where axis 2 (shape 4) is the Stokes axis, this function would return [10,10,1,20] Specify the type of Stokes pixel you want.

Get the specified Stokes image and the standard deviation of the image.

This is worked out by first clipping outliers from the mean at the specified level.

Get the Stokes I image and the standard deviation of the I image.

This is worked out by first clipping outliers from the mean at the specified level.

Return I, Q, U or V for specified integer index (0-3)

Get the Stokes Q image and the standard deviation of the Q image.

This is worked out by first clipping outliers from the mean at the specified level.

Return I, Q, U or V for specified integer index (0-3)

Get the Stokes U image and the standard deviation of the U image.

This is worked out by first clipping outliers from the mean at the specified level.

Get the Stokes V image and the standard deviation of the V image.

This is worked out by first clipping outliers from the mean at the specified level.

void casa::ImagePolarimetry::subtractProfileMean ( ImageInterface< Float > &  im,
uInt  axis 
) const [private]

Subtract profile mean from image.

void casa::ImagePolarimetry::summary ( LogIO os) const

Summary.

Just invokes the ImageSummary list function to summarize the header of the construction image

ImageExpr<Float> casa::ImagePolarimetry::totPolInt ( Bool  debias,
Float  clip = 10.0,
Float  sigma = -1.0 
)

Get the total polarized intensity (from whatever combination of Q, U, and V the construction image has) image and its error (standard deviation).

If wish to debias the image, you can either provide sigma (the standard deviation of the thermal noise) or if sigma is non-positive, it will be worked out for you with a clipped mean algorithm.


Member Data Documentation

Definition at line 347 of file ImagePolarimetry.h.

Definition at line 338 of file ImagePolarimetry.h.

 

Definition at line 337 of file ImagePolarimetry.h.

Referenced by coordinates(), imageInterface(), isMasked(), and shape().

Definition at line 339 of file ImagePolarimetry.h.

These blocks are always size 4, with IQUV in slots 0,1,2,3 If your image is IV only, they still use slots 0 and 3.

Definition at line 344 of file ImagePolarimetry.h.

Definition at line 345 of file ImagePolarimetry.h.


The documentation for this class was generated from the following file: