focus command¶
The focus command is usually executed in the AzCamConsole “blue” window.
Usage:
focus.command(parameters…) where the available command methods are listed below.
Example:
focus.run()
Notes:
Parameters (listed at the end of the documentation below) may be changed from the command line as: focus.number_exposures=7.
-
class
Focus
¶ Bases:
object
Focus class for focusing a camera.
Either the telescope or instrument may be moved for focus adjustment. May be used as a server or client script. The focus sequence performed is: — expose — move focus — shift detector (2x last time) — <repeat above steps> — readout — return to starting focus position — save image
-
abort
()¶ Abort focus exposure.
-
detector_shift
= None¶ Number of rows to shift detector for each focus step
-
exposure_time
= None¶ exposure time
-
focus_delay
()¶ Delays until focus stops moving.
Delay may be set to appropriate value for each focus mechanism.
-
focus_position
= None¶ current focus position
-
focus_step
= None¶ Number of focus steps between each exposure in a frame
-
number_exposures
= None¶ Number of exposures in focus sequence
-
reset
()¶ Reset focus object to default values.
-
run
(exposure_time='prompt', number_exposures='prompt', focus_step='prompt', detector_shift='prompt')¶ Execute the focus script. Parameters can be “default”, “prompt”, or a value. Default values are used in focus.set_pars() was previously called. :param number_exposures: Number of exposures in focus sequence. :param focus_steps: Number of focus steps between each exposure in a frame. :param detector_shift: Number of rows to shift detector for each focus step. :param exposuretime: Exposure time i seconds. :return: None
-
set_pars
(exposure_time, number_exposures=7, focus_step=30, detector_shift=10)¶ Set focus related parameters.
-