OldMoffatModel

class mpdaf.MUSE.OldMoffatModel(a, b, beta, pixstep, field=0)[source]

Bases: mpdaf.MUSE.FSFModel

Moffat FSF with fixed beta and FWHM varying with wavelength.

Attributes Summary

model

name

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(self, lbda, shape[, center])

Return FSF 2D array at the given wavelength.

get_3darray(self, lbda, shape[, center])

Return FSF cube at the given wavelengths.

get_beta(self, lbda)

Return beta for the given wavelengths.

get_cube(self, wave, wcs[, center])

Return FSF cube at the given wavelengths.

get_fwhm(self, lbda[, unit])

Return FWHM for the given wavelengths.

get_image(self, lbda, wcs[, center])

Return FSF image at the given wavelength.

info(self)

read(cube[, field, pixstep])

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

to_header(self[, hdr, field_idx])

Write FSF parameters to a FITS header

to_model2(self)

Convert the model to a model=2 one.

Attributes Documentation

model = 'MOFFAT1'
name = 'Old model with a fixed beta'

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)

Compute FSF by convolution of HST images

classmethod from_psfrec(rawfilename)

Compute FSF parameters from GLAO MUSE PSF reconstruction

classmethod from_starfit(cube, pos, **kwargs)

Compute FSF by fitting a point source on a datacube

get_2darray(self, lbda, shape, center=None)

Return FSF 2D array at the given wavelength.

get_3darray(self, lbda, shape, center=None)

Return FSF cube at the given wavelengths.

get_beta(self, lbda)[source]

Return beta for the given wavelengths.

get_cube(self, wave, wcs, center=None)

Return FSF cube at the given wavelengths.

get_fwhm(self, lbda, unit='arcsec')[source]

Return FWHM for the given wavelengths.

get_image(self, lbda, wcs, center=None)

Return FSF image at the given wavelength.

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

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(self, hdr=None, field_idx=0)[source]

Write FSF parameters to a FITS header

to_model2(self)[source]

Convert the model to a model=2 one.