26#ifndef MEASURES_STOKES_H 
   27#define MEASURES_STOKES_H 
   29#include <casacore/casa/aips.h> 
   30#include <casacore/casa/BasicSL/String.h> 
   31#include <casacore/casa/Utilities/Fallible.h> 
   32#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))
 
@ NumberOfTypes
The number of StokesTypes.
 
static Fallible< Int > receptor1(StokesTypes stokesType)
map StokesTypes to receptor number (0 or 1) for the interferometric correlation products.
 
static Fallible< Int > receptor2(StokesTypes stokesType)
 
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 Vector< String > allNames(Bool includeUndefined=False)
get all recognized stokes names in no guaranteed order.
 
static StokesTypes type(const String &stokesName)
convert String to StokesTypes, returns Stokes::Undefined if it is an unrecognized string.
 
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.