![Dectris MYTHEN Interface Manual Download Page 22](http://html1.mh-extra.com/html/dectris/mythen/mythen_interface-manual_2462219022.webp)
Socket Interface Specification. MYTHEN Detector System. Version: 3.0.0, Document Version: 2
22/34
7.1.4. Data correction
Table 4 Data correction commands.
Synopsis
Argument
Description
Return
Type
Return Size
-badchannelinterpolation
˂b˃
0: Disable
1: Enable
Turns on or off the interpolation routine for bad channels.
When enabled, the number of counts for a bad channel is
set to the average number of counts of the next lower and
the next upper working channels. If there is no next lower
(upper) working channel, the number of counts of the next
upper (lower) working channel is used. When disabled the
number of counts for a bad channel is set to -2.
-flatfieldcorrection
˂b˃
0: Disable
1: Enable
Enables or disables the flatfield correction. After
initialization the flatfield correction is enabled.
-get
badchannelinterpolation
Returns whether the bad channel interpolation is enabled
(1) or not (0).
int
1
-get cutoff
Returns the maximal count value before flatfield correction. int
1
-get flatfield
Returns the currently loaded flatfield calibration of all
modules.
int
N
MOD
*1280
-get flatfieldcorrection
Returns whether the flatfield correction is enabled (1) or
not (0).
int
1
-get ratecorrection
Returns whether the rate correction is enabled (1) or not
(0).
int
1
-get tau
Returns the dead time constant for all active modules in
units of ns.
float
N
MOD
*
-ratecorrection
˂b˃
0: Disable
1: Enable
Enables or disables the rate correction. After initialization
the rate correction is disabled.
-tau
˂f˃
f ˃ 0 or f =
-1.0
in units of ns
Sets the dead time constant (used by the rate correction)
for the selected modules. If the argument is equal to -1.0
the system uses predefined values appropriate for the
loaded settings.