Go to the documentation of this file.
28 #ifndef MEASURES_STOKES_H
29 #define MEASURES_STOKES_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/BasicSL/String.h>
33 #include <casacore/casa/Utilities/Fallible.h>
34 #include <casacore/casa/Arrays/Vector.h>
Mark a value as valid or invalid.
static StokesTypes type(Int stokesNumber)
convert Int to StokesTypes, returns Stokes::Undefined if it is an invalid type
static Fallible< Int > receptor1(StokesTypes stokesType)
map StokesTypes to receptor number (0 or 1) for the interferometric correlation products.
static StokesTypes type(const String &stokesName)
convert String to StokesTypes, returns Stokes::Undefined if it is an unrecognized string.
@ V
standard stokes parameters
@ PFlinear
Linear Polarization Fraction (Plinear/I)
static Fallible< Int > receptor2(StokesTypes stokesType)
@ Undefined
undefined value = 0
static Vector< String > allNames(Bool includeUndefined=False)
get all recognized stokes names in no guaranteed order.
static String name(StokesTypes stokesType)
convert StokesTypes to String, Stokes::Undefined returns "??".
@ Pangle
Linear Polarization Angle (0.5 arctan(U/Q)) (in radians)
this file contains all the compiler specific defines
@ Ptotal
Polarized intensity ((Q^2+U^2+V^2)^(1/2))
@ YL
mixed correlation products
@ NumberOfTypes
The number of StokesTypes.
@ Linear
single dish polarization types
@ PFtotal
Polarization Fraction (Ptotal/I)
@ QQ
general quasi-orthogonal correlation products
@ LL
circular correlation products
@ Plinear
Linearly Polarized intensity ((Q^2+U^2)^(1/2))
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
static StokesTypes fromFITSValue(Int)
StokesTypes
The Stokes types are defined by this enum.
static Int FITSValue(StokesTypes which)
These two functions map stokes type to FITS type and vice versa.
@ YY
linear correlation products