dataops.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void make_overlay (double theta, int npixx, int npixy, float *overlay, char *coordfile)
 Make an overlay containing N-E axes.
void scaleasinh (float *buffer, int npixx, int npixy, float median, float minval, float maxval, float sdev, double theta, int neoverlay, float contrast, char *coordfile)
 Apply asinh scaling to the image.
float get_binned (int ix, int iy, int binsize, int npixx, float *buffer)
void get_maxmin (float *buffer, long long npixels, float *z1, float *z2, float *median, float *mean, float *sdev)
 Calculate max and min from a subset of the fits image pixels.
void get_zscales (float contrast, int n1, int n2, float *buffer, float *z1, float *z2)
int compare (const float *v1, const float *v2)
void lsfit (int ndata, float *xdata, float *ydata, float *a, float *b)
float quick_select (float *a, long long n)
 Calculate median value of an array a of size n.

Detailed Description

Author:
Ian Bond, IfA, University of Edinburgh

Function Documentation

int compare ( const float *  v1,
const float *  v2 
)

Comparison operation that is used in conjunction with the standard C library qsort function.

Referenced by get_zscales().

float get_binned ( int  ix,
int  iy,
int  binsize,
int  npixx,
float *  buffer 
)

Bin the image buffer data at the given pixel (ix, iy) and given binsize

Referenced by get_jbuffer().

void get_maxmin ( float *  buffer,
long long  npixels,
float *  z1,
float *  z2,
float *  median,
float *  mean,
float *  sdev 
)

Calculate max and min from a subset of the fits image pixels.

References MAX, and quick_select().

Referenced by mef2jpeg().

void get_zscales ( float  contrast,
int  n1,
int  n2,
float *  buffer,
float *  z1,
float *  z2 
)

Calculate z1 and z2 using the "z scale" algorithm for a given contrast. The calculation of z1 and z2 is done by implementating the algorithm used in IRAF. See the IRAF documentation for "display" for more details.

References compare(), and lsfit().

void lsfit ( int  ndata,
float *  xdata,
float *  ydata,
float *  a,
float *  b 
)

Implement the least squares formula on the two arrays of a and y data. Here we have y = a + bx.

Referenced by get_zscales().

void make_overlay ( double  theta,
int  npixx,
int  npixy,
float *  overlay,
char *  coordfile 
)

Make an overlay containing N-E axes.

References MAX.

Referenced by scaleasinh().

float quick_select ( float *  a,
long long  n 
)

Calculate median value of an array a of size n.

void scaleasinh ( float *  buffer,
int  npixx,
int  npixy,
float  median,
float  minval,
float  maxval,
float  sdev,
double  theta,
int  neoverlay,
float  contrast,
char *  coordfile 
)

Apply asinh scaling to the image.

References make_overlay(), MAX, and MIN.

Referenced by mef2jpeg().

Generated on Mon Oct 4 10:39:51 2010 for WsaTools by  doxygen 1.6.3