HiPERCAM / hipercam

Python package for handling HiPERCAM data
4 stars 4 forks source link

Fixes for changes to NGC software that introduce sampling #14

Closed StuartLittlefair closed 6 years ago

StuartLittlefair commented 6 years ago

do not merge yet - needs testing.

These are some of the changes that are needed to accommodate for the introduction of changes in the NGC software. As background these changes were made to make fast readout mode work. This meant the data order from the NGC controller changed, with the data coming in bunches of 4, e.g

CCD1[a,b,c,d][0]
CCD1[a,b,c,d][1]
CCD1[a,b,c,d][2]
CCD1[a,b,c,d][3]
CCD2[a,b,c,d][0]
CCD2[a,b,c,d][1]
CCD2[a,b,c,d][2]
CCD2[a,b,c,d][3]
.....etc...
CCD5[a,b,c,d][2]
CCD5[a,b,c,d][3]

Slow readout has been implemented as fast readout with 4 samples per pixel. Adding multiple samples to the data changes the pixel order yet again, but Gao averages the samples in his acquisition task. The net result of these changes is that the data order in slow readout is unchanged from before.

The number of samples per pixel is written to the headers in ESO DET NSAMP.

There's also two minor tweaks that have been made to fix the calculation of _framesize for runs that are in progress, and one to accommodate what happens when GPS hardware is not attached.