AngleFromGratingEquation

class stdatamodels.jwst.transforms.AngleFromGratingEquation(groove_density, order, **kwargs)

Bases: Model

Solve the 3D Grating Dispersion Law for the refracted angle.

Initialize the model.

Parameters:
groove_densityfloat

Grating ruling density.

orderint

Spectral order.

**kwargs

Additional keyword arguments to pass to Model base class.

Attributes Summary

groove_density

Grating ruling density.

n_inputs

n_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(lam, alpha_in, beta_in, z, ...)

Solve the 3D Grating Dispersion Law for the refracted angle.

Attributes Documentation

groove_density

Grating ruling density.

n_inputs = 4
n_outputs = 3
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 ~astropy.modeling.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(lam, alpha_in, beta_in, z, groove_density, order)

Solve the 3D Grating Dispersion Law for the refracted angle.

Parameters:
lamfloat

The wavelength.

alpha_in, beta_infloat or np.ndarray

The 3-D incident angle(s).

zfloat or np.ndarray

The incident z coordinate. Unused except to match the interface, but must have same shape as alpha_in and beta_in.

groove_densityfloat

The grating ruling density.

orderint

The spectral order.

Returns:
x, y, zfloat

The refracted x,y, and z angles.