Channel¶
-
class
mpdaf.drs.
Channel
(extname, filename)[source]¶ Bases:
object
Channel object corresponds to an extension of a MUSE raw FITS file.
Parameters: extname : str
The extension name.
filename : str
The raw FITS file name.
Attributes
extname (str) The extension name header ( astropy.io.fits.Header
) The extension headernx (int) Lengths of data in X ny (int) Lengths of data in Y mask (array of bool) Arrays that contents TRUE for overscanned pixels, FALSE for the others. Methods Summary
get_bias_level
(det_out)computes median value of the overscanned pixels. get_image
([det_out, bias])Return an Image object. get_image_just_overscan
([det_out])Return an Image object in which only overscanned pixels are not masked. get_image_mask_overscan
([det_out])Return an Image object in which overscanned pixels are masked. get_trimmed_image
([det_out, bias])Return an Image object without over scanned pixels. overscan
([copy])Return a masked array where only overscan pixels are not masked. trimmed
([copy])Return a masked array where overscan pixels are masked. Methods Documentation
-
get_bias_level
(det_out)[source]¶ computes median value of the overscanned pixels.
Parameters: det_out : int in [1,4]
Number of detector taken into account.
Returns: out : float
-
get_image
(det_out=None, bias=False)[source]¶ Return an Image object.
Parameters: det_out : int in [1,4]
Number of output detector. If None, all image is returned.
bias : bool
If True, median value of the overscanned pixels is subtracted.
Returns: out :
Image
-
get_image_just_overscan
(det_out=None)[source]¶ Return an Image object in which only overscanned pixels are not masked.
Parameters: det_out : int in [1,4]
Number of output detector. If None, all image is returned.
Returns: out :
Image
-
get_image_mask_overscan
(det_out=None)[source]¶ Return an Image object in which overscanned pixels are masked.
Parameters: det_out : int in [1,4]
Number of output detector. If None, all image is returned.
Returns: out :
Image
-