InstrumentRConstant

class starkit.base.operations.spectrograph.InstrumentRConstant(R=inf, grid_R=None, grid_sampling=None)[source]

Bases: SpectrographOperationModel

Convolve with a gaussian with given resolution to mimick an instrument assuming lambda / delta_lambda being constant

Parameters:
Rfloat or astropy.units.Quantity (unitless)

resolution of the spectrum R = lambda/delta_lambda

sampling: float

number of pixels per resolution element (default=2.)

Attributes Summary

R

operation_name

param_names

Names of the parameters that describe models of this type.

requires_observed_spectrum

Methods Summary

evaluate(wavelength, flux, R)

Evaluate the model on some input variables.

from_grid(grid[, R])

Attributes Documentation

R = Parameter('R', value=nan)
operation_name = 'resolution_constant'
param_names = ('R',)

Names of the parameters that describe models of this type.

The parameters in this tuple are in the same order they should be passed in when initializing a model of a specific type. Some types of models, such as polynomial models, have a different number of parameters depending on some other property of the model, such as the degree.

When defining a custom model class the value of this attribute is automatically set by the Parameter attributes defined in the class body.

requires_observed_spectrum = False

Methods Documentation

evaluate(wavelength, flux, R)[source]

Evaluate the model on some input variables.

classmethod from_grid(grid, R=inf)[source]