Skip to content
Snippets Groups Projects
Commit 12df7876 authored by Charlotte Bond's avatar Charlotte Bond
Browse files

conforming functions

parent 600af99c
Branches
No related tags found
No related merge requests found
......@@ -114,8 +114,7 @@ function [map_out] = FT_prepare_phase_map_for_finesse(map,offset,w)
disp(sprintf(' --- removing tilt of A11 = %g [nm] ...',sqrt(A1(1)^2+A1(2)^2)))
disp(sprintf(' (xbeta = %g [rad], ybeta = %g [rad])',xbeta,ybeta))
% Offset map
if offset(1)~=0 || offset(2)~=0
if length(offset)>1
% Add offset to mirror centre
map_out.x0 = map_out.x0+offset(1)*1e-3/map_out.xstep;
map_out.y0 = map_out.y0+offset(2)*1e-3/map_out.ystep;
......@@ -167,7 +166,7 @@ function []=write_results(FID,map,A0,A1,A2,Rc,xbeta,ybeta,offset);
fprintf(FID,'(xbeta = %2.2g urad, ybeta = %2.2g urad)\n',xbeta*1e6,ybeta*1e6);
fprintf(FID,'Curvature (Z20): %3.1f nm\n',A2);
fprintf(FID,'(Rc = %3.1f m)\n',Rc(1));
if offset(1)~=0 || offset(2)~=0
if length(offset)>1
fprintf(FID,'x0 offset: %3.2f mm\n',offset(1));
fprintf(FID,'y0 offset: %3.2f mm\n',offset(2));
end
......
......@@ -61,7 +61,7 @@ function [map_out,A,Rc]=FT_remove_zernike_curvatures_from_map(map,curvature)
A(i) = FT_get_zernike_coefficient(zc,n,m);
% Remove polynomial
map_out=FT_remove_zernike_polynomial_from_map(map_out,n,m,A);
map_out=FT_remove_zernike_polynomial_from_map(map_out,n,m,A(i));
end
......
......@@ -21,7 +21,7 @@ function [Z] = FT_1D_zernike_polynomial(n,m,option,points,R)
zdata = FT_zernike_polynomial_for_grid(points,points,(points+1)/2,(points+1)/2,R,R,n,m);
Z = FT_select_1D_data(zdata,option,(points+1)/2);
Z = FT_select_1D_data(zdata,option,round((points+1)/2));
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment