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

ObitOTFUtil.h File Reference

Utility routines for the ObitOTF class. More...

#include "Obit.h"
#include "ObitErr.h"
#include "ObitThread.h"
#include "ObitInfoList.h"
#include "ObitIO.h"
#include "ObitImage.h"
#include "ObitOTF.h"
#include "ObitOTFArrayGeom.h"
#include "ObitOTFSkyModel.h"
#include "ObitOTFGrid.h"
#include "ObitFInterpolate.h"
#include "ObitTableCC.h"

Go to the source code of this file.

Functions

void ObitOTFUtilSubSkyModelBuff (ObitOTF *in, ObitOTFSkyModel *sky, gfloat factor)
 Public: Subtract a sky model from a buffer of data.
void ObitOTFUtilSubImage (ObitOTF *inOTF, ObitOTF *outOTF, ObitFArray *image, ObitImageDesc *desc, ObitErr *err)
 Public: Subtract an image (ObitFarray) from an ObitOTF.
void ObitOTFUtilScale (ObitOTF *inOTF, ObitOTF *outOTF, gfloat scale, gfloat offset, ObitErr *err)
 Public: Scale an OTF data set.
void ObitOTFUtilNoise (ObitOTF *inOTF, ObitOTF *outOTF, gfloat scale, gfloat offset, gfloat sigma, ObitErr *err)
 Public: Scale and add Gaussian noise to an OTF data set.
void ObitOTFUtilSubImageBuff (ObitOTF *in, ObitFInterpolate *image, gfloat factor, ObitErr *err)
 Public: Subtract an image interpolator from a buffer of data.
ObitImage * ObitOTFUtilCreateImage (ObitOTF *inOTF, ObitErr *err)
 Public: Create an Image Object from an OTF.
void ObitOTFUtilMakeImage (ObitOTF *inOTF, ObitImage *outImage, gboolean doBeam, ObitImage *Beam, ObitErr *err)
 Public: Convert an OTF to an image Object.
void ObitOTFUtilIndex (ObitOTF *inOTF, ObitErr *err)
 Public:Index an OTF.
void ObitOTFUtilDiffNod (ObitOTF *inOTF, gint scan, ObitErr *err)
 Public: Get on-off differences in a nodding scan.
void ObitOTFUtilMakeCube (ObitImageDesc *inDesc, ObitOTFDesc *OTFDesc, ObitImageDesc *outDesc, gchar *Stokes, gint bchan, gint echan, gint incr, ObitErr *err)
 Public:Create image cube.
ObitFArray * ObitOTFUtilConvBeam (ObitTableCC *CCTab, ObitImage *Beam, ObitFArray *Template, ObitErr *err)
 Public: Utility to convolve CCs with a beam.


Detailed Description

Utility routines for the ObitOTF class.

Control Parameters

The imaging control parameters are passed through the info object on the OTF data, these control both the output image files and the processing parameters. OTF Data selection/calibration/editing control Gridding/imaging parameters

Function Documentation

ObitFArray* ObitOTFUtilConvBeam ObitTableCC *  CCTab,
ObitImage *  Beam,
ObitFArray *  Template,
ObitErr *  err
 

Public: Utility to convolve CCs with a beam.

Parameters:
CCTab CC Table, following parameters on infoList
  • "BComp" OBIT_int (1,1,1) Start CC to use, 1-rel [def 1 ]
  • "EComp" OBIT_int (1,1,1) Highest CC to use, 1-rel [def to end ]
Beam Beam image to convolve with CCs
Template Template for output array
err Obit Error stack
Returns:
An ObitFArray whose size is that of Template, spacing is that of Beam with the CCs in CCTab convolved with Beam and the (0,0) position is (nx/2,ny/2) (0-rel)

ObitImage* ObitOTFUtilCreateImage ObitOTF inOTF,
ObitErr *  err
 

Public: Create an Image Object from an OTF.

Imaging parameters are on the inOTF info member.

  • "nx" OBIT_int (1,1,1) Dimension of image in RA [no default].
  • "ny" OBIT_int (1,1,1) Dimension of image in declination[no default]
  • "RA" OBIT_float (1,1,1) Right Ascension of center of image Default is observed position center in inOTF
  • "Dec" OBIT_float (1,1,1) Declination of center of image Default is observed position center in inOTF
  • "xCells" OBIT_float (1,1,1) X (=RA) cell spacing in asec [no default]
  • "yCells" OBIT_float (1,1,1) Y (=dec) cell spacing in asec [no default]
  • "Proj" OBIT_string (4,1,1) Projection string "-SIN", "-ARC", "-TAN" [Default "-SIN"]
    Parameters:
    inOTF Input OTF data.
    err Error stack, returns if not empty.
    Returns:
    Pointer to the newly created ObitImage.

