[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A first look at DS24



Tom Droege <tdroege2@earthlink.net> wrote ..
> 
> >         Can we get a BZERO = 32768. added to the FITS headers?  It would
> > make life much easier
> >when using CFITSIO.
> 

I vote for this!  I've done just that on the download program I'm currently using (downfits child).  I can re-release downfits with this in place if desired.  The current release of downfits won't allow you (Tom) to specify BZERO within the constant or plate files, so that won't work.

Ted, in the mean time, what I've done in my CFITSIO programs which work on TOM images, I add the following right after I open the image:

int type;
fits_get_img_type( ftpr, &type, &status );
if ( type == SHORT_IMG )
   {
   fits_set_bscale( ftpr, 1, 32768, &status );
   }

Cheers,
Rob