Main Page | Class List | Directories | File List | Class Members | File Members

ObitUVCalSelect.h File Reference

ObitUVCal utilities for selecting data and translating Stokes. More...

#include "Obit.h"
#include "ObitErr.h"
#include "ObitThread.h"
#include "ObitInfoList.h"
#include "ObitUVDesc.h"
#include "ObitUVSel.h"
#include "ObitUVCal.h"

Go to the source code of this file.

Functions

void ObitUVCalSelectInit (ObitUVCal *in, ObitUVSel *sel, ObitUVDesc *inDesc, ObitUVDesc *outDesc, ObitErr *err)
 Public: Init data selection.
gboolean ObitUVCalSelect (ObitUVCal *in, gfloat *visIn, gfloat *RP, gfloat *visOut, ObitErr *err)
 Public: translate/select data.


Detailed Description

ObitUVCal utilities for selecting data and translating Stokes.

This is implemented as utility routines and a separate Structure definition to avoid circular definitions. The ObitUVCal must be visible here but the structure needed for this calibration is a member of the ObitUVCal. If it were implemented as an Obit class this would lead to a circular definition which c cannot deal with.


Function Documentation

gboolean ObitUVCalSelect ObitUVCal in,
gfloat *  RP,
gfloat *  visIn,
gfloat *  visOut,
ObitErr err
 

Public: translate/select data.

U, V, W scales if selecting in IF.

Parameters:
in Calibration Object.
  • mySel->transPol if TRUE translate stokes
  • mySel->bothCorr if TRUE all data needed in combination
  • jadr (0-rel) indices to the first and second visibility input records to be used in the output record. If jadr(1,n) is negative (Stokes U from RL,LR) use abs(jadr(1,n)) and multiply the visibility by i (=sqrt(-1)). If jadr(2,n) < 0, (RL,LR from Q,U) use abs and construct (1) + i*(2)
  • selFact Factors to be multiplied by the first and second input vis's to make the output vis.
RP Random parameters array.
visIn input visibility as an array of floats
visOut output visibility as an array of floats
err ObitError stack.
Returns:
TRUE if at least some data is valid

void ObitUVCalSelectInit ObitUVCal in,
ObitUVSel sel,
ObitUVDesc inDesc,
ObitUVDesc outDesc,
ObitErr err
 

Public: Init data selection.

Output descriptor modified to reflect data selection. Stokes 'F' = formal I (both RR+LL or XX+YY needed) On output data are ordered Stokes, Freq, IF if Stokes translation Adapted from the AIPSish DGINIT.FOR.

Parameters:
in Object to initialize.
  • mySel->transPol if TRUE translate stokes
  • mySel->bothCorr if TRUE all data needed in combination
  • jadr (0-rel) indices to the first and second visibility input records to be used in the output record. If jadr(1,n) is negative (Stokes U from RL,LR) use abs(jadr(1,n)) and multiply the visibility by i (=sqrt(-1)). If jadr(2,n) < 0, (RL,LR from Q,U) use abs and construct (1) + i*(2)
  • selFact Factors to be multiplied by the first and second input vis's to make the output vis.
sel Data selector.
inDesc Input data descriptor.
outDesc Output data descriptor (after transformations/selection).
err ObitError stack.


Generated on Fri Aug 31 22:13:09 2007 for Obit by  doxygen 1.3.9.1