Gwa2Slit

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

Bases: astropy.modeling.core.Model

NIRSpec GWA to slit transform.

Parameters
  • slits (list) – A list of open slits. A slit is a namedtupe of type 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

The number of inputs.

n_outputs

The number of 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, z)

Evaluate the model on some input variables.

get_model(name)

Attributes Documentation

n_inputs = 4

The number of inputs.

n_outputs = 4

The number of outputs.

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, z)[source]

Evaluate the model on some input variables.

get_model(name)[source]