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