OPT_GRID - Simple difractive grating
OPT_TYPE should be 'grid' (hm good and vital argument), OPT_SPEC
should be a string matrix, see README_OPT for specification.
Necessary specification fields:
r1, dxdydx, linespmm,
glass should be name of the glass type, the other 1x3 array
Optional specification fields:
normal, e_slit,
example OPT_SPEC:
'r1 12 0 0'
'dxdydz 0 2 1'
'linespmm 600'
'normal cos(10*pi/180) sin(10*pi/180) 0'
Calling:
[opt1] = opt_grid(opt_type,opt_args)
See also OPT_APERTURE, OPT_SCREEN, OPT_LENS, OPT_PRISM, OPT_SLIT