SETDETECTOR

Sets the coherent or incoherent detector data for any pixel on a detector rectangle object.

Syntax:

SETDETECTOR surf, object, pixel, datatype, value
 

Discussion:

This keyword requires numeric expressions that specify the surface, object, pixel, and data type (all integers) and the new detector value. Surf is the surface number of the non-sequential group; use 1 when using non- sequential mode. Object is the object number of the detector. The object must be a detector rectangle. Pixel is a number between 1 and the number of pixels the object supports. Datatype should be 0 for incoherent intensity, 1 for incoherent intensity in angle space, 2 for coherent real part, 3 for coherent imaginary part, and 4 for coherent amplitude. For more information on the use and meaning of these values see " Detector Rectangle object ". The units for incoherent intensity are source units (see " Source Units "). The units for coherent amplitude are the square root of source units.

Example:

SETDETECTOR 1, 5, 12, 0, 1.0056
 

Related Functions:

NSDD

Next: