WavelengthFromGratingEquation

class jwst.transforms.models.WavelengthFromGratingEquation(groove_density, order, **kwargs)[source]

Bases: astropy.modeling.core.Model

Solve the 3D Grating Dispersion Law for the wavelength.

Parameters
  • groove_density (int) – Grating ruling density.

  • order (int) – Spectral order.

Attributes Summary

groove_density

Grating ruling density.

n_inputs

The number of inputs.

n_outputs

The number of outputs.

order

Spectral order.

param_names

Names of the parameters that describe models of this type.

Methods Summary

__call__(*inputs[, model_set_axis, …])

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

evaluate(alpha_in, beta_in, alpha_out, …)

Evaluate the model on some input variables.

Attributes Documentation

groove_density = Parameter('groove_density', value=nan)

Grating ruling density.

n_inputs = 3

The number of inputs.

n_outputs = 1

The number of outputs.

order = Parameter('order', value=1.0)

Spectral order.

param_names = ('groove_density', 'order')

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.

Methods Documentation

__call__(*inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

evaluate(alpha_in, beta_in, alpha_out, groove_density, order)[source]

Evaluate the model on some input variables.