Channel

class mpdaf.drs.Channel(extname, filename)[source]

Bases: object

Channel object corresponds to an extension of a MUSE raw FITS file.

Parameters:
extnamestr

The extension name.

filenamestr

The raw FITS file name.

Attributes:
extnamestr

The extension name

headerastropy.io.fits.Header

The extension header

nxint

Lengths of data in X

nyint

Lengths of data in Y

maskarray 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_outint in [1,4]

Number of detector taken into account.

Returns:
outfloat
get_image(det_out=None, bias=False)[source]

Return an Image object.

Parameters:
det_outint in [1,4]

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

biasbool

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

Returns:
outImage
get_image_just_overscan(det_out=None)[source]

Return an Image object in which only overscanned pixels are not masked.

Parameters:
det_outint in [1,4]

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

Returns:
outImage
get_image_mask_overscan(det_out=None)[source]

Return an Image object in which overscanned pixels are masked.

Parameters:
det_outint in [1,4]

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

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

Return an Image object without over scanned pixels.

Parameters:
det_outint in [1,4]

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

biasbool

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

Returns:
outImage
overscan(copy=True)[source]

Return a masked array where only overscan pixels are not masked.

trimmed(copy=True)[source]

Return a masked array where overscan pixels are masked.