LSF

class dysmalpy.instrument.LSF(dispersion=None, default_unit=Unit('km / s'), meta=None)[source]

Bases: Quantity

An object to handle line spread functions.

Create a new Gaussian Line Spread Function

Parameters:
  • dispersion (Quantity with speed equivalency) – The standard deviation of the Gaussian LSF.

  • default_unit (Unit) – The unit to impose on dispersion if they are specified as floats

Attributes Summary

dispersion

Methods Summary

as_velocity_kernel(velstep, **kwargs)

Return a Gaussian convolution kernel in velocity space

as_wave_kernel(wavestep, wavecenter, **kwargs)

Return a Gaussian convolution kernel in wavelength space

vel_to_lambda(wave)

Convert from velocity dispersion to wavelength dispersion for a given central wavelength.

Attributes Documentation

dispersion

Methods Documentation

as_velocity_kernel(velstep, **kwargs)[source]

Return a Gaussian convolution kernel in velocity space

Parameters:

velstep (Quantity) – Step size in velocity of one spectral channel

Returns:

vel_kern – Convolution kernel for the LSF in velocity space

Return type:

1D array

as_wave_kernel(wavestep, wavecenter, **kwargs)[source]

Return a Gaussian convolution kernel in wavelength space

Parameters:
  • wavestep (Quantity) – Step size in wavelength of one spectral channel

  • wavecenter (Quantity) – Central wavelength used to convert from velocity to wavelength

Returns:

wave_kern – Convolution kernal for the LSF in wavelength space

Return type:

1D array

vel_to_lambda(wave)[source]

Convert from velocity dispersion to wavelength dispersion for a given central wavelength.

Parameters:

wave (Quantity) – Central wavelength to use in conversion from velocity to wavelength

Returns:

wdisp – Dispersion of LSF in wavelength units

Return type:

Quantity