Scilab Function
Last update : 18/8/2006

file_ps - writes intensity into PostScript file.

Calling Sequence

[field_out]=file_ps(field_in,fnam[,time[,gamma[,imax]]])

Parameters

Description

file_ps writes the intensity distribution (density plot) of a field (field_in) into a postscript file. The program accepts other four arguments are: the filename (fnam), the grid dimension (imax) and the value of contrast correction constant (gamma) and the timestamp (time). The imax and gamma are optional, defaults are 128x128 and gamma=2 (it increases slightly the brightness in low-intensity regions, showing the distribution in a more natural way). The postscript output of 128x128 occupies approximately 32K on disk. When pow(2,n) sampling is used in calculations, the sampling of postscript graph must be also pow(2,n), i.e. 32,64,128,256,512....otherwise the filter does not report a wrong sampling, instead it adjusts automathically the sampling to nearest sensible value. Output file fnam.ps can be processed with any postscript devise.

Examples

	F1=begin(0.01,1e-6);
	F2=gauss(F1,0.004);
	
	file_ps(F2,"file1");	
	file_ps(F2,"file2",1);	
	file_ps(F2,"file3",-1,3);	
	file_ps(F2,"file4",-1,3,0);	
	file_ps(F2,"file5",-1,3,64);	
 

Author

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

See Also

dwf_fits ,   file_pgm ,   file_int ,   file_pha ,   cros_out ,