FSFModel

class mpdaf.MUSE.FSFModel[source]

Bases: object

Base class for FSF models.

Methods Summary

from_header(hdr, pixstep[, field])

Read FSF parameters from a FITS header

from_hstconv(cube, hstimages[, lbrange])

Compute FSF by convolution of HST images

from_psfrec(rawfilename)

Compute FSF parameters from GLAO MUSE PSF reconstruction

from_starfit(cube, pos, **kwargs)

Compute FSF by fitting a point source on a datacube

get_2darray(lbda, shape[, center])

Return FSF 2D array at the given wavelength.

get_3darray(lbda, shape[, center])

Return FSF cube at the given wavelengths.

get_beta(lbda)

Return beta for the given wavelengths.

get_cube(wave, wcs[, center])

Return FSF cube at the given wavelengths.

get_fwhm(lbda)

Return FWHM for the given wavelengths.

get_image(lbda, wcs[, center])

Return FSF image at the given wavelength.

read(cube[, field, pixstep])

Read the FSF model from a file, cube, or header.

to_header([hdr])

Write FSF parameters to a FITS header

Methods Documentation

classmethod from_header(hdr, pixstep, field=0)[source]

Read FSF parameters from a FITS header

classmethod from_hstconv(cube, hstimages, lbrange=5000, 9000, **kwargs)[source]

Compute FSF by convolution of HST images

classmethod from_psfrec(rawfilename)[source]

Compute FSF parameters from GLAO MUSE PSF reconstruction

classmethod from_starfit(cube, pos, **kwargs)[source]

Compute FSF by fitting a point source on a datacube

get_2darray(lbda, shape, center=None)[source]

Return FSF 2D array at the given wavelength.

get_3darray(lbda, shape, center=None)[source]

Return FSF cube at the given wavelengths.

get_beta(lbda)[source]

Return beta for the given wavelengths.

get_cube(wave, wcs, center=None)[source]

Return FSF cube at the given wavelengths.

get_fwhm(lbda)[source]

Return FWHM for the given wavelengths.

get_image(lbda, wcs, center=None)[source]

Return FSF image at the given wavelength.

classmethod read(cube, field=None, pixstep=None)[source]

Read the FSF model from a file, cube, or header.

Parameters
cubestr, mpdaf.obj.Cube, or astropy.io.fits.Header

Must contain a header with a FSF model.

fieldint

Field number to read, otherwise all models are read.

to_header(hdr=None)[source]

Write FSF parameters to a FITS header