Scilab Function
Last update : 23/8/2006

reconstructor_fits - write reconstructor into a FITS file.

Calling Sequence

[rec_out]=reconstructor_fits(rec_in, filename)

Parameters

Description

write reconstructor into a FITS file.

Examples

	nsubaps=16;
	areal_threshold=0.5;
	eigenvalue_threshold=1e-6;
	
	lenslet_x_axes=16;lenslet_y_axes=16;
	focal_length = .012246;lenslet_pitch = .000252;
	final_wf_pix_per_lenslet = 32;final_wf_pix_per_xform = 32;
	LA=lnslt_array(lenslet_x_axes,lenslet_y_axes,focal_length,lenslet_pitch,final_wf_pix_per_lenslet,final_wf_pix_per_xform);

	D = 16*lenslet_pitch;
	AP=circle(D);
	
	pitch = D/nsubaps;
	actuator_velocity = 100;

	dm_AP=circle(2*D);
	act_dim=nsubaps+1;	
	act=actuator_array(act_dim,act_dim,pitch,actuator_velocity);
	dm=ideal_dm(dm_AP,act);

	projection_modes=znk_mod(1);
	projection_modes=set_znk_cos_coef(projection_modes,1,1,1);
	projection_modes=set_znk_sin_coef(projection_modes,1,1,1);

	Reconstructor= reconstructor(AP,dm,LA,projection_modes,areal_threshold,eigenvalue_threshold);
	reconstructor_fits(Reconstructor,"reconstructor");
 

Author

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

See Also

reconstructor ,   zernike_residuals ,   zonal_residuals ,   reconstructor ,