TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | __init__ (self, _con) |
def | state (self) |
def | stop (self) |
def | readEndless (self) |
def | get_program (self) |
def | set_program (self, program) |
def | get_attenuation (self) |
def | set_attenuation (self, attenuation) |
def | get_image (self, nFrames=1, _checkZero=False, _async=None) |
def | calibrate_bias_frame (self, skipEdge=3, trimLevel=0.2, nFrames=10) |
def | set_bias_frame (self, frame) |
def | get_channel_mean (self, skipEdge, trimLevel, nFrames=10, _async=None) |
def | align_channel_bias (self, biasTargetLevel=200, biasIncrement=50, maxBiasProbe=1000, nFrames=10, skipEdge=3, trimLevel=0.2, biasStart=0, _async=None) |
def | calibrate_program_channel_bias (self, filename, programs, biasTargetLevel=100, biasIncrement=50, maxBiasProbe=1000, nFrames=10, skipEdge=3, trimLevel=0.2, biasStart=0) |
def | __init__ (self, _con) |
def | state (self) |
def | stop (self) |
def | readEndless (self) |
def | get_program (self) |
def | set_program (self, program) |
def | get_attenuation (self) |
def | set_attenuation (self, attenuation) |
def | get_image (self, nFrames=1, _checkZero=False, _async=None) |
def | calibrate_bias_frame (self, skipEdge=3, trimLevel=0.2, nFrames=10) |
def | set_bias_frame (self, frame) |
def | get_channel_mean (self, skipEdge, trimLevel, nFrames=10, _async=None) |
def | align_channel_bias (self, biasTargetLevel=200, biasIncrement=50, maxBiasProbe=1000, nFrames=10, skipEdge=3, trimLevel=0.2, biasStart=0, _async=None) |
def | calibrate_program_channel_bias (self, filename, programs, biasTargetLevel=100, biasIncrement=50, maxBiasProbe=1000, nFrames=10, skipEdge=3, trimLevel=0.2, biasStart=0) |
Public Attributes | |
ctrl | |
nChanRows | |
nChanCols | |
nChannels | |
channelIndex | |
Static Public Attributes | |
int | nChannels = 0 |
int | nChanRows = 0 |
int | nChanCols = 0 |
string | node = '' |
biasFrame = None | |
High-level calibration and operation methods for CCD39, CCD47, and CCD50.
def laospy.camera.LittleJoeCamera.__init__ | ( | self, | |
_con | |||
) |
Initializes the LittleJoeCamera object Parameters (2 alternatives) ---------- _con: string ccd Service node as defined in the alias file _con: connected ctrl interface ccd Ctrl Service
def laospy.camera.LittleJoeCamera.__init__ | ( | self, | |
_con | |||
) |
Initializes the LittleJoeCamera object Parameters (2 alternatives) ---------- _con: string ccd Service node as defined in the alias file _con: connected ctrl interface ccd Ctrl Service
def laospy.camera.LittleJoeCamera.align_channel_bias | ( | self, | |
biasTargetLevel = 200 , |
|||
biasIncrement = 50 , |
|||
maxBiasProbe = 1000 , |
|||
nFrames = 10 , |
|||
skipEdge = 3 , |
|||
trimLevel = 0.2 , |
|||
biasStart = 0 , |
|||
_async = None |
|||
) |
Equalizes the bias level for all channels of the CCD Parameters ---------- biasTargetLevel : int the approximate bias level for all channels after alignment biasIncrement : int the steps in which the bias setting is increased while probing the response maxBiasProbe : int the highest value for the bias setting. nFrames : int the number of images over which the response is averaged skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) biasStart : int the starting value for the bias setting
def laospy.camera.LittleJoeCamera.align_channel_bias | ( | self, | |
biasTargetLevel = 200 , |
|||
biasIncrement = 50 , |
|||
maxBiasProbe = 1000 , |
|||
nFrames = 10 , |
|||
skipEdge = 3 , |
|||
trimLevel = 0.2 , |
|||
biasStart = 0 , |
|||
_async = None |
|||
) |
Equalizes the bias level for all channels of the CCD Parameters ---------- biasTargetLevel : int the approximate bias level for all channels after alignment biasIncrement : int the steps in which the bias setting is increased while probing the response maxBiasProbe : int the highest value for the bias setting. nFrames : int the number of images over which the response is averaged skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) biasStart : int the starting value for the bias setting
def laospy.camera.LittleJoeCamera.calibrate_bias_frame | ( | self, | |
skipEdge = 3 , |
|||
trimLevel = 0.2 , |
|||
nFrames = 10 |
|||
) |
Calibrates the bias frame Run this calibration with all lights off! Parameters ---------- skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) nFrames : integer (default = 10) number of frames over which the mean image is calculated
def laospy.camera.LittleJoeCamera.calibrate_bias_frame | ( | self, | |
skipEdge = 3 , |
|||
trimLevel = 0.2 , |
|||
nFrames = 10 |
|||
) |
Calibrates the bias frame Run this calibration with all lights off! Parameters ---------- skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) nFrames : integer (default = 10) number of frames over which the mean image is calculated
def laospy.camera.LittleJoeCamera.calibrate_program_channel_bias | ( | self, | |
filename, | |||
programs, | |||
biasTargetLevel = 100 , |
|||
biasIncrement = 50 , |
|||
maxBiasProbe = 1000 , |
|||
nFrames = 10 , |
|||
skipEdge = 3 , |
|||
trimLevel = 0.2 , |
|||
biasStart = 0 |
|||
) |
Determines the bias levels for each combination of program and attenuation Parameters ---------- filename : string name of the logfile programs : list of int programs to be considered in the calibration biasTargetLevel: int the approximate bias level for all channels after alignment biasIncrement : int the steps in which the bias setting is increased while probing the response maxBiasProbe : int the highest value for the bias setting. nFrames : int the number of images over which the response is averaged skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) biasStart : int the starting value for the bias setting
def laospy.camera.LittleJoeCamera.calibrate_program_channel_bias | ( | self, | |
filename, | |||
programs, | |||
biasTargetLevel = 100 , |
|||
biasIncrement = 50 , |
|||
maxBiasProbe = 1000 , |
|||
nFrames = 10 , |
|||
skipEdge = 3 , |
|||
trimLevel = 0.2 , |
|||
biasStart = 0 |
|||
) |
Determines the bias levels for each combination of program and attenuation Parameters ---------- filename : string name of the logfile programs : list of int programs to be considered in the calibration biasTargetLevel: int the approximate bias level for all channels after alignment biasIncrement : int the steps in which the bias setting is increased while probing the response maxBiasProbe : int the highest value for the bias setting. nFrames : int the number of images over which the response is averaged skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) biasStart : int the starting value for the bias setting
def laospy.camera.LittleJoeCamera.get_attenuation | ( | self | ) |
def laospy.camera.LittleJoeCamera.get_attenuation | ( | self | ) |
def laospy.camera.LittleJoeCamera.get_channel_mean | ( | self, | |
skipEdge, | |||
trimLevel, | |||
nFrames = 10 , |
|||
_async = None |
|||
) |
Gets an image and finds the mean of each channel Parameters ---------- skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) nFrames : int the number of images over which the response is averaged
def laospy.camera.LittleJoeCamera.get_channel_mean | ( | self, | |
skipEdge, | |||
trimLevel, | |||
nFrames = 10 , |
|||
_async = None |
|||
) |
Gets an image and finds the mean of each channel Parameters ---------- skipEdge : int the number of pixel columns and rows around the edge of each channel to be excluded from the bias level detection trimLevel : float (0..1) the percentage of pixel values at the upper and lower end of the histogram to be ignored in the determination of the bias level (to exclude dead pixels) nFrames : int the number of images over which the response is averaged
def laospy.camera.LittleJoeCamera.get_image | ( | self, | |
nFrames = 1 , |
|||
_checkZero = False , |
|||
_async = None |
|||
) |
Returns an image from the LittleJoe Camera Optionally the image is averaged over several frames. Bias correction is applied if a bias frame is set. Parameters ---------- nFrames : integer number of frames over which the returned image is averaged _checkZero : bool stop reading if first image is zero Returns ------- out : ndarray
def laospy.camera.LittleJoeCamera.get_image | ( | self, | |
nFrames = 1 , |
|||
_checkZero = False , |
|||
_async = None |
|||
) |
Returns an image from the LittleJoe Camera Optionally the image is averaged over several frames. Bias correction is applied if a bias frame is set. Parameters ---------- nFrames : integer number of frames over which the returned image is averaged _checkZero : bool stop reading if first image is zero Returns ------- out : ndarray
def laospy.camera.LittleJoeCamera.get_program | ( | self | ) |
def laospy.camera.LittleJoeCamera.get_program | ( | self | ) |
def laospy.camera.LittleJoeCamera.readEndless | ( | self | ) |
def laospy.camera.LittleJoeCamera.readEndless | ( | self | ) |
def laospy.camera.LittleJoeCamera.set_attenuation | ( | self, | |
attenuation | |||
) |
Sets the attenuation value Parameters ---------- attenuation: integer attenuation value [0..3]
def laospy.camera.LittleJoeCamera.set_attenuation | ( | self, | |
attenuation | |||
) |
Sets the attenuation value Parameters ---------- attenuation: integer attenuation value [0..3]
def laospy.camera.LittleJoeCamera.set_bias_frame | ( | self, | |
frame | |||
) |
Sets the bias frame Note: set frame to "None" to remove existing frame Parameters ---------- frame : ndarray or None array with bias values
def laospy.camera.LittleJoeCamera.set_bias_frame | ( | self, | |
frame | |||
) |
Sets the bias frame Note: set frame to "None" to remove existing frame Parameters ---------- frame : ndarray or None array with bias values
def laospy.camera.LittleJoeCamera.set_program | ( | self, | |
program | |||
) |
Sets a new program Parameters ---------- program: integer program number [0..7]
def laospy.camera.LittleJoeCamera.set_program | ( | self, | |
program | |||
) |
Sets a new program Parameters ---------- program: integer program number [0..7]
def laospy.camera.LittleJoeCamera.state | ( | self | ) |
def laospy.camera.LittleJoeCamera.state | ( | self | ) |
def laospy.camera.LittleJoeCamera.stop | ( | self | ) |
def laospy.camera.LittleJoeCamera.stop | ( | self | ) |
|
static |
laospy.camera.LittleJoeCamera.channelIndex |
laospy.camera.LittleJoeCamera.ctrl |
|
static |
laospy.camera.LittleJoeCamera.nChanCols |
|
static |
laospy.camera.LittleJoeCamera.nChannels |
|
static |
laospy.camera.LittleJoeCamera.nChanRows |
|
static |