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

ObitSkyModelVMSquint.c File Reference

ObitSkyModelVMIon class function definitions. More...

#include "ObitTableCCUtil.h"
#include "ObitSkyModelVMSquint.h"
#include "ObitFFT.h"
#include "ObitUVUtil.h"
#include "ObitImageUtil.h"
#include "ObitPBUtil.h"
#include "ObitMem.h"
#include "ObitPrecess.h"
#include "ObitTableANUtil.h"
#include "ObitSkyGeom.h"

Defines

#define VELIGHT   2.997924562e8

Functions

void ObitSkyModelVMSquintFTDFT (ObitSkyModelVM *in, gint field, ObitUV *uvdata, ObitErr *err)
 Private: FT by DFT, may be overridden in derived class.
void ObitSkyModelVMSquintInit (gpointer in)
 Private: Initialize newly instantiated object.
void ObitSkyModelVMSquintClear (gpointer in)
 Private: Deallocate members.
void ObitSkyModelVMSquintGetInput (ObitSkyModel *inn, ObitErr *err)
 Private: Get Inputs.
gfloat BeamAngle (ObitImageDesc *in, gfloat x, gfloat y, gfloat offx, gfloat offy)
 Private: Get Angle from center of the beam.
ObitSkyModelVMSquintnewObitSkyModelVMSquint (gchar *name)
 Public: Default Constructor.
gconstpointer ObitSkyModelVMSquintGetClass (void)
 Public: ClassInfo pointer.
ObitSkyModelVMSquintObitSkyModelVMSquintCopy (ObitSkyModelVMSquint *in, ObitSkyModelVMSquint *out, ObitErr *err)
 Public: Copy (deep) constructor.
ObitSkyModelVMSquintObitSkyModelVMSquintCreate (gchar *name, ObitImageMosaic *mosaic)
 Public: Create/initialize ObitSkyModelVMSquint structures.
void ObitSkyModelVMSquintInitMod (ObitSkyModel *inn, ObitUV *uvdata, ObitErr *err)
 Public: initialize ObitSkyModelVMSquint structures.
void ObitSkyModelVMSquintShutDownMod (ObitSkyModel *inn, ObitUV *uvdata, ObitErr *err)
 Public: shutdown ObitSkyModel processes.
void ObitSkyModelVMSquintInitModel (ObitSkyModel *inn, ObitErr *err)
 Initializes an ObitSkyModel for a pass through data in time order.
void ObitSkyModelVMSquintUpdateModel (ObitSkyModelVM *inn, gfloat time, gint suba, ObitUV *uvdata, ObitErr *err)
 Public: Routine to update model.
void ObitSkyModelVMSquintClassInit (void)
 Public: Class initializer.
void ObitSkyModelVMSquintChose (ObitSkyModel *inn, ObitUV *uvdata)
 Private: Chose model type.


Detailed Description

ObitSkyModelVMIon class function definitions.

This class is derived from the ObitSkyModelVM class

This class represents sky models incorporating beam squint corrections and their Fourier transforms.


Define Documentation

#define VELIGHT   2.997924562e8
 


Function Documentation

gfloat BeamAngle ObitImageDesc in,
gfloat  x,
gfloat  y,
gfloat  offx,
gfloat  offy
 

Private: Get Angle from center of the beam.

Parameters:
in Image descriptor
x X offset in deg from ref pixel in in This should be in the same system and equinox as in in.
y Y offset in deg from ref pixel in in
err Error stack, returns if not empty.
Returns:
angular distance on the sky (deg)

ObitSkyModelVMSquint* newObitSkyModelVMSquint gchar *  name  ) 
 

Public: Default Constructor.

Initializes class if needed on first call.

Parameters:
name An optional name for the object.
Returns:
the new object.

void ObitSkyModelVMSquintChose ObitSkyModel inn,
ObitUV uvdata
 

Private: Chose model type.

