The VisAO Camera
focusops Namespace Reference

Functions

def calibration
 
def focus_old
 
def focus
 
def visao_focus
 
def filter2_focus
 

Detailed Description

   FocusOps

   The FocusOps python module contains several scripts related to the focus stage..

Function Documentation

def focusops.calibration (   p = 0)
   Script to calibrate the focus stage step-ratio.  Requires manual input of a micrometer measurement, in mm.

   Moves to the front or back of the travel range, whichever is closer when invoked.

Definition at line 15 of file focusops.py.

def focusops.focus_old (   start,
  end,
  stepsz,
  ims = 5,
  settle_delay = 1. 
)
Peform a focus measurement.

First take darks, saving 5*ims images with gimbal in dark position.  The moves from position start to end, in steps of size stepsz.  At each position, the script pauses for settle_delay to allow vibrations to dissipate, and then take ims images.  Images are saved in a sub-directory with the start time (standard VisAO filename) in the name. The visao_focuscurve.pro idl procedure is called to analyze the data, and the preset is updated.

start        = the starting focus position (microns)
end          = the ending focus position (microns)
stepsz       = size of steps to take between focus positions (microns)
ims          = number of images to save at each position
settle_delay = the time, in seconds, to pause after each move to settle vibrations

Definition at line 80 of file focusops.py.

def focusops.focus (   start,
  end,
  stepsz,
  ims = 5,
  settle_delay = 1.,
  ndarks = -1 
)
Peform a focus measurement.

First take darks, saving 5*ims images with gimbal in dark position.  The moves from position start to end, in steps of size stepsz.  At each position, the script pauses for settle_delay to allow vibrations to dissipate, and then take ims images.  Images are saved in a sub-directory with the start time (standard VisAO filename) in the name. The visao_focuscurve.pro idl procedure is called to analyze the data, and the preset is updated.

start        = the starting focus position (microns)
end          = the ending focus position (microns)
stepsz       = size of steps to take between focus positions (microns)
ims          = number of images to save at each position
settle_delay = the time, in seconds, to pause after each move to settle vibrations

Definition at line 251 of file focusops.py.

def focusops.filter2_focus (   filters = ["SDSS r'",
  SDSS,
  i,
  SDSS,
  z,
  Long,
  Pass,
  homefirst = 0,
  stepsz = 1000,
  ims = 5,
  settle_delay = 1. 
)
   Peform a focus measurement, in each of a sequence of filter wheel 2 positions.

   The filters are specified as a python list, i.e. ["SDSS r'", "SDSS i'", "SDSS z'"]

   If homefirst is true, the wheel is homed before beginning.
   
   In each filter, the focus script is executed.

Definition at line 382 of file focusops.py.