source: trunk/src/STPolCircular.h@ 3140

Last change on this file since 3140 was 3106, checked in by Takeshi Nakazato, 8 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

File size: 1.2 KB
Line 
1//
2// C++ Interface: STPolLinear
3//
4// Description:
5//
6//
7// Author: Malte Marquarding <Malte.Marquarding@csiro.au>, (C) 2006
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef ASAPSTPOLCircular_H
13#define ASAPSTPOLCircular_H
14
15#include "Factory.h"
16#include "STPol.h"
17
18namespace asap {
19
20/**
21 The Circular representation of polarisation.
22 NOTE U and V are probably wrong
23 We are using the following convention:
24 @li I = RR + LL
25 @li Q = RR - LL
26 @li U = 2*Real(RL)
27 @li V = 2*Imag(RL)
28
29 resulting in:
30 @li I' = I
31 @li Q' = Q * cos(theta) - V *sin(theta)
32 @li U' = Q * sin(theta) + U * cos(theta)
33 @li V' = V
34 @author Malte Marquarding
35
36*/
37class STPolCircular : public STPol
38{
39public:
40 STPolCircular() {}
41
42 explicit STPolCircular(const casacore::Matrix<casacore::Float>& specs)
43 { setSpectra(specs); }
44
45 ~STPolCircular();
46
47 static Factory<STPol,STPolCircular> myFactory;
48
49 virtual casacore::Vector<casacore::Float> getCircular( casacore::uInt index );
50
51 virtual casacore::Vector<casacore::Float> getStokes( casacore::uInt index);
52
53 virtual casacore::Vector<casacore::Float> getLinPol( casacore::uInt index);
54
55 virtual casacore::Vector<casacore::Float> getLinear( casacore::uInt index );
56
57};
58
59}
60
61#endif
Note: See TracBrowser for help on using the repository browser.