csxtools.fastccd.
correct_images
(images, dark=None, flat=None, gain=(1, 4, 8))[source]¶Subtract backgrond and gain correct images
This routine subtrtacts the backgrond and corrects the images for the multigain FastCCD ADC.
Parameters: |
|
---|---|
Returns: | Array of corrected images of shape (N, y, x) |
Return type: | array_like |
csxtools.fastccd.
photon_count
(data, thresh, mean_filter, std_filter, nsum=3, nan=False)[source]¶Do single photon counting on CCD image
This routine does single photon counting by cluster analysis. The image is searched for bright pixels within a threshold and then the energy deposited by each photon is calculated.
Parameters: |
|
---|---|
Returns: | Two arrays are returned. The first is an array of size (N, y, x) where the elements are the integrated energy calculated for each photon hit. The second array is the standard deviation for the integrated intensity on each photon hit. |
Return type: |