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

ObitUVSel.h File Reference

ObitUVSel Obit uv data selector class definition. More...

#include "Obit.h"
#include "ObitUVDesc.h"
#include "ObitErr.h"
#include "ObitDef.h"
#include "ObitClassDef.h"

Go to the source code of this file.

Classes

struct  ObitUVSel
 ObitUVSel Class structure. More...
struct  ObitUVSelClassInfo
 ClassInfo Structure. More...

Defines

#define ObitUVSelUnref(in)   ObitUnref (in)
 Macro to unreference (and possibly destroy) an ObitUVSel returns a ObitUVSel* (NULL).
#define ObitUVSelRef(in)   ObitRef (in)
 Macro to reference (update reference count) an ObitUVSel.
#define ObitUVSelIsA(in)   ObitIsA (in, ObitUVSelGetClass())
 Macro to determine if an object is the member of this or a derived class.

Functions

void ObitUVSelClassInit (void)
 Public: Class initializer.
ObitUVSelnewObitUVSel (gchar *name)
 Public: Constructor.
gconstpointer ObitUVSelGetClass (void)
 Public: Return class pointer.
ObitUVSelObitUVSelCopy (ObitUVSel *in, ObitUVSel *out, ObitErr *err)
 Public: Copy UVSel.
glong ObitUVSelBufferSize (ObitUVDesc *desc, ObitUVSel *sel)
 Public: How big a buffer is needed for a data transfer?
void ObitUVSelDefault (ObitUVDesc *in, ObitUVSel *sel)
 Public: Enforces defaults in inaxes, blc, trc.
void ObitUVSelGetDesc (ObitUVDesc *in, ObitUVSel *sel, ObitUVDesc *out, ObitErr *err)
 Public: Applies selection to a Descriptor for writing.
void ObitUVSelSetDesc (ObitUVDesc *in, ObitUVSel *sel, ObitUVDesc *out, ObitErr *err)
 Public: Applies selection to a Descriptor for reading.
void ObitUVSelNextInit (ObitUVSel *in, ObitUVDesc *desc, ObitErr *err)
 See if an NX table exists and if so initialize it to use in deciding which visibilities to read.
gboolean ObitUVSelNext (ObitUVSel *in, ObitUVDesc *desc, ObitErr *err)
 Uses selector member to decide which visibilities to read next.
void ObitUVSelShutdown (ObitUVSel *in, ObitErr *err)
 Close NX table if open .
void ObitUVSelSetSour (ObitUVSel *sel, gpointer inData, gint Qual, gchar *souCode, gchar *Sources, gint lsou, gint nsou, ObitErr *err)
 Set selector for source selection.
void ObitUVSelSetAnt (ObitUVSel *sel, gint *Antennas, gint nant)
 Set selector for antenna selection.
gboolean ObitUVSelWantSour (ObitUVSel *sel, gint SourID)
 Determine if a given source is selected.
gboolean ObitUVSelWantAnt (ObitUVSel *sel, gint ant)
 Determine if a given antenna is selected.
gfloat ObitUVSelSubScan (ObitUVSel *sel)
 Suggest a length for a sub interval of the current scan such that the scan is evenly divided.


Detailed Description

ObitUVSel Obit uv data selector class definition.

This class is derived from the Obit class.

This contains the descriptions of data selection and calibration.

Usage

Instances can be obtained using the newObitUVSel constructor the ObitUVSelCopy copy constructor or a pointer duplicated using the ObitUVSelRef function. When an instance is no longer needed, use the ObitUVSelUnref macro to release it.

Data selection and Calibration

The ObitUVSel member of a ObitUV is used to pass information the the data selection and calibration routines. This information is stored on the ObitInfoList of the ObitUV data before it is opened with access OBIT_IO_ReadCal. Subsequent calls to ObitUVReadSelect will apply the data selection and calibration requested. The calibration/selection paramters are described in the following list.

Define Documentation

#define ObitUVSelIsA in   )     ObitIsA (in, ObitUVSelGetClass())
 

Macro to determine if an object is the member of this or a derived class.

Returns TRUE if a member, else FALSE in = object to reference

#define ObitUVSelRef in   )     ObitRef (in)
 

Macro to reference (update reference count) an ObitUVSel.

returns a ObitUVSel*. in = object to reference

#define ObitUVSelUnref in   )     ObitUnref (in)
 

Macro to unreference (and possibly destroy) an ObitUVSel returns a ObitUVSel* (NULL).

  • in = object to unreference.


Function Documentation

ObitUVSel* newObitUVSel gchar *  name  ) 
 

Public: Constructor.

Returns:
pointer to object created.

glong ObitUVSelBufferSize ObitUVDesc desc,
ObitUVSel sel
 

Public: How big a buffer is needed for a data transfer?

The buffer is intended for the uncompressed versions of uv data records.

