#include "ObitFArray.h"
#include "ObitMem.h"
Defines | |
| #define | MAXSYMINVSIZE 50 |
Functions | |
| void | ObitFArrayInit (gpointer in) |
| Private: Initialize newly instantiated object. | |
| void | ObitFArrayClear (gpointer in) |
| Private: Deallocate members. | |
| ObitFArray * | newObitFArray (gchar *name) |
| Public: Default Constructor. | |
| gconstpointer | ObitFArrayGetClass (void) |
| Public: ClassInfo pointer. | |
| ObitFArray * | ObitFArrayCopy (ObitFArray *in, ObitFArray *out, ObitErr *err) |
| Public: Copy (deep) constructor. | |
| void | ObitFArrayClone (ObitFArray *in, ObitFArray *out, ObitErr *err) |
| Public: Copy structure. | |
| gboolean | ObitFArrayIsCompatable (ObitFArray *in1, ObitFArray *in2) |
| Public: Are two FArrays of compatable geometry. | |
| ObitFArray * | ObitFArrayCreate (gchar *name, glong ndim, glong *naxis) |
| Public: Create/initialize ObitFArray structures. | |
| ObitFArray * | ObitFArraySubArr (ObitFArray *in, glong *blc, glong *trc, ObitErr *err) |
| Public: Copy Subarray constructor. | |
| ObitFArray * | ObitFArrayTranspose (ObitFArray *in, glong *order, ObitErr *err) |
| Public: Transpose constructor. | |
| ObitFArray * | ObitFArrayRealloc (ObitFArray *in, glong ndim, glong *naxis) |
| Public: Reallocate/initialize ObitFArray structures. | |
| gfloat * | ObitFArrayIndex (ObitFArray *in, glong *pos) |
| Public: return pointer to a specified element. | |
| gfloat | ObitFArrayMax (ObitFArray *in, glong *pos) |
| Public: Find Maximum value in an ObitFArray. | |
| gfloat | ObitFArrayMaxAbs (ObitFArray *in, glong *pos) |
| Public: Find Maximum abs value in an ObitFArray. | |
| gfloat | ObitFArrayMin (ObitFArray *in, glong *pos) |
| Public: Find Minimum value in an ObitFArray. | |
| void | ObitFArrayDeblank (ObitFArray *in, gfloat scalar) |
| Public: Replace blanks in an ObitFArray. | |
| gfloat | ObitFArrayRMS (ObitFArray *in) |
| Public: RMS of pixel distribution from histogram. | |
| gfloat | ObitFArrayRawRMS (ObitFArray *in) |
| Public: RMS of pixel distribution. | |
| gfloat | ObitFArrayRMS0 (ObitFArray *in) |
| Public: RMS of pixel about zero. | |
| gfloat | ObitFArrayRMSQuant (ObitFArray *in) |
| Public: RMS of pixel in potentially quantized image. | |
| void | ObitFArrayQuant (ObitFArray *in, gfloat *quant, gfloat *zero) |
| Public: Determine quantization and offset in an image. | |
| gfloat | ObitFArrayMode (ObitFArray *in) |
| Public: Mode of pixel distribution. | |
| gfloat | ObitFArrayMean (ObitFArray *in) |
| Public: Mean of pixel distribution. | |
| void | ObitFArrayFill (ObitFArray *in, gfloat scalar) |
| Public: fill elements of an FArray. | |
| void | ObitFArrayNeg (ObitFArray *in) |
| Public: negate elements of an FArray. | |
| void | ObitFArraySin (ObitFArray *in) |
| Public: sine of elements of an FArray. | |
| void | ObitFArrayCos (ObitFArray *in) |
| Public: cosine of elements of an FArray. | |
| gfloat | ObitFArraySum (ObitFArray *in) |
| Public: sum elements of an FArray. | |
| glong | ObitFArrayCount (ObitFArray *in) |
| Public: number of valid elements in an FArray. | |
| void | ObitFArraySAdd (ObitFArray *in, gfloat scalar) |
| Public: Add a scalar to elements of an FArray. | |
| void | ObitFArraySMul (ObitFArray *in, gfloat scalar) |
| Public: Multiply elements of an FArray by a scalar. | |
| void | ObitFArraySDiv (ObitFArray *in, gfloat scalar) |
| Public: Divide elements of an FArray into a scalar. | |
| void | ObitFArrayClip (ObitFArray *in, gfloat minVal, gfloat maxVal, gfloat newVal) |
| Public: Clip elements of an FArray outside of a given range. | |
| void | ObitFArrayInClip (ObitFArray *in, gfloat minVal, gfloat maxVal, gfloat newVal) |
| Public: Clip elements of an FArray inside of a given range. | |
| void | ObitFArrayBlank (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Blank elements of an array where another is blanked. | |
| void | ObitFArrayMaxArr (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Get larger elements of two FArrays. | |
| void | ObitFArrayMinArr (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Get lesser elements of two FArrays. | |
| void | ObitFArraySumArr (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Sum nonblanked elements of two FArrays. | |
| void | ObitFArrayAvgArr (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Average nonblanked elements of two FArrays. | |
| void | ObitFArrayAdd (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Add elements of two FArrays. | |
| void | ObitFArraySub (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Subtract elements of two FArrays. | |
| void | ObitFArrayMul (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Multiply elements of two FArrays. | |
| void | ObitFArrayDiv (ObitFArray *in1, ObitFArray *in2, ObitFArray *out) |
| Public: Divide elements of two FArrays. | |
| void | ObitFArrayDivClip (ObitFArray *in1, ObitFArray *in2, gfloat minVal, ObitFArray *out) |
| Public: Divide elements of two FArrays with clipping. | |
| gfloat | ObitFArrayDot (ObitFArray *in1, ObitFArray *in2) |
| Public: "Dot" product to two arrays. | |
| void | ObitFArrayMulColRow (ObitFArray *in, ObitFArray *row, ObitFArray *col, ObitFArray *out) |
| Public: Multiply a 2D array by a Col vector * Row vector. | |
| void | ObitFArray1DCenter (ObitFArray *in) |
| Public: Convert a 1D "center at edges" array to proper order. | |
| void | ObitFArray2DCenter (ObitFArray *in) |
| Public: Convert a 2D "center at edges" array to proper order. | |
| void | ObitFArray2DSymInv (ObitFArray *in, gint *ierr) |
| Public: inplace invert a symmetric 2D array. | |
| void | ObitFArray2DCGauss (ObitFArray *array, glong Cen[2], gfloat FWHM) |
| Public: Make 2-D Circular Gaussian in FArray. | |
| void | ObitFArray2DEGauss (ObitFArray *array, gfloat amp, gfloat Cen[2], gfloat GauMod[3]) |
| Public: Make 2-D Eliptical Gaussian in FArray. | |
| void | ObitFArrayShiftAdd (ObitFArray *in1, glong *pos1, ObitFArray *in2, glong *pos2, gfloat scalar, ObitFArray *out) |
| Public: Shift and Add scaled array. | |
| void | ObitFArrayPad (ObitFArray *in, ObitFArray *out, gfloat factor) |
| Public: Zero pad an array. | |
| void | ObitFArrayConvGaus (ObitFArray *in, ObitFArray *list, glong ncomp, gfloat gauss[3]) |
| Public: Convolve a list of Gaussians onto an FArray. | |
| void | ObitFArraySelInc (ObitFArray *in, ObitFArray *out, glong *blc, glong *trc, glong *inc, ObitErr *err) |
| Public: Select elements in an FArray by increment. | |
| void | ObitFArrayClassInit (void) |
| Public: Class initializer. | |
This class is derived from the Obit base class.
|
|
|
|
|
Public: Default Constructor. Initializes class if needed on first call.
|
|
|
Public: Convert a 1D "center at edges" array to proper order. This is needed for the peculiar order of FFTs. FFTs don't like blanked values.
|
|
|
Public: Convert a 2D "center at edges" array to proper order. This is needed for the peculiar order of FFTs. FFTs don't like blanked values.
|
|
||||||||||||||||
|
Public: Make 2-D Circular Gaussian in FArray.
|
|
||||||||||||||||||||
|
Public: Make 2-D Eliptical Gaussian in FArray.
|
|
||||||||||||
|
Public: inplace invert a symmetric 2D array.
|
|
||||||||||||||||
|
Public: Add elements of two FArrays. out = in1 + in2, if either is blanked the result is blanked
|
|
||||||||||||||||
|
Public: Average nonblanked elements of two FArrays. out = (in1 + in2)/2 or whichever is not blanked
|
|
||||||||||||||||
|
Public: Blank elements of an array where another is blanked.
|
|
|
Public: Class initializer.
|
|
|
Private: Deallocate members. Does (recursive) deallocation of parent class members. For some reason this wasn't build into the GType class.
|
|
||||||||||||||||||||
|
Public: Clip elements of an FArray outside of a given range.
|
|
||||||||||||||||
|
Public: Copy structure.
|
|
||||||||||||||||||||
|
Public: Convolve a list of Gaussians onto an FArray.
|
|
||||||||||||||||
|
Public: Copy (deep) constructor.
|
|
|
Public: cosine of elements of an FArray. in = cos(in).
|
|
|
Public: number of valid elements in an FArray.
|
|
||||||||||||||||
|
Public: Create/initialize ObitFArray structures.
|
|
||||||||||||
|
Public: Replace blanks in an ObitFArray.
|
|
||||||||||||||||
|
Public: Divide elements of two FArrays. out = in1 / in2
|
|
||||||||||||||||||||
|
Public: Divide elements of two FArrays with clipping. out = in1 / in2 where in2>minVal, else blanked
|
|
||||||||||||
|
Public: "Dot" product to two arrays.
|
|
||||||||||||
|
Public: fill elements of an FArray. in = scalar.
|
|
|
Public: ClassInfo pointer.
|
|
||||||||||||||||||||
|
Public: Clip elements of an FArray inside of a given range.
|
|
||||||||||||
|
Public: return pointer to a specified element. Subsequent data are stored in order of increasing dimension (rows, then columns...).
|
|
|
Private: Initialize newly instantiated object. Parent classes portions are (recursively) initialized first
|
|
||||||||||||
|
Public: Are two FArrays of compatable geometry. Must have same number of non degenerate dimensions and each dimension must be the same size.
|
|
||||||||||||
|
Public: Find Maximum value in an ObitFArray. Return value and location in pos.
|
|
||||||||||||
|
Public: Find Maximum abs value in an ObitFArray. Return value and location in pos.
|
|
||||||||||||||||
|
Public: Get larger elements of two FArrays. out = MAX (in1, in2) or whichever is not blanked
|
|
|
Public: Mean of pixel distribution.
|
|
||||||||||||
|
Public: Find Minimum value in an ObitFArray. Return value and location in pos.
|
|
||||||||||||||||
|
Public: Get lesser elements of two FArrays. out = MIN (in1, in2) or whichever is not blanked
|
|
|
Public: Mode of pixel distribution. Value is based on a histogram analysis and is determined from the peak in the distribution.. out = Mode (in.)
|
|
||||||||||||||||
|
Public: Multiply elements of two FArrays. out = in1 * in2
|
|
||||||||||||||||||||
|
Public: Multiply a 2D array by a Col vector * Row vector. NOTE: this does not check for magic value blanking, this was causing trouble in its major application - image formation - which should not produce blanks. out[i,j] = in[i,j] * row[j] * col[i].
|
|
|
Public: negate elements of an FArray. in = -in.
|
|
||||||||||||||||
|
Public: Zero pad an array. Any blanks in in are replaced with zero. This routine is intended for zero padding images before an FFT to increase the resolution in the uv plane.
|
|
||||||||||||||||
|
Public: Determine quantization and offset in an image.
|
|
|
Public: RMS of pixel distribution.
|
|
||||||||||||||||
|
Public: Reallocate/initialize ObitFArray structures.
|
|
|
Public: RMS of pixel distribution from histogram. Value is based on a histogram analysis and is determined from the width of the peak around the mode. out = RMS (in.)
|
|
|
Public: RMS of pixel about zero.
|
|
|
Public: RMS of pixel in potentially quantized image.
|
|
||||||||||||
|
Public: Add a scalar to elements of an FArray. in = in + scalar
|
|
||||||||||||
|
Public: Divide elements of an FArray into a scalar. No check for zeroes is made . in = scalar / in
|
|
||||||||||||||||||||||||||||
|
Public: Select elements in an FArray by increment.
|
|
||||||||||||||||||||||||||||
|
Public: Shift and Add scaled array. Only handles to 3 dimensions. If in1/out are 3D and in2 is 2D then the same plane in in2 is used for all planes in in1/out. NB: this works better if the alignment point is near the center of in2 out = in1 + scalar x in2 in overlap, else in1
|
|
|
Public: sine of elements of an FArray. in = sin(in).
|
|
||||||||||||
|
Public: Multiply elements of an FArray by a scalar. in = in * scalar
|
|
||||||||||||||||
|
Public: Subtract elements of two FArrays. out = in1 - in2, if either is blanked the result is blanked
|
|
||||||||||||||||||||
|
Public: Copy Subarray constructor.
|
|
|
Public: sum elements of an FArray. out = Sum (in.)
|
|
||||||||||||||||
|
Public: Sum nonblanked elements of two FArrays. out = (in1 + in2) or whichever is not blanked
|
|
||||||||||||||||
|
Public: Transpose constructor.
|
1.3.9.1