casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Static Public Member Functions | List of all members
casa::StokesImageUtil Class Reference

#include <StokesImageUtil.h>

Public Types

enum  PolRep {
  CIRCULAR,
  LINEAR
}
 

Static Public Member Functions

static void MakeGaussianPSF (casacore::ImageInterface< casacore::Float > &psf, casacore::Vector< casacore::Float > &beam, casacore::Bool norm=false)
 Make a Gaussian PSF. More...
 
static void MakeGaussianPSF (casacore::ImageInterface< casacore::Float > &psf, casacore::Quantity &bmaj, casacore::Quantity &bmin, casacore::Quantity &bpa, casacore::Bool norm=false)
 
static casacore::Bool FitGaussianPSF (casacore::ImageInterface< casacore::Float > &psf, casacore::Vector< casacore::Float > &beam)
 Fit a Gaussian PSF. More...
 
static casacore::Bool FitGaussianPSF (casacore::ImageInterface< casacore::Float > &psf, casacore::GaussianBeam &beam)
 
static casacore::Bool FitGaussianPSF (casacore::ImageInterface< casacore::Float > &psf, casacore::ImageBeamSet &beam)
 
static void locatePeakPSF (casacore::ImageInterface< casacore::Float > &psf, casacore::Int &xpos, casacore::Int &ypos, casacore::Float &amp, casacore::Matrix< casacore::Float > &psfplane)
 Locat peak of PSF return pos, peak and first plane that satisfies peak >0.9. More...
 
