Signal Namespace Reference

Defines various signal types. More...

Enumerations

enum  Basis { Circular =0, Linear =1, Elliptical =2 }
 The basis in which the electric field is represented.
 
enum  Hand { Left =-1, Right =1 }
 The hand of the basis.
 
enum  Argument { Conjugate =-1, Conventional =1 }
 The complex phase of the basis.
 
enum  Dimension {
  Time, Frequency, Polarization, Phase,
  Space
}
 Dimensions of the data (so far) More...
 
enum  Scale {
  EMF, Volts, Energy, Joules,
  FluxDensity, ReferenceFluxDensity, Jansky
}
 The scale in which units are measured. More...
 
enum  Source {
  Unknown, Pulsar, PolnCal, FluxCalOn,
  FluxCalOff, Calibrator
}
 Sources of observed signals. More...
 
enum  State {
  Nyquist, Analytic, Intensity, NthPower,
  PPQQ, Coherence, Stokes, PseudoStokes,
  Invariant, Other, PP_State, QQ_State,
  FourthMoment
}
 Possible states of the data. More...
 

Functions

std::ostream & operator<< (std::ostream &, Basis)
 Basis output operator.
 
std::istream & operator>> (std::istream &, Basis &)
 Basis input operator.
 
std::ostream & operator<< (std::ostream &, Hand)
 Hand output operator.
 
std::istream & operator>> (std::istream &, Hand &)
 Hand input operator.
 
std::ostream & operator<< (std::ostream &, Argument)
 Argument output operator.
 
std::istream & operator>> (std::istream &, Argument &)
 Argument input operator.
 
unsigned State2npol (State s)
 
const char * source_string (Source source)
 
const char * state_string (State state)
 
const char * basis_string (Basis basis)
 
const std::string Source2string (Source source)
 
const std::string State2string (State state)
 
const std::string Basis2string (Basis basis)
 
const std::string Scale2string (Scale scale)
 
Basis string2Basis (const std::string &ss)
 
Source string2Source (const std::string &ss)
 
State string2State (const std::string &ss)
 
Scale string2Scale (const std::string &ss)
 
bool valid_state (State state, unsigned ndim, unsigned npol, std::string &reason)
 Tells you if your state is consistent with your npol and ndim.
 
State pscrunch (State state)
 Returns the state resulting from a pscrunch operation.
 
std::ostream & operator<< (std::ostream &ostr, Source source)
 
std::istream & operator>> (std::istream &is, Source &source)
 
std::ostream & operator<< (std::ostream &ostr, State state)
 
std::istream & operator>> (std::istream &is, State &state)
 
std::ostream & operator<< (std::ostream &ostr, Scale scale)
 
std::istream & operator>> (std::istream &is, Scale &scale)
 

Detailed Description

Defines various signal types.

Enumeration Type Documentation

◆ Dimension

Dimensions of the data (so far)

Enumerator
Time 

Time given in MJD.

Frequency 

Radio Frequency in MHz.

Polarization 

Light.

Phase 

Pulsar Phase, for instance.

Space 

Mathematical space (real, complex, jones, etc.)

◆ Scale

The scale in which units are measured.

Enumerator
EMF 

Uncalibrated voltage.

Volts 

Calibrated voltage.

Energy 

Uncalibrated energy.

Joules 

Calibrated energy.

FluxDensity 

Uncalibrated flux density.

ReferenceFluxDensity 

Reference flux density.

Jansky 

Calibrated flux density.

◆ Source

Sources of observed signals.

Enumerator
Unknown 

An unknown source.

Pulsar 

A pulsar.

PolnCal 

A polarization calibrator, such as the linear noise diode.

FluxCalOn 

A flux calibrator, such as Hydra A + the linear noise diode.

FluxCalOff 

Near a flux calibrator, such as two degrees off Hydra A.

Calibrator 

A calibrator solution.

◆ State

Possible states of the data.

Enumerator
Nyquist 

Nyquist sampled voltages (real)

Analytic 

In-phase and Quadrature sampled voltages (complex)

Intensity 

Square-law detected total power.

NthPower 

Square-law detected nth power.

PPQQ 

Square-law detected, two polarizations.

Coherence 

PP, QQ, Re[PQ], Im[PQ].

Stokes 

Stokes I,Q,U,V.

PseudoStokes 

PseudoStokes S0,S2,S2,S3.

Invariant 

Stokes invariant interval.

Other 

Other.

PP_State 

Just PP.

QQ_State 

Just QQ.

FourthMoment 

Fourth moment of the electric field (covariance of Stokes parameters)


Generated using doxygen 1.8.17