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

ObitFInterpolate.h File Reference

ObitFInterpolate does Lagrangian interpolation of positions in an ObitFArray. More...

#include "Obit.h"
#include "ObitErr.h"
#include "ObitThread.h"
#include "ObitInfoList.h"
#include "ObitImageDesc.h"
#include "ObitFArray.h"

Go to the source code of this file.

Classes

struct  ObitFInterpolate
 ObitFInterpolate Class structure. More...
struct  ObitFInterpolateClassInfo
 ClassInfo Structure. More...

Defines

#define ObitFInterpolateUnref(in)   ObitUnref (in)
 Macro to unreference (and possibly destroy) an ObitFInterpolate returns a ObitFInterpolate*.
#define ObitFInterpolateRef(in)   ObitRef (in)
 Macro to reference (update reference count) an ObitFInterpolate.
#define ObitFInterpolateIsA(in)   ObitIsA (in, ObitFInterpolateGetClass())
 Macro to determine if an object is the member of this or a derived class.

Functions

void ObitFInterpolateClassInit (void)
 Public: Class initializer.
ObitFInterpolatenewObitFInterpolate (gchar *name)
 Public: Constructor.
ObitFInterpolatenewObitFInterpolateCreate (gchar *name, ObitFArray *array, ObitImageDesc *desc, glong hwidth)
 Public: Constructor from value.
gconstpointer ObitFInterpolateGetClass (void)
 Public: ClassInfo pointer.
ObitFInterpolateObitFInterpolateCopy (ObitFInterpolate *in, ObitFInterpolate *out, ObitErr *err)
 Public: Copy (deep) constructor.
ObitFInterpolateObitFInterpolateClone (ObitFInterpolate *in, ObitFInterpolate *out)
 Public: Copy (shallow) constructor.
void ObitFInterpolateReplace (ObitFInterpolate *in, ObitFArray *newArray)
 Public: Replace member ObitFArray.
gfloat ObitFInterpolatePixel (ObitFInterpolate *in, gfloat *pixel, ObitErr *err)
 Public: Interpolate Pixel in 2D array.
gfloat ObitFInterpolate1D (ObitFInterpolate *in, gfloat pixel)
 Public: Interpolate value in 1- array.
gfloat ObitFInterpolatePosition (ObitFInterpolate *in, gdouble *coord, ObitErr *err)
 Public: Interpolate Position in 2D array.
gfloat ObitFInterpolateOffset (ObitFInterpolate *in, gdouble *offset, ObitErr *err)
 Public: Interpolate Offset in 2D array.


Detailed Description

ObitFInterpolate does Lagrangian interpolation of positions in an ObitFArray.

This class is derived from the Obit class.


Define Documentation

#define ObitFInterpolateIsA in   )     ObitIsA (in, ObitFInterpolateGetClass())
 

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 ObitFInterpolateRef in   )     ObitRef (in)
 

Macro to reference (update reference count) an ObitFInterpolate.

returns a ObitFInterpolate*. in = object to reference

#define ObitFInterpolateUnref in   )     ObitUnref (in)
 

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

in = object to unreference


Function Documentation

ObitFInterpolate* newObitFInterpolate gchar *  name  ) 
 

Public: Constructor.

Initializes class if needed on first call.

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

ObitFInterpolate* newObitFInterpolateCreate gchar *  name,
ObitFArray array,
ObitImageDesc desc,
glong  hwidth
 

Public: Constructor from value.

Initializes class if needed on first call.

Parameters:
name An optional name for the object.
array The ObitFarray to be interpolated.
desc if nonNULL, an image descriptor to be attached to the output.
hwidth Half width of interpolation kernal (range [1,4] allowed).
Returns:
the new object.

gfloat ObitFInterpolate1D ObitFInterpolate in,
gfloat  pixel
 

Public: Interpolate value in 1- array.

Parameters:
in The object to interpolate
pixel Pixel location (1-rel) in array
Returns:
value, blanked if invalid

void ObitFInterpolateClassInit void   ) 
 

Public: Class initializer.

ObitFInterpolate* ObitFInterpolateClone ObitFInterpolate in,
ObitFInterpolate out
 

Public: Copy (shallow) constructor.

The result will have pointers to the more complex members. Parent class members are included but any derived class info is ignored.

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

ObitFInterpolate* ObitFInterpolateCopy ObitFInterpolate in,
ObitFInterpolate out,
ObitErr err
 

Public: Copy (deep) constructor.

Copies are made of complex members including disk files; these will be copied applying whatever selection is associated with the input. Parent class members are included but any derived class info is ignored.

Parameters:
in The object to copy
out An existing object pointer for output or NULL if none exists.
err Error stack, returns if not empty.
Returns:
pointer to the new object.

gconstpointer ObitFInterpolateGetClass void   ) 
 

Public: ClassInfo pointer.

Returns:
pointer to the class structure.

gfloat ObitFInterpolateOffset ObitFInterpolate in,
gdouble *  off,
ObitErr err
 

Public: Interpolate Offset in 2D array.

The object must have an image descriptor to allow determing pixel coordinates. Interpolation between planes is not supported.

Parameters:
in The object to interpolate
off Coordinate offset in plane
err Error stack is pixel not inside image.
Returns:
value, blanked if invalid

gfloat ObitFInterpolatePixel ObitFInterpolate in,
gfloat *  pixel,
ObitErr err
 

Public: Interpolate Pixel in 2D array.

Interpolation between planes is not supported.

Parameters:
in The object to interpolate
pixel Pixel location (1-rel) in planes and which plane. Should have number of dimensions equal to in.
err Error stack if pixel not inside image.
Returns:
value, magic blanked if invalid

gfloat ObitFInterpolatePosition ObitFInterpolate in,
gdouble *  coord,
ObitErr err
 

Public: Interpolate Position in 2D array.

The object must have an image descriptor to allow determing pixel coordinates. Interpolation between planes is not supported.

Parameters:
in The object to interpolate
coord Coordinate value in plane and which plane. Should have number of dimensions equal to in.
err Error stack is pixel not inside image.
Returns:
value, blanked if invalid

void ObitFInterpolateReplace ObitFInterpolate in,
ObitFArray newArray
 

Public: Replace member ObitFArray.

Parameters:
in The object to update
newArray The new FArray for in


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