[AstroPy] pyfits query: how to include a bit mask?
Christopher Hanley
chanley at stsci.edu
Fri Oct 7 15:09:16 EDT 2005
Russell,
My suggestion depends upon the type of FITS file you are creating. If
you are dealing with FITS images, I would just add another extension to
your FITS file containing the data quality flag values you wish to use.
If you are writing FITS tables you could just add another column with
the desired bit value.
Chris
--
Christopher Hanley
Senior Software Engineer
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21218
(410) 338-4338
Russell E Owen wrote:
> We're writing fits files with pyfits and would like to include a few bit
> masks (in particular "is saturated" and "ignore this pixel"). We're a
> bit stumped on how to do it and would appreciate any advice.
>
> -- Russell
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.net
> http://www.scipy.net/mailman/listinfo/astropy
More information about the AstroPy
mailing list