From a STXM 5 data file, we get a 3-dimensional data array, which holds an image for each detector which was recorded in the scan. This data array can be calibrated to khz (see Sec. 13.6). But sometimes (in particular for scans done with the segmented silicon detector) we want to display linear combinations of these images. stxm5_displays.pro returns the coefficients for a number of predefined linear combinations which might be of interest in STXM 5. The calling sequence is
IDL> stxm5_displays, disp_names, $
linear_combinations, $
n_data=n_data, $
long_names=long_names, $
list_only=list_only, $
i_counter=i_counter, $
i_clock=i_clock, $
i_first_sidet_channel=i_first_sidet_channel, $
n_sidet_channels=n_sidet_channels, $
no_output=no_output, $
help=help
To see a list of the names of all predefined combinations with
their short and long names, call
IDL> stxm5_displays, /list_only
disp_name long_name
--------------------------------------------------
Counter Proportional Counter
Clock Clock Signal
Segment 1 Silicon Detector Segment 1 (inner lower)
Segment 2 Silicon Detector Segment 2 (inner middle)
Segment 3 Silicon Detector Segment 3 (inner upper)
Segment 4 Silicon Detector Segment 4 (lower left)
Segment 5 Silicon Detector Segment 5 (upper left)
Segment 6 Silicon Detector Segment 6 (upper right)
Segment 7 Silicon Detector Segment 7 (lower right)
Segment 8 Silicon Detector Segment 8 (outer dark field ring)
Sum Inner Ring Sum Inner Ring (Segments 1 through 3)
Sum Quadrant Ring Sum Quadrant Ring (Segments 4 through 7)
BF matched Bright Field matched (Segments 1 through 7)
BF total Bright Field total (Segments 1 through 8)
DPC horizontal Differential Phase Contrast horizontal (Segments 4+5-6-7)
DPC vertical Differential Phase Contrast vertical (Segments 5+6-4-7)
DPC diagonal up Differential Phase Contrast diagonal up (Segments 4-6)
DPC diagonal down Differential Phase Contrast diagonal down (Segments 5-7)
DPC 1-3 Differential Phase Contrast Segments 1-3
To really return the coefficients, call the procedure as told
above, where the parameters and keywords have the following
meaning:
Knowing these is absolutely crucial to determine the correct linear combinations. If they are not specified, the procedure will make some guesses from the number of recorded channels. To be on the safe side though, you should specify them.
The returned array linear_combinations has 2 dimensions.
Each "line" in the array corresponds to one of the predefined
combinations and has as many elements as the number of channels
which was specified. Each element of one "line" holds the
coefficient for that channel, which is usually
,
or
.
For instance, if we have a data array with 9 recorded channels,
where the first 8 are silicon detector segments 1 through 8, and
the 9th channel is the clock, the "line" holding the linear
combination "DPC horizontal" (calculated as Segments
)
would be [0, 0, 0, 1, 1, -1, -1, 0, 0].
For scans where the proportional counter, the clock, or the silicon detector was not recorded, the coefficients for the corresponding linear combinations will all be zero.
Holger Fleckenstein 2008-07-08