worlickwerx / sbig-util

Linux utility for Santa Barbara Instrument Group cameras for astronomy
GNU General Public License v3.0
5 stars 2 forks source link

verify CWHITE, CBLACK, PEDESTAL and set DATAMAX #2

Open garlick opened 9 years ago

garlick commented 9 years ago

SBIG algorithm for auto-contrast was pulled in from the SDK app without testing.

Thus far, displaying images in ds9 requires interactive scale adjustment, e.g. to log at 99.5 percent.

Test these FITS header settings and make sure they are right and helping display.

Also: set the DATAMAX value. This is a mandatory value according to sbig document. I'm not sure how we calculate it. Maybe sdk app includes an example.

Data point: in image taken with dark subtraction and lens cap on: CWHITE was 74, CBLACK was 139. That seems wrong.

garlick commented 9 years ago

On DATAMAX, the SDK just hardwires it to 65535.

Based on info in the SBIG USB camera manual, it can be set based on camera type, readout mode, and ABG feature, at least for the cameras listed in that manual. Default to 65000 for all others.