----- file created by makedoc on: Tue Mar  3 17:24:53 2009
----- Documentation for /scisoft/xop2.3/extensions/shadowvui/src/lib/getphase.pro -----

 NAME:
	GETPHASE
 PURPOSE:
	to get and correct the phase of a SHADOW-IDL structure
 CATEGORY:
	SHADOW's utilities.
 CALLING SEQUENCE:

	phase = readsh('shadow_file_name')

	with that, IDL stores in an array named phase (or whatever you
	want) the s and p phases of the shadow_file_name 
 INPUTS:
	SHADOW_FILE_NAME name of the input files: shtmp.par and shtmp.ray
 OUTPUTS:
	PHASE an array (2,npoints) with the s and p phases
 COMMON BLOCKS:
	None.
 SIDE EFFECTS:
	none
 RESTRICTIONS:
	None.
 PROCEDURE:
       This program extracts the phases from the SHADOW file and
       corrects it in function of the direction of the electric
       vector. When the electric vector is pointing back, a pi angle
       is added to the phase.
 MODIFICATION HISTORY:
	M. Sanchez del Rio. ESRF. Grenoble, 1 Oct 1992

