CaltechOpticalObservatories / camera-interface

Detector controller interface server supporting Archon and ARC (aka "Leach") controllers.
7 stars 1 forks source link

Implement RXR handling for Archon interface #31

Open scizen9 opened 1 month ago

scizen9 commented 1 month ago

Handle the Read-reset-read mode implemented in the cryoscope ACF file. Write out the file with the Read and reset matched pair. This will involve slicing the image to separate the Read and Reset parts and then stashing the Read part until the next image is read and slicing the corresponding Reset part to pair with the previous read. Write the paired images out as a single FITS file.

astronomerdave commented 1 month ago

This is already done for nirc2. The current branch in use is the commit e06df1b of the version.W branch. This feature would ideally be generalized, since all IR detectors use this, which was the goal after nirc2 was delivered.

That said, the nirc2 branch introduced an instability that causes a segfault in the cfitsio library when writing > 500 images with a cadence of something like 100Hz, so some thread is probably getting stepped on.