----- file created by makedoc on: Tue Apr  1 15:29:55 2008
----- Documentation for /scisoft/xop2.3/extensions/shadowvui/src/lib/reflag.pro -----

 NAME:
	REFLAG 
 PURPOSE:
	an IDL implementation amd extension of the REFLAG and 
	SHADOWIT SHADOW's utilities
 CATEGORY:
	SHADOW's utilities.
 CALLING SEQUENCE:
	 shadow_out=reflag(shadow_in)
 INPUTS:
	shadow_in   IDL structure with SHADOW data
	shadow_out  IDL structure with the resulting SHADOW data after
		changing the flag
 OPTIONAL INPUTS:
 KEYWORD PARAMETERS:
       SLITCOL   = number of the column where flag has to be applied.
		When this keyword and the FILE one are selected, the
		new flag column is the one of shadow_in, otherwise
		it takes the one of file.
       SLITRANGE  = range of BAD VALUES for the SLITCOL considered,
		i.e., the points inside this interval are flagged negatively.
	COMPLEMENTARY = when this keyword is set, the bad values are
		the complementary of those in the SLITRANGE interval,
		i.e., bad rays are OUTSIDE the SLITRANGE
	FLAGVAL = value of the flag to out in (default=-1)
	FILE = shadow file or IDL-SHADOW structure where to apply the 
		SLITCOL and SLITRANGE keywords (If this keyword is omitted
		then use the same as shadow_in)
	_EXTRA = Other keywords are passed to READSH
	OUTPUTS:
	shadow_out: the ne IDL-SHADOW structure
 OPTIONAL OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
 	None.
 RESTRICTIONS:
	None.
 PROCEDURE:
	Similar to SHADOW's original.
 MODOFICATION HISTORY:
	M. Sanchez del Rio. ESRF. Grenoble August 1993
	94/07/06 MSR Changes to a function and solves a bug when using
		the FILE and SLITCOL options together.
	06/02/23 srio@esrf.fr rewritten a large part, added complementary 
		keyword. Added _Extra keyword. 
	07/10/18 srio@esrf.eu corrects doc (mismatch good<->bad)

