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

rows are reversed in FITS output file #20

Open garlick opened 7 years ago

garlick commented 7 years ago

As noted in #11, we seem to be transposing images in Y. I thought it might be the parallel port driver but here is a focus image of the same test target from an ST-8XME on USB. ds9

garlick commented 6 years ago

Need to use CCDOps to produce a FITS image and see if it's the same.

The CE_READOUT_LINE function reads out each row in a pre-defined order (it does not accept a row parameter - one just calls it repeatedly and it advances automatically)

Then we call the cfitsio function fits_write_img()

http://space.mit.edu/cxc/software/slang/modules/cfitsio/doc/html/cfitsio-2.html#fits_write_img

It would appear from the image that we should be reversing the rows in memory before passing it to fits_write_img() or maybe mapping them to the internal buffer in reverse during readout?