Dark Current#
The dark current signal can be added to each sub-exposure using the dark_current keyword
<channel> channel
<detector>
<dark_current> True </dark_current>
<detector>
</channel>
or disabled by setting the dark_current keyword to False.
By default, this Task used to add the dark current is AddConstantDarkCurrent,
which, as the name suggests, adds a constant flux to each pixel.
It can be set as
<channel> channel
<detector>
<dark_current> True </dark_current>
<dc_task> AddConstantDarkCurrent </dc_task>
<dc_mean unit="ct/s"> 5 </dc_mean>
<detector>
</channel>
Using the configuration reported in the example, the codes adds to each pixel \(5 \, ct/s \times t_{s, \,int}\) where \(t_{s, \,int}\) is the sub-exposure integration time.
It is always possible to replace this function with one using a dark current map, to add a different dark current to each pixel which can also evolve in time.
A custom task can be used to replace AddConstantDarkCurrent (see Custom Tasks).
- An implementation of dark current map has been prepared assuming numpy array (see numpy documentation)
as input (
AddDarkCurrentMapNumpy). It can be used as
<channel> channel
<detector>
<dark_current> True </dark_current>
<dc_task> AddDarkCurrentMapNumpy </dc_task>
<dc_map_filename> dark_map.npy </dc_map_filename>
<detector>
</channel>
Note
Other custom realizations of this Task can be developed by the user (see Custom Tasks).