Slit2Msa

class jwst.transforms.Slit2Msa(slits, models)[source]

Bases: astropy.modeling.core.Model

Transform from Nirspec slit_frame to msa_frame.

Parameters
  • slits (list) – A list of open slits. A slit is a namedtupe, Slit Slit(“name”, “shutter_id”, “dither_position”, “xcen”, “ycen”, “ymin”, “ymax”, “quadrant”, “source_id”, “shutter_state”, “source_name”, “source_alias”, “stellarity”, “source_xpos”, “source_ypos”, “source_ra”, “source_dec”)

  • models (list) – List of models (Model) corresponding to the list of slits.

Attributes Summary

n_inputs

n_outputs

slits

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

Evaluate the model on some input variables.

get_model(name)

Attributes Documentation

n_inputs = 3
n_outputs = 2
slits

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(name, x, y)[source]

Evaluate the model on some input variables.

get_model(name)[source]