NirissSOSSModel

class stdatamodels.jwst.transforms.NirissSOSSModel(spectral_orders, models)

Bases: Model

NIRISS SOSS wavelength solution model.

Initialize the model.

Parameters:
spectral_orderslist of int

Spectral orders for which there is a wavelength solution.

modelslist of astropy.modeling.core.Model

A list of transforms representing the wavelength solution for each order in spectral orders. It should match the order in spectral_orders.

Attributes Summary

n_inputs

n_outputs

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(x, y, spectral_order)

Compute the RA, Dec, and wavelength for a given pixel coordinate and spectral order.

get_model(spectral_order)

Retrieve model for a given spectral order.

Attributes Documentation

n_inputs = 3
n_outputs = 3

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(x, y, spectral_order)

Compute the RA, Dec, and wavelength for a given pixel coordinate and spectral order.

Parameters:
x, yfloat or np.ndarray

Pixel coordinates.

spectral_orderint

The input spectral order.

Returns:
ra, decfloat or np.ndarray

RA and Dec coordinates.

lamfloat or np.ndarray

Wavelength.

get_model(spectral_order)

Retrieve model for a given spectral order.

Parameters:
spectral_orderint

Spectral order for which to retrieve the model.

Returns:
modelastropy.modeling.core.Model

Model for the given spectral order.