Parameters:
desc Pointer input descriptor.
sel UV selector.
Returns:
size in floats needed for I/O.

void ObitUVSelClassInit void   ) 
 

Public: Class initializer.

ObitUVSel* ObitUVSelCopy ObitUVSel in,
ObitUVSel out,
ObitErr err
 

Public: Copy UVSel.

Parameters:
in Pointer to object to be copied.
out Pointer to object to be written. If NULL then a new structure is created.
err ObitErr error stack
Returns:
Pointer to new object.

void ObitUVSelDefault ObitUVDesc in,
ObitUVSel sel
 

Public: Enforces defaults in inaxes, blc, trc.

Parameters:
in Pointer to descriptor.
sel UV selector, output vis descriptor changed if needed.

gconstpointer ObitUVSelGetClass void   ) 
 

Public: Return class pointer.

Initializes class if needed on first call.

Returns:
pointer to the class structure.

void ObitUVSelGetDesc ObitUVDesc in,
ObitUVSel sel,
ObitUVDesc out,
ObitErr err
 

Public: Applies selection to a Descriptor for writing.

Parameters:
in Pointer to input descriptor, this describes the data as they appear in memory.
sel UV selector, blc, trc members changed if needed.
out Pointer to output descriptor, describing form on disk.
err Obit error stack

gboolean ObitUVSelNext ObitUVSel in,
ObitUVDesc desc,
ObitErr err
 

Uses selector member to decide which visibilities to read next.

If doIndex is TRUE, then visibilities are selected from the NX table.

Parameters:
in Pointer to the object.
desc UV descriptor from IO where the next visibility to read and the number will be stored. 0 causes an initialization.&nleft)
err Error stack
Returns:
TRUE is finished, else FALSE

void ObitUVSelNextInit ObitUVSel in,
ObitUVDesc desc,
ObitErr err
 

See if an NX table exists and if so initialize it to use in deciding which visibilities to read.

Parameters:
in Pointer to the object.
desc UV descriptor from IO where the next visibility to read and the number will be stored.
err Error stack
Returns:
TRUE is finished, else FALSE

void ObitUVSelSetAnt ObitUVSel sel,
gint *  Antennas,
gint  nant
 

Set selector for antenna selection.

Parameters:
sel UV selector.
Antennas List of selected Antennas, NULL or all 0 => all, zero entries after first non zero are ignored. Any negative values means all named are deselected
nant Number of entries in Antennas

void ObitUVSelSetDesc ObitUVDesc in,
ObitUVSel sel,
ObitUVDesc out,
ObitErr err
 

Public: Applies selection to a Descriptor for reading.

Note: many operations associated with data selection are done in ObitUVCalSelectInit. Also sets previously undefined values on sel.

Parameters:
in Pointer to input descriptor, this describes the data as they appear on disk (possibly compressed).
sel UV selector, members changed if needed.
out Pointer to output descriptor, this describes the data after any processing when read, or before any compression on output.
err Obit error stack

void ObitUVSelSetSour ObitUVSel sel,
gpointer  inData,
gint  Qual,
gchar *  souCode,
gchar *  Sources,
gint  lsou,
gint  nsou,
ObitErr err
 

Set selector for source selection.

Parameters:
sel UV selector.
inData Associated UV data (as gpointer to avoid recursive definition)
Qual Source qualifier, -1 => any
souCode selection of Source by Calcode,if not specified in Source ' ' => any calibrator code selected '* ' => any non blank code (cal. only) '-CAL' => blank codes only (no calibrators) anything else = calibrator code to select. NB: The souCode test is applied in addition to the other tests, i.e. Sources and Qual, in the selection of sources to process
Sources Selected source names, [0] blank=> any this is passed as a lsou x nsou array of characters
lsou length of source name in Sources
nsou maximum number of entries in Sources
err Obit error/message stack

void ObitUVSelShutdown ObitUVSel in,
ObitErr err
 

Close NX table if open .

If doIndex is TRUE, then visibilities are selected from the NX table.

Parameters:
in Pointer to the Selector.
err Error stack
Returns:
TRUE is finished, else FALSE

gfloat ObitUVSelSubScan ObitUVSel sel  ) 
 

Suggest a length for a sub interval of the current scan such that the scan is evenly divided.

This is based on the target value SubScanTime. This is only useful for ReadSelect operations on an indexed ObitUV.

Parameters:
sel UV selector.
Returns:
suggested subscan length in days;

gboolean ObitUVSelWantAnt ObitUVSel sel,
gint  ant
 

Determine if a given antenna is selected.

Parameters:
sel UV selector.
ant antenna id to test
Returns:
TRUE if antenna selected.

gboolean ObitUVSelWantSour ObitUVSel sel,
gint  SourID
 

Determine if a given source is selected.

Parameters:
sel UV selector.
SourID Source ID to be tested
Returns:
TRUE if source selected.


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