28 #ifndef IMAGES_IMAGEPOL_H
29 #define IMAGES_IMAGEPOL_H
39 template<
class T>
class ImageInterface;
A Vector of integers, for indexing into Array<T> objects.
casacore::Bool stokesQ(casacore::ImageInterface< casacore::Float > *&rtnim, const casacore::String &outfile="")
casacore::Stokes Q
casacore::Bool makeMask(casacore::ImageInterface< casacore::Float > &out, casacore::Bool init=false)
Make and define a mask.
casacore::Float sigmaStokesI(casacore::Float clip=10.0) const
casacore::Bool sigmaFracLinPol(casacore::ImageInterface< casacore::Float > *&rtnim, casacore::Float clip=10.0, casacore::Float sigma=-1, const casacore::String &outfile="")
casacore::Bool depolratio(casacore::ImageInterface< casacore::Float > *&rtnim, const casacore::String &infile, casacore::Bool debias=false, casacore::Double clip=10.0, casacore::Double sigma=-1, const casacore::String &oufile="")
Depolarization ratio The image containing the delpolratio is in the returnrec Can be recovered using ...
casacore::Bool stokesU(casacore::ImageInterface< casacore::Float > *&rtnim, const casacore::String &outfile="")
casacore::Stokes U
LatticeExprNode imag(const LatticeExprNode &expr)
Polarimetric analysis of images.
void centreRefPix(casacore::CoordinateSystem &cSys, const casacore::IPosition &shape)
Centre reference pixelin image.
virtual Type type()
Return the type enum.
TableExprNode phase(const TableExprNode &node)
The phase (i.e.
void fourierRotationMeasure(const casacore::String &outfile="", const casacore::String &outfileAmp="", const casacore::String &outfilePA="", const casacore::String &outfileReal="", const casacore::String &outfileImag="", casacore::Bool zeroZeroLag=false)
Find Rotation casacore::Measure from Fourier method.
void addNoise(casacore::Array< casacore::Float > &slice, casacore::Normal &noiseGen)
Add noise to Array.
ostream-like interface to creating log messages.
casacore::Stokes::StokesTypes stokesType(const casacore::CoordinateSystem &cSys)
What casacore::Stokes type? Exception if more than one.
casacore::Bool complexlinpol(const casacore::String &outfile)
casacore::Complex linear polarization image is stored in outfile
void summary() const
Summary.
void copyMiscellaneous(casacore::ImageInterface< casacore::Complex > &out, const casacore::ImageInterface< casacore::Float > &in)
Copy miscellaneous (MiscInfo, casacore::ImageInfo, history, units)
StokesTypes
The Stokes types are defined by this enum.
casacore::Float sigma(casacore::Float clip=10.0) const
sigma
casacore::Bool open(casacore::ImageInterface< casacore::Float > &im)
void complexLinearPolarization(const casacore::String &outfile)
casacore::Complex linear polarization
casacore::Bool sigmaDepolarizationRatio(casacore::ImageInterface< casacore::Float > *&rtnim, const casacore::String &infile, casacore::Bool debias=false, casacore::Float clip=10.0, casacore::Float sigma=-1, const casacore::String &outfile="")
casacore::Bool fracTotPol(casacore::ImageInterface< casacore::Float > *&rtnim, casacore::Bool debias=false, casacore::Float clip=10.0, casacore::Float sigma=-1, const casacore::String &outfile="")
Fractional total polarized intensity.
casacore::Bool imagepoltestimage(const casacore::String &outFile="imagepol.iquv", const casacore::Vector< casacore::Double > &rm=casacore::Vector< casacore::Double >(1, 0.0), casacore::Bool rmDefault=true, casacore::Double pa0=0.0, casacore::Double sigma=0.01, casacore::Int nx=32, casacore::Int ny=32, casacore::Int nf=32, casacore::Double f0=1.4e9, casacore::Double df=128.0e6)
Make test image.
casacore::Bool sigmaLinPolPosAng(casacore::ImageInterface< casacore::Float > *&rtnim, casacore::Float clip=10.0, casacore::Float sigma=-1, const casacore::String &outfile="")
Linearly polarized position angle.
casacore::Float sigmaStokesU(casacore::Float clip=10.0) const
casacore::Bool fillIQUV(casacore::ImageInterface< casacore::Float > &im, casacore::uInt stokesAxis, casacore::uInt spectralAxis, const casacore::Vector< casacore::Float > &rm, casacore::Float pa0)
Fill IQUV image with casacore::Stokes values from RM data.
Normal or Gaussian distribution.
LatticeExprNode amp(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds sqrt(left^2+right^2).
void rotationMeasure(const casacore::String &outRM="", const casacore::String &outRMErr="", const casacore::String &outPA0="", const casacore::String &outPA0Err="", const casacore::String &outNTurns="", const casacore::String &outChiSq="", casacore::Int axis=-1, casacore::Float varQU=-1, casacore::Float rmFg=0.0, casacore::Float rmMax=0.0, casacore::Float maxPaErr=1e30)
Find Rotation casacore::Measure from traditional method.
std::shared_ptr< const casacore::ImageInterface< casacore::Float > > SPCIIF
casacore::Float sigmaLinPolInt(casacore::Float clip=10.0, casacore::Float sigma=-1) const
casacore::Bool stokesI(casacore::ImageInterface< casacore::Float > *&rtnim, const casacore::String &outfile="")
casacore::Stokes I
bool Bool
Define the standard types used by Casacore.
casacore::Float sigmaStokesV(casacore::Float clip=10.0) const
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
ImagePol()
"imagepol" constructors
casacore::Bool fracLinPol(casacore::ImageInterface< casacore::Float > *&rtnim, casacore::Bool debias=false, casacore::Float clip=10.0, casacore::Float sigma=-1, const casacore::String &outfile="")
Fractional linearly polarized intensity.
SPCIIF imageInterface() const
Get the casacore::ImageInterface pointer of the construction image Don't delete it ! ...
void complexFractionalLinearPolarization(const casacore::String &outfile)
casacore::Complex linear polarization
Implementation of the image polarimetry functionality available from casapy.
casacore::Bool sigmaFracTotPol(casacore::ImageInterface< casacore::Float > *&rtnim, casacore::Float clip=10.0, casacore::Float sigma=-1, const casacore::String &outfile="")
casacore::Bool makeIQUVImage(casacore::ImageInterface< casacore::Float > *&pImOut, const casacore::String &outfile, casacore::Double sigma, casacore::Double pa0, const casacore::Vector< casacore::Float > &rm, const casacore::IPosition &shape, casacore::Double f0, casacore::Double dF)
Make an IQUV image with some dummy RM data.
String: the storage and methods of handling collections of characters.
casacore::Bool copyImage(casacore::ImageInterface< casacore::Float > *&out, const casacore::ImageInterface< casacore::Float > &in, const casacore::String &outfile="", casacore::Bool overwrite=true)
casacore::Float sigmaStokesQ(casacore::Float clip=10.0) const
casacore::Float sigmaTotPolInt(casacore::Float clip=10.0, casacore::Float sigma=-1) const
Total polarized intensity.
void makeComplex(const casacore::String &complex, const casacore::String &real="", const casacore::String &imag="", const casacore::String &="", const casacore::String &phase="")
Make a complex image.
void fiddleStokesCoordinate(casacore::ImageInterface< casacore::Float > &ie, casacore::Stokes::StokesTypes type)
casacore::Bool depolarizationRatio(casacore::ImageInterface< casacore::Float > *&rtnim, const casacore::String &infile, casacore::Bool debias=false, casacore::Float clip=10.0, casacore::Float sigma=-1, const casacore::String &outfile="")
Depolarization ratio.
LatticeExprNode real(const LatticeExprNode &expr)
Interconvert pixel and world coordinates.
ImagePolarimetry * itsImPol
casacore::Bool stokesV(casacore::ImageInterface< casacore::Float > *&rtnim, const casacore::String &outfile="")
casacore::Stokes V
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
casacore::Bool makeImage(casacore::ImageInterface< casacore::Complex > *&out, const casacore::String &outfile, const casacore::CoordinateSystem &cSys, const casacore::IPosition &shape, casacore::Bool isMasked=false, casacore::Bool tempAllowed=true)
Make a casacore::PagedImage or casacore::TempImage output.