void ObitOTFUtilDiffNod ObitOTF inOTF,
gint  scan,
ObitErr *  err
 

Public: Get on-off differences in a nodding scan.

For beamswitched data this will be twice the source strength.

Parameters:
inOTF Input OTF data. Applies any calibration specified Target position must be in OTFTarget table.
scan Scan number
err Error stack, returns if not empty.

void ObitOTFUtilIndex ObitOTF inOTF,
ObitErr *  err
 

Public:Index an OTF.

Parameters:
inOTF Input OTF data.
err Error stack, returns if not empty.

void ObitOTFUtilMakeCube ObitImageDesc *  inDesc,
ObitOTFDesc OTFDesc,
ObitImageDesc *  outDesc,
gchar *  Stokes,
gint  bchan,
gint  echan,
gint  incr,
ObitErr *  err
 

Public:Create image cube.

This should be called before the image is Opened or instantiated.

Parameters:
inDesc Input Image Descriptor.
UVDesc Input UV Descriptor.
outDesc Output Image Descriptor
Stokes Stokes parameter of image ' '=>'I', (I, Q, U, V, R, L)
bchan first (1-rel) channel in UVDesc
echan highest (1-rel) channel in UVDesc
incr channel increment in input
nchavg How many uv channels to average per image channel. Ignored if uv data has multiple IFs.

void ObitOTFUtilMakeImage ObitOTF inOTF,
ObitImage *  outImage,
gboolean  doBeam,
ObitImage *  Beam,
ObitErr *  err
 

Public: Convert an OTF to an image Object.

Imaging parameters are on the inOTF info member.

  • "minWt" OBIT_float (1,1,1) Minimum summed gridding convolution weight [def 0.1]
    Parameters:
    inOTF Input OTF data.
    outImage Image to be written. Must be previously instantiated.
    doBeam If TRUE also make convolved beam. Will make the myBeam member of outImage.
    Beam If non NULL use as instrumental response beam
    err Error stack, returns if not empty.

void ObitOTFUtilNoise ObitOTF inOTF,
ObitOTF outOTF,
gfloat  scale,
gfloat  offset,
gfloat  sigma,
ObitErr *  err
 

Public: Scale and add Gaussian noise to an OTF data set.

Parameters:
inOTF Input OTF
outOTF Output OTF, must already be defined
scale scaling factor for data
offset additive term to be applied to all data.
sigma Standard deviation of Gaussian noise .
err Error stack

void ObitOTFUtilScale ObitOTF inOTF,
ObitOTF outOTF,
gfloat  scale,
gfloat  offset,
ObitErr *  err
 

Public: Scale an OTF data set.

Parameters:
inOTF Input OTF
outOTF Output OTF, must already be defined
scale scaling factor for data
offset additive term to be applied to all data.
err Error stack

void ObitOTFUtilSubImage ObitOTF inOTF,
ObitOTF outOTF,
ObitFArray *  image,
ObitImageDesc *  desc,
ObitErr *  err
 

Public: Subtract an image (ObitFarray) from an ObitOTF.

Parameters:
inOTF Input OTF
outOTF Output OTF, must already be defined
image Image plane to subtract
desc Image descriptor for image
err Error stack

void ObitOTFUtilSubImageBuff ObitOTF in,
ObitFInterpolate *  image,
gfloat  factor,
ObitErr *  err
 

Public: Subtract an image interpolator from a buffer of data.

For CCB beamswitched data (OTFType=OBIT_GBTOTF_CCB, no. States=1)

Parameters:
in OTF with internal buffer to be modified.
image Image interpolator
factor Scaling factor for model.
err Error stack

void ObitOTFUtilSubSkyModelBuff ObitOTF in,
ObitOTFSkyModel sky,
gfloat  factor
 

Public: Subtract a sky model from a buffer of data.

Parameters:
in OTF with internal buffer to be modified.
sky OTFSkyModel to subtract.
factor Scaling factor for sky model.


Generated on Mon Sep 3 20:43:54 2007 by  doxygen 1.3.9.1