OPERA  1.0
Open source echelle spectrograph reduction pipeline
operaCCD.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BIG   1.0e30
#define true   1
#define false   0
#define PI   3.141592654

Functions

void operaMaskPixbyCountRange (unsigned npixels, float *array, float *badpixmask, float *newmask, float minvalue, float maxvalue, unsigned char invert)
 This function creates a new mask based on a previous badpixel mask and on a defined range of values.
void operaMarkPixbyCountRange (unsigned npixels, float *array, float *previousmarks, float *newmarks, float minvalue, float maxvalue, float index2mark)
 This function creates a mask where it marks pixels with the same number based on a defined range of values.
void operaCCDGainNoise (unsigned npixels, unsigned nbias, float *biasdata[], unsigned nflat, float *flatdata[], float *badpixdata, float lowcount, float highcount, float maxbins, float minnpixelsperbin, float *gain, float *noise)
 This function calculates the CCD gain and noise given a set of bias and a set of flat arrays.

Define Documentation

#define BIG   1.0e30
#define false   0
#define PI   3.141592654
#define true   1

Function Documentation

void operaCCDGainNoise ( unsigned  npixels,
unsigned  nbias,
float *  biasdata[],
unsigned  nflat,
float *  flatdata[],
float *  badpixdata,
float  lowcount,
float  highcount,
float  maxbins,
float  minnpixelsperbin,
float *  gain,
float *  noise 
)

This function calculates the CCD gain and noise given a set of bias and a set of flat arrays.

void operaCCDGainNoise(unsigned npixels, unsigned nbias, float *biasdata[], unsigned nflat, float *flatdata[], float *badpixdata, float lowcount, float highcount, float maxbins, float minnpixelsperbin, float *gain, float *noise)

Parameters:
npixelsis an unsigned for the number of pixels in the arrays,
nbiasis an unsigned for the number of bias arrays,
biasdatais an array of float pointers that contain the bias data,
nflatis an unsigned for the number of flat arrays,
badpixdatais a float pointer that contains the badpixel mask data,
lowcountis a float for the lowest pixel count value to be considered
highcountis a float for the highest pixel count value to be considered
maxbinsis a float for the number of bins to divide the range considered
minnpixelsperbinis a float for the minimum number of pixels per bin allowed in order to consider the bin
gainis a float pointer that returns the calculated gain value
noiseis a float pointer that returns the calculated noise value
Returns:
void

Here is the call graph for this function:

void operaMarkPixbyCountRange ( unsigned  npixels,
float *  array,
float *  previousmarks,
float *  newmarks,
float  minvalue,
float  maxvalue,
float  index2mark 
)

This function creates a mask where it marks pixels with the same number based on a defined range of values.

void operaMarkPixbyCountRange(unsigned npixels, float *array, float *previousmark, float *newmark, float minvalue, float maxvalue, unsigned index2mark)

Note:
It keeps the previous mark mask values.
Parameters:
npixelsis an unsigned for the number of elements in the array
arrayis a float pointer with the data
previousmarksis a float pointer with the input badpixel mask data
newmarksis a float pointer for the output mask
minvalueis a float that defines the minimum data value to keep mask on (value=1)
maxvalueis a float that defines the maximum data value to keep mask on (value=1)
index2markis an unsigned to mark values on the selected elements
Returns:
void
void operaMaskPixbyCountRange ( unsigned  npixels,
float *  array,
float *  badpixmask,
float *  newmask,
float  minvalue,
float  maxvalue,
unsigned char  invert 
)

This function creates a new mask based on a previous badpixel mask and on a defined range of values.

void operaMaskPixbyCountRange(unsigned npixels, float *array, float *badpixmask, float *newmask, float minvalue, float maxvalue, bool invert)

Parameters:
npixelsis an unsigned for the number of elements in the array
arrayis a float pointer with the data
badpixmaskis a float pointer with the input badpixel mask data
newmaskis a float pointer for the output mask
minvalueis a float that defines the minimum data value to keep mask on (value=1)
maxvalueis a float that defines the maximum data value to keep mask on (value=1)
invertis a bool that allows one to invert the mask values for the selected elements
Returns:
void