make the psf of each plane
have static peak(i.e peak in
the inner 1/8 of each plane)*/static
casacore void 
Convolve (casacore::ImageInterface< casacore::Float > &image, casacore::ImageInterface< casacore::Float > &psf)
 you are on your own if the peak outside that zone :( It returns the maximum of the peak value found More...
 
static void Convolve (casacore::ImageInterface< casacore::Float > &image, casacore::Float bmaj, casacore::Float bmin, casacore::Float bpa, casacore::Bool normalizeVolume=false)
 
static void Convolve (casacore::ImageInterface< casacore::Float > &image, casacore::GaussianBeam &beam, casacore::Bool normalizeVolume=false)
 
static void Convolve (casacore::ImageInterface< casacore::Float > &image, casacore::ImageBeamSet &beams, casacore::Bool normalizeVolume=false)
 
static void Zero (casacore::ImageInterface< casacore::Float > &image, casacore::Vector< casacore::Bool > &mask)
 Zero selected planes of a casacore::Stokes image. More...
 
static void MaskFrom (casacore::ImageInterface< casacore::Float > &mask, casacore::ImageInterface< casacore::Float > &image, const casacore::Double threshhold)
 Mask mask iif(image > threshhold), where threshhold is in image's units. More...
 
static void MaskFrom (casacore::ImageInterface< casacore::Float > &mask, casacore::ImageInterface< casacore::Float > &image, const casacore::Quantity &threshold)
 This version uses threshold.get("Jy").getValue(). More...
 
static void MaskOnStokesI (casacore::ImageInterface< casacore::Float > &image, const casacore::Quantity &threshold)
 Zero pixels where casacore::Stokes I < some value. More...
 
static void BoxMask (casacore::ImageInterface< casacore::Float > &mask, const casacore::IPosition &blc, const casacore::IPosition &trc, const casacore::Float value)
 Make a box mask. More...
 
static void Constrain (casacore::ImageInterface< casacore::Float > &image)
 Constrain a casacore::Stokes Image. More...
 
static void From (casacore::ImageInterface< casacore::Complex > &out, const casacore::ImageInterface< casacore::Float > &in)
 Convert from casacore::Stokes Image to "correlation" image. More...
 
static void To (casacore::ImageInterface< casacore::Float > &out, casacore::ImageInterface< casacore::Complex > &in)
 Convert to casacore::Stokes Image from "correlation" image. More...
 
static void directCFromR (casacore::ImageInterface< casacore::Complex > &out, const casacore::ImageInterface< casacore::Float > &in)
 Direct copy from casacore::Float to casacore::Complex with. More...
 
static void directCToR (casacore::ImageInterface< casacore::Float > &out, casacore::ImageInterface< casacore::Complex > &in)
 Direct copy To Float... More...
 
static void ToStokesPSF (casacore::ImageInterface< casacore::Float > &out, casacore::ImageInterface< casacore::Complex > &in)
 Convert to casacore::Stokes PSF. More...
 
static void ToStokesSumWt (casacore::Matrix< casacore::Float > sumwtStokes, casacore::Matrix< casacore::Float > sumwtCorr)
 
static casacore::Int StokesPolMap (casacore::Vector< casacore::Int > &map, const casacore::CoordinateSystem &coord)
 Find the mapping from pixel on the casacore::Stokes Axis to I,Q,U,V. More...
 
static casacore::Int CStokesPolMap (casacore::Vector< casacore::Int > &map, StokesImageUtil::PolRep &polframe, const casacore::CoordinateSystem &coord)
 Find the mapping from pixel on the casacore::Stokes Axis to either XX,XY,YX,YY of LL, LR, RL, RR. More...
 
static casacore::Bool StokesMap (casacore::Vector< casacore::Int > &map, const casacore::CoordinateSystem &coord)
 Find all mappings from coordinate to axis number. More...
 
static casacore::CoordinateSystem StokesCoordFromMS (const casacore::IPosition &shape, casacore::Vector< casacore::Double > &deltas, casacore::MeasurementSet &ms)
 Create a casacore::CoordinateSystem from a casacore::MeasurementSet and other info. More...
 
static casacore::CoordinateSystem StokesCoordFromMS (const casacore::IPosition &shape, casacore::Vector< casacore::Double > &deltas, casacore::MeasurementSet &ms, casacore::Vector< casacore::Int > &whichStokes, casacore::Bool doCStokes=false, casacore::Int fieldID=0, casacore::Int SPWID=0, casacore::Int feedID=0)
 Create a casacore::CoordinateSystem from a casacore::MeasurementSet and other info. More...
 
static casacore::CoordinateSystem CStokesCoord (const casacore::CoordinateSystem &coord, casacore::Vector< casacore::Int > &whichStokes, StokesImageUtil::PolRep polRep=StokesImageUtil::CIRCULAR)
 Create a casacore::CoordinateSystem. More...
 
static void changeCStokesRep (casacore::ImageInterface< casacore::Complex > &image, StokesImageUtil::PolRep polRep)
 Change the stokes representation (but not the data!) More...
 
static void changeLabelsStokesToCorrStokes (casacore::StokesCoordinate &stokesCoord, StokesImageUtil::PolRep polRep, casacore::Vector< casacore::Int > &whichStokes)
 
static casacore::Bool standardImageCoordinates (const casacore::CoordinateSystem &coords)
 check to see if Image coordinates have the standard order: Direction, casacore::Stokes, Spectral. More...
 
static casacore::Bool standardImageCoordinates (const casacore::ImageInterface< casacore::Complex > &image)
 
static casacore::Bool standardImageCoordinates (const casacore::ImageInterface< casacore::Float > &image)
 

Detailed Description

Etymology

Synopsis

Example

Motivation

Definition at line 66 of file StokesImageUtil.h.

Member Enumeration Documentation

Enumerator
CIRCULAR 
LINEAR 

Definition at line 70 of file StokesImageUtil.h.

Member Function Documentation

static void casa::StokesImageUtil::BoxMask ( casacore::ImageInterface< casacore::Float > &  mask,
const casacore::IPosition blc,
const casacore::IPosition trc,
const casacore::Float  value 
)
static

Make a box mask.

static void casa::StokesImageUtil::changeCStokesRep ( casacore::ImageInterface< casacore::Complex > &  image,
StokesImageUtil::PolRep  polRep 
)
static

Change the stokes representation (but not the data!)

static void casa::StokesImageUtil::changeLabelsStokesToCorrStokes ( casacore::StokesCoordinate stokesCoord,
StokesImageUtil::PolRep  polRep,
casacore::Vector< casacore::Int > &  whichStokes 
)
static
static void casa::StokesImageUtil::Constrain ( casacore::ImageInterface< casacore::Float > &  image)
static

Constrain a casacore::Stokes Image.

make the psf of each plane have static peak (i.e peak in the inner 1/8 of each plane) */ static casacore void casa::StokesImageUtil::Convolve ( casacore::ImageInterface< casacore::Float > &  image,
casacore::ImageInterface< casacore::Float > &  psf 
)
static

you are on your own if the peak outside that zone :( It returns the maximum of the peak value found

Convolve a casacore::Stokes Image in place

static void casa::StokesImageUtil::Convolve ( casacore::ImageInterface< casacore::Float > &  image,
casacore::Float  bmaj,
casacore::Float  bmin,
casacore::Float  bpa,
casacore::Bool  normalizeVolume = false 
)
static
static void casa::StokesImageUtil::Convolve ( casacore::ImageInterface< casacore::Float > &  image,
casacore::GaussianBeam beam,
casacore::Bool  normalizeVolume = false 
)
static
static void casa::StokesImageUtil::Convolve ( casacore::ImageInterface< casacore::Float > &  image,
casacore::ImageBeamSet beams,
casacore::Bool  normalizeVolume = false 
)
static
static casacore::CoordinateSystem casa::StokesImageUtil::CStokesCoord ( const casacore::CoordinateSystem coord,
casacore::Vector< casacore::Int > &  whichStokes,
StokesImageUtil::PolRep  polRep = StokesImageUtil::CIRCULAR 
)
static
static casacore::Int casa::StokesImageUtil::CStokesPolMap ( casacore::Vector< casacore::Int > &  map,
StokesImageUtil::PolRep polframe,
const casacore::CoordinateSystem coord 
)
static

Find the mapping from pixel on the casacore::Stokes Axis to either XX,XY,YX,YY of LL, LR, RL, RR.

Return type as well: Linear:1, Circular 0

static void casa::StokesImageUtil::directCFromR ( casacore::ImageInterface< casacore::Complex > &  out,
const casacore::ImageInterface< casacore::Float > &  in 
)
static

Direct copy from casacore::Float to casacore::Complex with.

static void casa::StokesImageUtil::directCToR ( casacore::ImageInterface< casacore::Float > &  out,
casacore::ImageInterface< casacore::Complex > &  in 
)
static

Direct copy To Float...

static casacore::Bool casa::StokesImageUtil::FitGaussianPSF ( casacore::ImageInterface< casacore::Float > &  psf,
casacore::Vector< casacore::Float > &  beam 
)
static

Fit a Gaussian PSF.

static casacore::Bool casa::StokesImageUtil::FitGaussianPSF ( casacore::ImageInterface< casacore::Float > &  psf,
casacore::GaussianBeam beam 
)
static
static casacore::Bool casa::StokesImageUtil::FitGaussianPSF ( casacore::ImageInterface< casacore::Float > &  psf,
casacore::ImageBeamSet beam 
)
static
static void casa::StokesImageUtil::From ( casacore::ImageInterface< casacore::Complex > &  out,
const casacore::ImageInterface< casacore::Float > &  in 
)
static

Convert from casacore::Stokes Image to "correlation" image.

static void casa::StokesImageUtil::locatePeakPSF ( casacore::ImageInterface< casacore::Float > &  psf,
casacore::Int xpos,
casacore::Int ypos,
casacore::Float amp,
casacore::Matrix< casacore::Float > &  psfplane 
)
static

Locat peak of PSF return pos, peak and first plane that satisfies peak >0.9.

static void casa::StokesImageUtil::MakeGaussianPSF ( casacore::ImageInterface< casacore::Float > &  psf,
casacore::Vector< casacore::Float > &  beam,
casacore::Bool  norm = false 
)
static

Make a Gaussian PSF.

static void casa::StokesImageUtil::MakeGaussianPSF ( casacore::ImageInterface< casacore::Float > &  psf,
casacore::Quantity bmaj,
casacore::Quantity bmin,
casacore::Quantity bpa,
casacore::Bool  norm = false 
)
static
static void casa::StokesImageUtil::MaskFrom ( casacore::ImageInterface< casacore::Float > &  mask,
casacore::ImageInterface< casacore::Float > &  image,
const casacore::Double  threshhold 
)
static

Mask mask iif(image > threshhold), where threshhold is in image's units.

static void casa::StokesImageUtil::MaskFrom ( casacore::ImageInterface< casacore::Float > &  mask,
casacore::ImageInterface< casacore::Float > &  image,
const casacore::Quantity threshold 
)
static

This version uses threshold.get("Jy").getValue().

static void casa::StokesImageUtil::MaskOnStokesI ( casacore::ImageInterface< casacore::Float > &  image,
const casacore::Quantity threshold 
)
static

Zero pixels where casacore::Stokes I < some value.

static casacore::Bool casa::StokesImageUtil::standardImageCoordinates ( const casacore::CoordinateSystem coords)
static

check to see if Image coordinates have the standard order: Direction, casacore::Stokes, Spectral.

Returns false if this is not the order, or if any are missing

static casacore::Bool casa::StokesImageUtil::standardImageCoordinates ( const casacore::ImageInterface< casacore::Complex > &  image)
static
static casacore::Bool casa::StokesImageUtil::standardImageCoordinates ( const casacore::ImageInterface< casacore::Float > &  image)
static
static casacore::CoordinateSystem casa::StokesImageUtil::StokesCoordFromMS ( const casacore::IPosition shape,
casacore::Vector< casacore::Double > &  deltas,
casacore::MeasurementSet ms 
)
static

Create a casacore::CoordinateSystem from a casacore::MeasurementSet and other info.

static casacore::CoordinateSystem casa::StokesImageUtil::StokesCoordFromMS ( const casacore::IPosition shape,
casacore::Vector< casacore::Double > &  deltas,
casacore::MeasurementSet ms,
casacore::Vector< casacore::Int > &  whichStokes,
casacore::Bool  doCStokes = false,
casacore::Int  fieldID = 0,
casacore::Int  SPWID = 0,
casacore::Int  feedID = 0 
)
static

Create a casacore::CoordinateSystem from a casacore::MeasurementSet and other info.

static casacore::Bool casa::StokesImageUtil::StokesMap ( casacore::Vector< casacore::Int > &  map,
const casacore::CoordinateSystem coord 
)
static

Find all mappings from coordinate to axis number.

static casacore::Int casa::StokesImageUtil::StokesPolMap ( casacore::Vector< casacore::Int > &  map,
const casacore::CoordinateSystem coord 
)
static

Find the mapping from pixel on the casacore::Stokes Axis to I,Q,U,V.

static void casa::StokesImageUtil::To ( casacore::ImageInterface< casacore::Float > &  out,
casacore::ImageInterface< casacore::Complex > &  in 
)
static

Convert to casacore::Stokes Image from "correlation" image.

static void casa::StokesImageUtil::ToStokesPSF ( casacore::ImageInterface< casacore::Float > &  out,
casacore::ImageInterface< casacore::Complex > &  in 
)
static

Convert to casacore::Stokes PSF.

static void casa::StokesImageUtil::ToStokesSumWt ( casacore::Matrix< casacore::Float sumwtStokes,
casacore::Matrix< casacore::Float sumwtCorr 
)
static
static void casa::StokesImageUtil::Zero ( casacore::ImageInterface< casacore::Float > &  image,
casacore::Vector< casacore::Bool > &  mask 
)
static

Zero selected planes of a casacore::Stokes image.


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