InstrumentDeltaLambdaConstant

class starkit.base.operations.spectrograph.InstrumentDeltaLambdaConstant(delta_lambda, grid_R, sampling=4)[source]

Bases: SpectrographOperationModel

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

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

resolution of the spectrum R = lambda/delta_lambda at wavelength

sampling: float

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

Attributes Summary

delta_lambda

operation_name

param_names

Names of the parameters that describe models of this type.

requires_observed_spectrum

Methods Summary

evaluate(wavelength, flux, delta_lambda)

Evaluate the model on some input variables.

from_grid(grid[, delta_lambda])

Attributes Documentation

delta_lambda = Parameter('delta_lambda', value=nan)
operation_name = 'delta_lambda_constant'
param_names = ('delta_lambda',)

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, delta_lambda)[source]

Evaluate the model on some input variables.

classmethod from_grid(grid, delta_lambda=0.0)[source]