Purpose
Inserts the specified grating and then sets to the
requested wavelength.
Usage
grating [-mswave] graname [wavelen]
Arguments
mswave
a slitmask instead of a longslit
graname
wavelen
the wavelength is assumed to be a LONGSLIT wavelength.
Note that if the mirror is being requested,
no wavelength is specified. The script will
automatically set to the imaging angle.
Restrictions
None
Exit values
0 = normal completion
1 = wrong number of arguments
2 = move already in progress
Example
1) Select the 300/5000 grating with longslit central wavelength 5678A
grating 300/5000 5678
2) Select the 300/5000 grating with central wavelength 5678A
for a slitmask)
grating -mswave 300/5000 5678
3) Select the mirror and set to the nominal imaging position
grating mirror