Functions | |
int | qfitsloader_init (qfitsloader *ql) |
Initialize a qfitsloader control object. | |
int | qfits_loadpix (qfitsloader *ql) |
Load a pixel buffer for one complete image. | |
int | qfits_loadpix_window (qfitsloader *ql, int llx, int lly, int urx, int ury) |
Load a pixel buffer for one image window. | |
int | qfits_pixdump (qfitsdumper *qd) |
Dump a pixel buffer to an output FITS file in append mode. |
|
Load a pixel buffer for one complete image.
|
|
Load a pixel buffer for one image window.
This function will fill up the ibuf/fbuf/dbuf field, depending on the requested pixel type (resp. int, float or double). If llx lly urx and ury do not specify the whole image, ql->map must be 0, we do not want to mmap a file an load only a part of it. |
|
Dump a pixel buffer to an output FITS file in append mode.
The minimum fields to fill are:
One of the following fields must point to the corresponding pixel buffer:
This is a fairly low-level function, in the sense that it does not check that the output file already contains a proper header or even that the file it is appending to is indeed a FITS file. It will convert the pixel buffer to the requested BITPIX type and append the data to the file, without padding with zeros. See qfits_zeropad() about padding. If the given output file name is "STDOUT" (all caps), the dump will be performed to stdout. |
|
Initialize a qfitsloader control object.
You can go ahead with these fields only if you only want to get file information for this plane in this extension. If you want to later load the plane, you must additionally fill the 'ptype' field to a correct value (PTYPE_INT, PTYPE_FLOAT, PTYPE_DOUBLE) before calling qfits_loadpix() so that it knows which conversion to perform. This function is basically a probe sent on a FITS file to ask qfits if loading these data would be Ok or not. The actual loading is performed by qfits_loadpix() afterwards. |