RefractionIndexFromPrism

class stdatamodels.jwst.transforms.RefractionIndexFromPrism(prism_angle, name=None)

Bases: Model

Compute the refraction index of a prism (NIRSpec).

Initialize the model.

Parameters:
prism_anglefloat

Prism angle in degrees.

namestr, optional

Name of the model

Attributes Summary

n_inputs

n_outputs

param_names

Names of the parameters that describe models of this type.

prism_angle

standard_broadcasting

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, ...)

Compute the refraction index of a prism.

Attributes Documentation

n_inputs = 3
n_outputs = 1
param_names = ('prism_angle',)

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.

prism_angle
standard_broadcasting = False

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, prism_angle)

Compute the refraction index of a prism.

Parameters:
alpha_in, beta_infloat or np.ndarray

Angle of incidence in radians.

alpha_outfloat or np.ndarray

Angle of emergence in radians.

prism_anglefloat or np.ndarray

Prism angle in radians.

Returns:
float

Refraction index of the prism.