----- file created by makedoc on: Tue Mar  3 17:24:53 2009

----- Documentation for /scisoft/xop2.3/extensions/shadowvui/src/lib/chparm.pro -----
 NAME:
	CHPARM

 PURPOSE:
	Change the value of a SHADOW namelist file

 CATEGORY:
	SHADOW 

 CALLING SEQUENCE:
	chparm,'infile','variable_to_change',new_val

 INPUTS:
	infile: The shadow namelist file: i.e. 'start.00'
	variable_to_change: The variable name (i.e. 'fgrid')
	new_val: The variable new value (i.e. 1)

 OPTIONAL INPUTS:
	
 KEYWORD PARAMETERS:
	error:	the error flag
 OUTPUTS:
	mv the input file to a new one with .OLD extension
	Creates a new file with the same name and the new variable values.
 OPTIONAL OUTPUTS:
 COMMON BLOCKS:

 SIDE EFFECTS:
	Unknown. Bugs: It does not work with variable names that are arrays
 RESTRICTIONS:

 PROCEDURE:
	Play with string managing functions..., uses strep function
	of R. Sterner (Johns Hopkins University)

 EXAMPLE:
	chparm,'start.00','fgrid',3

 MODIFICATION HISTORY:
 	Written by:	M. Sanchez del Rio, ESRF, 95-03-21
	00/13/03: srio@esrf.fr rewritten using read/write_gfile.

