API
 
Loading...
Searching...
No Matches
utils.AdcFitter Class Reference
Collaboration diagram for utils.AdcFitter:
Collaboration graph

Public Member Functions

 __init__ (self, wavelength=656E-9, bandwidth=100E-9, grating_angle=28, grating_freq=47)
 
 set_measurement (self, data)
 
 make_gaussian (self, mu_x, mu_y, sigma_x, sigma_y, orientation)
 
 satellite_spot (self, amplitude, mu_x, mu_y, sigma_x, sigma_y, orientation, background)
 
 cost (self, theta)
 
 fit (self, theta_est)
 
 estimate_centroid (self)
 
 estimate_angle (self)
 
 find_speckle (self, image, speckle_number)
 
 set_psf (self, psf)
 
 find_speckle_angles2 (self)
 
 speckle_pairs (self, speckle_angles)
 
 calculate_command (self, speckle_angles)
 
 clear (self)
 
 set_control_mtx (self, matrix)
 
 window_field (self, data, center, width, height)
 
 crop_image (self, image, extent=400, mask_diam=60)
 
 crop_cube (self, data_cube, extent=400, mask_diam=60)
 
 filter_image (self, img, low_freq=0.01, high_freq=1)
 

Public Attributes

 wavelength
 
 bandwidth
 
 grating_angle
 
 grating_freq
 
 normalized_wavelength
 
 normalized_bandwidth
 
 maxiter
 
 control_mtx
 
 current_speckle
 boundary condition for the aspect ratio
 
 data
 
 psf
 

Detailed Description

Definition at line 7 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

utils.AdcFitter.__init__ (   self,
  wavelength = 656E-9,
  bandwidth = 100E-9,
  grating_angle = 28,
  grating_freq = 47 
)

Definition at line 8 of file utils.py.

Member Function Documentation

◆ calculate_command()

utils.AdcFitter.calculate_command (   self,
  speckle_angles 
)

Definition at line 143 of file utils.py.

◆ clear()

utils.AdcFitter.clear (   self)

Definition at line 148 of file utils.py.

◆ cost()

utils.AdcFitter.cost (   self,
  theta 
)

Definition at line 37 of file utils.py.

Referenced by adcCtrl.AdcFitter.fit(), and utils.AdcFitter.fit().

◆ crop_cube()

utils.AdcFitter.crop_cube (   self,
  data_cube,
  extent = 400,
  mask_diam = 60 
)

Definition at line 184 of file utils.py.

◆ crop_image()

utils.AdcFitter.crop_image (   self,
  image,
  extent = 400,
  mask_diam = 60 
)

Definition at line 163 of file utils.py.

Referenced by utils.AdcFitter.crop_cube().

◆ estimate_angle()

utils.AdcFitter.estimate_angle (   self)

◆ estimate_centroid()

utils.AdcFitter.estimate_centroid (   self)

◆ filter_image()

utils.AdcFitter.filter_image (   self,
  img,
  low_freq = 0.01,
  high_freq = 1 
)

Definition at line 192 of file utils.py.

◆ find_speckle()

utils.AdcFitter.find_speckle (   self,
  image,
  speckle_number 
)
speckles are indexed from the top right going counter clockwise

Definition at line 84 of file utils.py.

Referenced by adcCtrl.AdcFitter.find_speckle_angles2(), and utils.AdcFitter.find_speckle_angles2().

◆ find_speckle_angles2()

utils.AdcFitter.find_speckle_angles2 (   self)

Definition at line 101 of file utils.py.

◆ fit()

utils.AdcFitter.fit (   self,
  theta_est 
)

◆ make_gaussian()

utils.AdcFitter.make_gaussian (   self,
  mu_x,
  mu_y,
  sigma_x,
  sigma_y,
  orientation 
)

Definition at line 23 of file utils.py.

Referenced by adcCtrl.AdcFitter.satellite_spot(), and utils.AdcFitter.satellite_spot().

◆ satellite_spot()

utils.AdcFitter.satellite_spot (   self,
  amplitude,
  mu_x,
  mu_y,
  sigma_x,
  sigma_y,
  orientation,
  background 
)

Definition at line 32 of file utils.py.

Referenced by adcCtrl.AdcFitter.cost(), and utils.AdcFitter.cost().

◆ set_control_mtx()

utils.AdcFitter.set_control_mtx (   self,
  matrix 
)

Definition at line 152 of file utils.py.

◆ set_measurement()

utils.AdcFitter.set_measurement (   self,
  data 
)

◆ set_psf()

utils.AdcFitter.set_psf (   self,
  psf 
)

Definition at line 98 of file utils.py.

◆ speckle_pairs()

utils.AdcFitter.speckle_pairs (   self,
  speckle_angles 
)

Definition at line 138 of file utils.py.

◆ window_field()

utils.AdcFitter.window_field (   self,
  data,
  center,
  width,
  height 
)

Definition at line 156 of file utils.py.

Referenced by adcCtrl.AdcFitter.crop_image(), and utils.AdcFitter.crop_image().

Member Data Documentation

◆ bandwidth

utils.AdcFitter.bandwidth

Definition at line 10 of file utils.py.

◆ control_mtx

◆ current_speckle

utils.AdcFitter.current_speckle

boundary condition for the aspect ratio

Definition at line 17 of file utils.py.

Referenced by adcCtrl.AdcFitter.cost(), utils.AdcFitter.cost(), adcCtrl.AdcFitter.find_speckle_angles2(), and utils.AdcFitter.find_speckle_angles2().

◆ data

◆ grating_angle

utils.AdcFitter.grating_angle

Definition at line 11 of file utils.py.

Referenced by adcCtrl.AdcFitter.find_speckle(), and utils.AdcFitter.find_speckle().

◆ grating_freq

utils.AdcFitter.grating_freq

Definition at line 12 of file utils.py.

Referenced by adcCtrl.AdcFitter.find_speckle(), and utils.AdcFitter.find_speckle().

◆ maxiter

utils.AdcFitter.maxiter

Definition at line 15 of file utils.py.

Referenced by adcCtrl.AdcFitter.fit(), and utils.AdcFitter.fit().

◆ normalized_bandwidth

utils.AdcFitter.normalized_bandwidth

Definition at line 14 of file utils.py.

◆ normalized_wavelength

utils.AdcFitter.normalized_wavelength

Definition at line 13 of file utils.py.

Referenced by adcCtrl.AdcFitter.find_speckle(), and utils.AdcFitter.find_speckle().

◆ psf

◆ wavelength

utils.AdcFitter.wavelength

Definition at line 9 of file utils.py.


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