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 header
nx (int) Lengths of data in X
ny (int) Lengths of data in Y
mask (array of booleans) 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() Return a masked array containing only reference to the overscanned pixels.
trimmed() Return a masked array containing only reference to the valid pixels.

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 : boolean

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

get_trimmed_image(det_out=None, bias=False)[source]

Return an Image object without over scanned pixels.

Parameters:

det_out : int in [1,4]

Number of output detector. If None, all image is returned.

bias : boolean

If True, median value of the overscanned pixels is subtracted.

Returns:

out : Image

overscan()[source]

Return a masked array containing only reference to the overscanned pixels.

trimmed()[source]

Return a masked array containing only reference to the valid pixels.