#include <Stokes.h>
This enumerates the available Stokes types, but does not define the operations for conversion between Stokes types. This class is a wrapper for the ENUM and conversion functions.
Definition at line 51 of file Stokes.h.
Public Types | |
| enum | StokesTypes |
| The Stokes types are defined by this enum. More... | |
| enum | |
| The number of StokesTypes. More... | |
Static Public Member Functions | |
| static StokesTypes | type (Int stokesNumber) |
| convert Int to StokesTypes, returns Stokes::Undefined if it is an invalid type | |
| 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 "??". | |
| 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 | fromFITSValue (Int) |
The Stokes types are defined by this enum.
Warning: DO NOT CHANGE THE ORDER OF THESE TYPES, as the integers corresponding to the enum are required for storage in Tables. One can add to these types, but the order must be preserved. The correlation products are required to have the order indicated with values of 1,2,3,4 plus n*4.
| anonymous enum |
| static StokesTypes casa::Stokes::type | ( | Int | stokesNumber | ) | [static] |
convert Int to StokesTypes, returns Stokes::Undefined if it is an invalid type
| static StokesTypes casa::Stokes::type | ( | const String & | stokesName | ) | [static] |
convert String to StokesTypes, returns Stokes::Undefined if it is an unrecognized string.
The valid strings are the same as the characters used in the enum above (i.e. "I" returns Stokes::I, "Linear" returns Stokes::Linear, etc).
| static String casa::Stokes::name | ( | StokesTypes | stokesType | ) | [static] |
convert StokesTypes to String, Stokes::Undefined returns "??".
| static Fallible<Int> casa::Stokes::receptor1 | ( | StokesTypes | stokesType | ) | [static] |
map StokesTypes to receptor number (0 or 1) for the interferometric correlation products.
e.g. XY will give receptor1==0 receptor2==1 etc. I,Q,U,V and the single dish types will produce invalid Fallible.
| static Fallible<Int> casa::Stokes::receptor2 | ( | StokesTypes | stokesType | ) | [static] |
| static Int casa::Stokes::FITSValue | ( | StokesTypes | which | ) | [static] |
These two functions map stokes type to FITS type and vice versa.
If you add a StokesType you should change these functions as well.
| static StokesTypes casa::Stokes::fromFITSValue | ( | Int | ) | [static] |
1.5.1