Parameters:
in Pointer to the ObitSkyModel .
uvdata UV data set

void ObitSkyModelVMSquintClassInit void   ) 
 

Public: Class initializer.

void ObitSkyModelVMSquintClear gpointer  inn  ) 
 

Private: Deallocate members.

Does (recursive) deallocation of parent class members. For some reason this wasn't build into the GType class.

Parameters:
inn Pointer to the object to deallocate. Actually it should be an ObitSkyModelVMSquint* cast to an Obit*.

ObitSkyModelVMSquint* ObitSkyModelVMSquintCopy ObitSkyModelVMSquint in,
ObitSkyModelVMSquint out,
ObitErr err
 

Public: Copy (deep) constructor.

Parameters:
in The object to copy
out An existing object pointer for output or NULL if none exists.
err Obit error stack object.
Returns:
pointer to the new object.

ObitSkyModelVMSquint* ObitSkyModelVMSquintCreate gchar *  name,
ObitImageMosaic mosaic
 

Public: Create/initialize ObitSkyModelVMSquint structures.

Parameters:
name An optional name for the object.
mosaic ObitImageMosaic giving one or more images/CC tables
Returns:
the new object.

void ObitSkyModelVMSquintFTDFT ObitSkyModelVM inn,
gint  field,
ObitUV uvdata,
ObitErr err
 

Private: FT by DFT, may be overridden in derived class.

Version for time/spatial dependent effects. If doDivide member is true then FT of model is divided into the data, If doReplace member is true then FT of model replaces the data, else, it is subtracted. If doFlip member is true the Fourier transform is multiplied by sqrt(-1) (for Stokes RL and LR) This function may be overridden in a derived class and should always be called by its function pointer. Method assumes same correction to all antennas. After the AIPSish QXXPTS, QPTDIV and friends

Parameters:
in SkyModelVM with model components loaded (ObitSkyModelLoad)
field Field number being processed (-1 => all)
uvdata UV data set to model and subtract from current buffer
err Obit error stack object.
Returns:
return code, OBIT_IO_OK=> OK

gconstpointer ObitSkyModelVMSquintGetClass void   ) 
 

Public: ClassInfo pointer.

Returns:
pointer to the class structure.

void ObitSkyModelVMSquintGetInput ObitSkyModel inn,
ObitErr err
 

Private: Get Inputs.

If any image has an info item "maxAbsResid" the the maximum of any of these is used, else the MAX (fabs(minval), fabs(maxval)) is used.

Parameters:
in Pointer to the ObitSkyModelVMSquint .
err Obit error stack object.

void ObitSkyModelVMSquintInit gpointer  inn  ) 
 

Private: Initialize newly instantiated object.

Parent classes portions are (recursively) initialized first

Parameters:
inn Pointer to the object to initialize.

void ObitSkyModelVMSquintInitMod ObitSkyModel inn,
ObitUV uvdata,
ObitErr err
 

Public: initialize ObitSkyModelVMSquint structures.

Parameters:
in SkyModel to initialize
uvdata uv data being modeled.
err Obit error stack object.

void ObitSkyModelVMSquintInitModel ObitSkyModel inn,
ObitErr err
 

Initializes an ObitSkyModel for a pass through data in time order.

Resets current times

Parameters:
in SkyModel to initialize
err Obit error stack object.

void ObitSkyModelVMSquintShutDownMod ObitSkyModel inn,
ObitUV uvdata,
ObitErr err
 

Public: shutdown ObitSkyModel processes.

Parameters:
in SkyModel to shutdown
uvdata uv data being modeled.
err Obit error stack object.

void ObitSkyModelVMSquintUpdateModel ObitSkyModelVM inn,
gfloat  time,
gint  suba,
ObitUV uvdata,
ObitErr err
 

Public: Routine to update model.

Parameters:
in SkyModelVM
time current time (d)
suba 0-rel subarray number
uvdata uv data being modeled.
err Obit error stack object.


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