Scilab Function
Last update : 23/8/2006

ideal_ttm_transform - transforms a wavefront by an ideal tip-tilt mirror.

Calling Sequence

[dwf_out]=ideal_ttm_transform(dwf_in, ttm)

Parameters

Description

transforms a wavefront by an ideal tip-tilt mirror .To perform the transformation on a wavefront this function uses the mirror angular velocity to interpolate to the timestamp of the wavefront. The transformation is performed by applying the aperture transformation, and then adjusting the wavefront three_frame to account for the reflection. Supplying a wavefront with a timestamp that preceeds the internal one is an error.

Examples

	number=200;
	wavelength=1e-6;
	pixscl=1;timestamp=1;
	
	tf=three_frame();
	tp=three_point(0,0,0);
	tv_reflect=three_vector(0,0,1);
	tf=three_reflection(tf,tp,tv_reflect);
	dwfh=wavefront_header(wavelength,pixscl,number,number,tf);
	dwfh=set_dwfh_timestamp(dwfh,timestamp);
	emt=emitter(0,0,0,1);dwf=pl_wave(dwfh,emt);
	
	asec2rad=3.1416/180.0/3600.0;
	ap=annul_ap(200,80);angular_velocity=100;
	ttm=ideal_ttm(ap,angular_velocity);
	commands_vector=three_vector(asec2rad,0,1);
	ttm=ttm_update(ttm,commands_vector,0.01);	
	
	dwf=ideal_ttm_transform(dwf,ttm);
 

Author

Chen jingyuan, Gan guangyong (IAPCM, Beijing,China.)

See Also

ideal_ttm ,   set_ttm_timestamp ,   set_ttm_commands_vector ,   ttm_update ,   tt_mirror ,