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

correcting for consitency with current function FT_remove_zernike_curvatures...

parent d673cfab
No related branches found
No related tags found
No related merge requests found
...@@ -86,8 +86,13 @@ function [map] = FT_read_zygo_map(filename,filetype) ...@@ -86,8 +86,13 @@ function [map] = FT_read_zygo_map(filename,filetype)
lambda=M(3); lambda=M(3);
O=M(5); O=M(5);
if M(7)~=0
xstep = M(7); xstep = M(7);
ystep = M(7); ystep = M(7);
else
xstep = 1;
ystep = 1;
end
[M,count]=fscanf(FID,'%g'); [M,count]=fscanf(FID,'%g');
tmp=fgets(FID); tmp=fgets(FID);
......
...@@ -26,8 +26,7 @@ ...@@ -26,8 +26,7 @@
% %
% %
% Rc_out: radius of curvature of fitted and removed sphere [m] % Rc_out: radius of curvature of fitted and removed sphere [m]
% delta_x0, delta_y0: difference between old map center and centre of [data points] % zoffset: offset of map surface heights [nm]
% curvature of fitted sphere
% map_out: the surface map with the curvature removed % map_out: the surface map with the curvature removed
% %
% Part of the Simtools package, http://www.gwoptics.org/simtools % Part of the Simtools package, http://www.gwoptics.org/simtools
...@@ -38,7 +37,7 @@ ...@@ -38,7 +37,7 @@
% Description: fits a curvature to a mirror map and removes it % Description: fits a curvature to a mirror map and removes it
% Keywords: mirror, map, curvature, fit, remove % Keywords: mirror, map, curvature, fit, remove
function [map_out,Rc_out,delta_x0,delta_y0]=FT_remove_curvature_from_mirror_map(map,Rc_in,w,display) function [map_out,Rc_out,zoffset]=FT_remove_curvature_from_mirror_map(map,Rc_in,w,display)
baseid='remove_curvature_from_mirror_map'; baseid='remove_curvature_from_mirror_map';
......
...@@ -19,16 +19,17 @@ ...@@ -19,16 +19,17 @@
% curved enter Rc_in=0. % curved enter Rc_in=0.
% Can enter strings to specify removal of astigmatism or residual % Can enter strings to specify removal of astigmatism or residual
% curvature. These use a convolution with Zernike polynomials. % curvature. These use a convolution with Zernike polynomials.
% 'all': remove curvature and astigmatism % N.B. the convolution does not use a gaussian weighting.
% 'astigmatism': just remove astigmatism % 'all': remove curvature and astigmatism (Z20 and Z22 terms)
% 'residual': just remove curvatue % 'astigmatism': just remove astigmatism (Z22 terms)
% 'constant': just remove curvatue (Z20 terms)
% %
% w: beam radius on mirror [m] for use in the weighting function used in % w: beam radius on mirror [m] for use in the weighting function used in
% the tilt and curvature removal functions. Value can be set % the tilt and curvature removal functions. Value can be set
% manually or it can take the set values for a particular type of % manually or it can take the set values for a particular type of
% mirror. % mirror.
% Type of mirror: End mirror -> w='end' = 6.2 cm (AdLIGO) % Type of mirror: End mirror -> w='end' = 6.2 cm (aLIGO)
% Input mirror -> w='input' = 5.3 cm (AdLIGO) % Input mirror -> w='input' = 5.3 cm (aLIGO)
% %
% map: map structure, the data holding the surface maps after removal of % map: map structure, the data holding the surface maps after removal of
% curvature, piston and offset % curvature, piston and offset
...@@ -76,10 +77,10 @@ function [map_out,x_tilt,y_tilt,Rc_out,offset] = FT_convert_ligo_map_for_finesse ...@@ -76,10 +77,10 @@ function [map_out,x_tilt,y_tilt,Rc_out,offset] = FT_convert_ligo_map_for_finesse
disp(' --- removing curvature ...'); disp(' --- removing curvature ...');
% remove curvature % remove curvature
if (Rc_in~=0) if (Rc_in~=0)
if (strcmp(Rc_in,'all') || strcmp(Rc_in,'residual') || strcmp(Rc_in,'astigmatism')) if (strcmp(Rc_in,'all') || strcmp(Rc_in,'constant') || strcmp(Rc_in,'astigmatism'))
[map2,Rc_out]=FT_remove_zernike_curvatures_from_map(map,Rc_in); [map2,A2,Rc_out]=FT_remove_zernike_curvatures_from_map(map,Rc_in);
else else
[map2,Rc_out, deltax, deltay]=FT_remove_curvature_from_mirror_map(map,Rc_in,w, display_style); [map2,Rc_out]=FT_remove_curvature_from_mirror_map(map,Rc_in,w, display_style);
end end
else else
map2=map; map2=map;
......
...@@ -25,7 +25,7 @@ filetype=2; ...@@ -25,7 +25,7 @@ filetype=2;
filename=FT_check_for_gzip(filename); filename=FT_check_for_gzip(filename);
% Read in zygo map file % Read in zygo map file
map=FT_read_zygo_map(filename, filetype); map=FT_read_zygo_map(filename, filetype)
% Plot the resulting mirror map % Plot the resulting mirror map
FT_plot_mirror_map(map,0); FT_plot_mirror_map(map,0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment