InstrumentRConstant¶
- class starkit.base.operations.spectrograph.InstrumentRConstant(R=inf, grid_R=None, grid_sampling=None)[source]¶
Bases:
SpectrographOperationModelConvolve 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
Names of the parameters that describe models of this type.
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
Parameterattributes defined in the class body.
- requires_observed_spectrum = False¶
Methods Documentation