GETCONVERTFACTOR

Description :

By recording two flat field images and two biases images from the CCD camera, the conversion factor (e-/Adu) and the readout noise (e-) can be computed accurately using this function.

Please have a look HERE to get important information about CCD testing functions.

Minimum version :1.6

Syntax :

GETCONVERTFACTOR ImgFlat1 ImgFlat2 ImgBias1 ImgBias2 X1 Y1 X2 Y2 AWindowsx Awindowsy FactConv RMSNoise [ErrorFactconv ErrorNoise]

Variables :

Parameters Inputs / Outputs Type Description
ImgFlat1 Input Image variable First flat field image handle
ImgFlat2 Input Image variable Second.flat field image handle
ImgBias1 Input Image variable First bias image handle
ImgBias2 Input Image variable Second bias image handle
X1 Input Integer Left bottom X image coordinates where the statistic will be computed
Y1 Input Integer Left bottom Y image coordinates where the statistic will be computed
X2 Input Integer Top right X image coordinates where the statistic will be computed
Y2 Input Integer Top right Y image coordinates where the statistic will be computed
AWindowsx Input Integer Amount of windows in the horizontal direction of the image
AWindowsy Input Integer Amount of windows in the vertical direction of the image, it shall lead to window that have a size of 20x20 pixels to 50x50pixels
FactConv Output Floating point Conversion factor expressed in electrons per ADU
RMSNoise Output Floating point Readout noise, computed from the two biases expressed in electrons RMS
ErrorFactconv Output Floating point Optional : Error related to conversion factor (e-/ADU)
ErrorNoise Output Floating point Optional : Error related to noise (e- rms)

 

See also :

GETNOISE
GETLINEARITY
STAT
STATWINDOW

Example :

path$="C:\Prism\Images de test\ccd_test\CVF\"

a$=path$+"flat1.cpa"
open ImgFlat1 a$

a$=path$+"flat2.cpa"
open ImgFlat2 a$

a$=path$+"bias1.cpa"
open ImgBias1 a$

a$=path$+"bias2.cpa"
open ImgBias2 a$

Width ImgBias2 Wt
height ImgBias2 Ht

X1=1
Y1=1
X2=Wt
Y2=Ht
NbWindowsx=25
NbWindowsy=50

GETCONVERTFACTOR ImgFlat1 ImgFlat2 ImgBias1 ImgBias2 X1 Y1 X2 Y2 NbWindowsx NbWindowsy FactConv RMSNoise ErrorMeasureStdDeviation ErrorMeasureRMSNoise

print "FactConv=" FactConv " RMSNoise=" RMSNoise " ErrCVF=" ErrorMeasureStdDeviation " ErrNoise=" ErrorMeasureRMSNoise

Close ImgBias2
Close ImgBias1
Close ImgFlat2
Close ImgFlat1