CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::Stokes Class Reference

#include <Stokes.h>

Collaboration diagram for carta::Stokes:
[legend]

Static Public Member Functions

static CARTA::PolarizationType Get (int value)
 
static CARTA::PolarizationType Get (std::string name)
 
static casacore::Stokes::StokesTypes ToCasa (CARTA::PolarizationType type)
 
static bool ConvertFits (const int &in_stokes_value, int &out_stokes_value)
 
static std::string Name (CARTA::PolarizationType type)
 
static std::string Description (CARTA::PolarizationType type)
 
static bool IsComputed (int value)
 

Static Protected Attributes

static std::unordered_map< CARTA::PolarizationType, casacore::Stokes::StokesTypes > _to_casa
 
static std::unordered_map< CARTA::PolarizationType, std::string > _description
 

Member Function Documentation

◆ ConvertFits()

bool Stokes::ConvertFits ( const int &  in_stokes_value,
int &  out_stokes_value 
)
static
Here is the caller graph for this function:

◆ Description()

std::string Stokes::Description ( CARTA::PolarizationType  type)
static
Here is the caller graph for this function:

◆ Get() [1/2]

CARTA::PolarizationType Stokes::Get ( int  value)
static
Here is the caller graph for this function:

◆ Get() [2/2]

CARTA::PolarizationType Stokes::Get ( std::string  name)
static

◆ IsComputed()

bool Stokes::IsComputed ( int  value)
static
Here is the caller graph for this function:

◆ Name()

std::string Stokes::Name ( CARTA::PolarizationType  type)
static

◆ ToCasa()

casacore::Stokes::StokesTypes Stokes::ToCasa ( CARTA::PolarizationType  type)
static
Here is the caller graph for this function:

Member Data Documentation

◆ _description

std::unordered_map< CARTA::PolarizationType, std::string > Stokes::_description
staticprotected
Initial value:
{{CARTA::PolarizationType::POLARIZATION_TYPE_NONE, "Unknown"},
{CARTA::PolarizationType::I, "Stokes I"}, {CARTA::PolarizationType::Q, "Stokes Q"}, {CARTA::PolarizationType::U, "Stokes U"},
{CARTA::PolarizationType::V, "Stokes V"}, {CARTA::PolarizationType::Ptotal, "Total polarization intensity"},
{CARTA::PolarizationType::Plinear, "Linear polarization intensity"},
{CARTA::PolarizationType::PFtotal, "Fractional total polarization intensity"},
{CARTA::PolarizationType::PFlinear, "Fractional linear polarization intensity"},
{CARTA::PolarizationType::Pangle, "Polarization angle"}}

◆ _to_casa

std::unordered_map< CARTA::PolarizationType, casacore::Stokes::StokesTypes > Stokes::_to_casa
staticprotected
Initial value:
{
{CARTA::PolarizationType::POLARIZATION_TYPE_NONE, casacore::Stokes::StokesTypes::Undefined},
{CARTA::PolarizationType::I, casacore::Stokes::StokesTypes::I}, {CARTA::PolarizationType::Q, casacore::Stokes::StokesTypes::Q},
{CARTA::PolarizationType::U, casacore::Stokes::StokesTypes::U}, {CARTA::PolarizationType::V, casacore::Stokes::StokesTypes::V},
{CARTA::PolarizationType::RR, casacore::Stokes::StokesTypes::RR}, {CARTA::PolarizationType::LL, casacore::Stokes::StokesTypes::LL},
{CARTA::PolarizationType::RL, casacore::Stokes::StokesTypes::RL}, {CARTA::PolarizationType::LR, casacore::Stokes::StokesTypes::LR},
{CARTA::PolarizationType::XX, casacore::Stokes::StokesTypes::XX}, {CARTA::PolarizationType::YY, casacore::Stokes::StokesTypes::YY},
{CARTA::PolarizationType::XY, casacore::Stokes::StokesTypes::XY}, {CARTA::PolarizationType::YX, casacore::Stokes::StokesTypes::YX},
{CARTA::PolarizationType::Ptotal, casacore::Stokes::StokesTypes::Ptotal},
{CARTA::PolarizationType::Plinear, casacore::Stokes::StokesTypes::Plinear},
{CARTA::PolarizationType::PFtotal, casacore::Stokes::StokesTypes::PFtotal},
{CARTA::PolarizationType::PFlinear, casacore::Stokes::StokesTypes::PFlinear},
{CARTA::PolarizationType::Pangle, casacore::Stokes::StokesTypes::Pangle}}

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