The VisAO Camera
visao.VisAO Class Reference

Public Member Functions

def __init__ (self)
 
def connect (self)
 
def take_control (self)
 
def giveup_control (self)
 
def post_acq (self)
 
def setup (self, filter2, filter3)
 
def take_darks (self, ndarks)
 
def take_flats (self, nflt)
 
def take_science (self, nsci)
 
def take_linearity (self, nims, etimes)
 
def science
 
def observation
 
def dither
 
def dither_phot
 
def flats_old
 
def telemetry_cal
 
def take_ron (self, nf2500, nf250, nf80)
 

Public Attributes

 focus
 
 ccd47
 
 gimbal
 
 shutter
 
 fw2
 
 fw3
 
 bcu39
 
 fw39
 

Detailed Description

   Class to control the VisAO Camera.

Definition at line 31 of file visao.py.

Member Function Documentation

def visao.VisAO.take_linearity (   self,
  nims,
  etimes 
)
   Take a linearity curve.  
 
   Takes darks and science frames at a sequence of exposure times.
 
   nims     =   number of darks and science frames to take at each exposure time
   etimes   = exposure times, e.g. [.3, .5, .75, 1.0, 2.0, 3.0], in secs

Definition at line 165 of file visao.py.

References visao.VisAO.take_darks(), and visao.VisAO.take_science().

def visao.VisAO.science (   self,
  totexp,
  exptime,
  masterdarks,
  darkint,
  ndark,
  dirname = "science",
  appendts = 1,
  subroutine = 0 
)
   Take a science data set  
 
   Takes science images until a specified total exposure time is reached.  Takes darks at intervals.
   Other than exposure time, assumes camera is set up as you prefer.
 
   totexp      =   total science exposure time, in seconds
   exptime     =   exposure time of individual images, in seconds
   masterdarks = number of darks to take at beginning of script
   darkint     =   interval between dark sets, in seconds
   ndark       =   number of dark frames to take 
   dirname     =   base name of directory to store images in, default is "science"
   appendts    =   append the standard VisAO timestamp, default is 1 (yes).  set to 0 for no. 

Definition at line 196 of file visao.py.

References visao.VisAO.connect(), visao.VisAO.giveup_control(), visao.VisAO.science(), visao.VisAO.take_control(), visao.VisAO.take_darks(), and visao.VisAO.take_science().

Referenced by visao.VisAO.science().

def visao.VisAO.dither (   self,
  dx,
  dy,
  ims,
  ndarks,
  subdir = "",
  appendts = 1,
  giveup = 1 
)
   Take data in a dither pattern.
   
   Takes darks at the beginning, then takes science images at each gimbal position specified in dx,dy.
   
   dx = gimbal x positions (mm)
   dy = gimbal y positions (mm)
   ims = number of science images to take at each position.
   ndarks = number of drks to take at the beginning
   subdir = optional subdirectory.  if not specified, then dither_[timestamp] will be used
   appendts = append the standard VisAO timestamp, default is 1 (yes).  set to 0 for no. 
   giveup = if set 1 one, then control will be taken and given up at the end of the dither

Definition at line 474 of file visao.py.

References visao.VisAO.giveup_control(), visao.VisAO.take_control(), visao.VisAO.take_darks(), and visao.VisAO.take_science().

Referenced by visao.VisAO.dither_phot().

def visao.VisAO.dither_phot (   self,
  filters,
  nims,
  ndarks,
  dx,
  dy,
  subdir = "",
  appendts = 1 
)
   Take data in a dither pattern in multiple filters.
   
   Takes darks at the beginning of each filter, then takes science images at each gimbal position specified in dx,dy.
   Then changes filters and repeats.  Focus stage is moved to appropriate preset after each filter change.
    
   filters = list of filters to cycle through
   nims = the number of science images to take in each dither position per filter
   ndarks = the number of initial darks to take
   dx = gimbal x offsets from initial position, in mm
   dy = gimbal y offsets from initial position, in mm
   subdir = optional subdirectory.  if not specified, then dither_[timestamp] will be used
   #appendts = append the standard VisAO timestamp, default is 1 (yes).  set to 0 for no. 

Definition at line 596 of file visao.py.

References visao.VisAO.connect(), visao.VisAO.dither(), visao.VisAO.giveup_control(), visao.VisAO.take_control(), visao.VisAO.take_darks(), and visao.VisAO.take_flats().

def visao.VisAO.telemetry_cal (   self,
  tottime,
  fast_darks,
  slow_darks,
  pset = 0 
)
   Take a telemetry data set with simultaneous focal plane data.  Takes fast frames and slow frames
   
   tottime = total time of the measurement in seconds
   fast_darks = number of fast darks to take
   slow_darks = number of slow dards to take
   
   pset = the program set.  pset=0 means 1024 and 64, pset=1 means 512 and 32

Definition at line 753 of file visao.py.

References visao.VisAO.take_darks(), and visao.VisAO.take_science().


The documentation for this class was generated from the following file: