Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct units on shift_X & shift_Y for LGS #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OOPAO/ShackHartmann.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ def get_convolution_spot(self):
delta_dy[1,i] = coordinates_3D_ref[2,i]*(np.sqrt(3)*(4/self.telescope.D)**2)*y_subap[j_subap]

# resulting shift + conversion from radians to pixels in m
shift_X[i] = 206265*self.fov_pixel_arcsec*(delta_dx[0,i] + delta_dx[1,i])
shift_Y[i] = 206265*self.fov_pixel_arcsec*(delta_dy[0,i] + delta_dy[1,i])
shift_X[i] = (1/206265)*self.fov_pixel_arcsec*(delta_dx[0,i] + delta_dx[1,i])
shift_Y[i] = (1/206265)*self.fov_pixel_arcsec*(delta_dy[0,i] + delta_dy[1,i])


I_tmp = (self.telescope.src.Na_profile[1,:][i]/(self.telescope.src.Na_profile[0,:][i]**2))*np.exp(- ((alpha_x-shift_X[i])**2 + (alpha_y-shift_Y[i])**2)/(2*sigma_spot**2))
Expand Down