----- file created by makedoc on: Fri May 31 15:22:22 2013
----- Documentation for /scisoft/xop2.3/extensions/shadowvui/src/lib/putrays.pro -----

 NAME:
	PUTRAYS
 PURPOSE:
       Similar to RWNAME in shadow library.
       Writes fortran77 unformatted shadow image file
       and stores an idl/shadow structure.
 CATEGORY:
	SHADOW
 CALLING SEQUENCE:
	PUTRAYS,a,file
 INPUTS:
	a: an idl/shadow structure or shadow file.
	file: a file where structure has to be written.
 OUTPUTS:
	a file on disk.
 COMMON BLOCKS:
	None.
 SIDE EFFECTS:
	None.
 RESTRICTIONS:
	Under Windows the Shadow file written with this application may
	not be read from Fortran code (apparantly it can be read from 
	SHADOW).
	It is slow (to be improved).
 PROCEDURE:
	Straightforward.
 EXAMPLE:
	This examples reads a shadow file and change the flag
	a=readsh('begin.dat')	; reads an existing file
	a.ray(9,*) = -2		; puts flag column equal to -2
	putrays,a,'begin2.dat'  ; writes the structure in a file
 MODIFICATION HISTORY:
	31-May-96 by Manuel Sanchez del Rio (srio@esrf.fr)
	97-11-12 srio@esrf.fr adapts for W95
	2011-03-15 srio@esrf.eu fixes a bug for reading files with
                  Shadow3 (notified by Xianbo)

