81 #define EXTNAME_DATA "DATA" 82 #define EXTNAME_DQ "DQ" 83 #define EXTNAME_STAT "STAT" 84 #define EXTNAME_DATA_COMMENT "This extension contains data values" 85 #define EXTNAME_DQ_COMMENT "This extension contains bad pixel status values" 86 #define EXTNAME_STAT_COMMENT "This extension contains data variance" void muse_image_delete(muse_image *)
Deallocate memory associated to a muse_image object.
int muse_image_divide(muse_image *, muse_image *)
Divide a muse_image by another with correct treatment of bad pixels and variance. ...
int muse_image_scale(muse_image *, double)
Scale a muse_image with correct treatment of variance.
cpl_image * data
the data extension
muse_image * muse_image_load_from_raw(const char *, int)
Load raw image into the data extension of a MUSE image.
muse_image * muse_image_duplicate(const muse_image *)
Duplicate the three image extensions and the FITS headers of a MUSE image.
cpl_image * stat
the statistics extension
int muse_image_subtract(muse_image *, muse_image *)
Subtract a muse_image from another with correct treatment of bad pixels and variance.
Structure definition of MUSE three extension FITS file.
cpl_propertylist * header
the FITS header
int muse_image_variance_create(muse_image *, muse_image *)
Create the photon noise-based variance in the stat extension.
cpl_image * dq
the data quality extension
cpl_error_code muse_image_save(muse_image *, const char *)
Save the three image extensions and the FITS headers of a MUSE image to a file.
muse_image * muse_image_load(const char *)
Load the three extensions and the FITS headers of a MUSE image from a file.
cpl_error_code muse_image_reject_from_dq(muse_image *)
Reject pixels of a muse_image depending on its DQ data.
muse_image * muse_image_new(void)
Allocate memory for a new muse_image object.
cpl_error_code muse_image_adu_to_count(muse_image *)
Convert the data units from raw adu to count (= electron) units.
muse_image * muse_image_load_from_extensions(const char *, unsigned char)
Load the three extensions and the FITS headers of a MUSE image from extensions of a merged file...
cpl_error_code muse_image_dq_to_nan(muse_image *)
Convert pixels flagged in the DQ extension to NANs in DATA (and STAT, if present).