V2V3ToIdeal

class jwst.transforms.V2V3ToIdeal(v3idlyangle, v2ref, v3ref, vparity, name='V2idl', **kwargs)[source]

Bases: astropy.modeling.core.Model

Performs the transform from telescope V2,V3 to Ideal coordinate system. The two systems have the same origin - V2_REF, V3_REF.

Note: This model has no schema implemented - add if needed.

Attributes Summary

n_inputs

The number of inputs.

n_outputs

The number of outputs.

param_names

Names of the parameters that describe models of this type.

v2ref

v3idlyangle

v3ref

vparity

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(v2, v3, v3idlyangle, v2ref, v3ref, …)

param xidl

Coordinates in Ideal System [in arcsec]

Attributes Documentation

n_inputs = 2

The number of inputs.

n_outputs = 2

The number of outputs.

param_names = ('v3idlyangle', 'v2ref', 'v3ref', 'vparity')

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 Parameter attributes defined in the class body.

v2ref = Parameter('v2ref', value=nan)
v3idlyangle = Parameter('v3idlyangle', value=nan)
v3ref = Parameter('v3ref', value=nan)
vparity = Parameter('vparity', value=nan)

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.

static evaluate(v2, v3, v3idlyangle, v2ref, v3ref, vparity)[source]
Parameters
  • xidl (ndarray-like) – Coordinates in Ideal System [in arcsec]

  • yidl (ndarray-like) – Coordinates in Ideal System [in arcsec]

  • v3idlyangle (float) – Angle between Ideal Y-axis and V3 [ in deg]

  • v2ref (ndarray-like) – Coordinates in V2, V3 [in arcsec]

  • v3ref (ndarray-like) – Coordinates in V2, V3 [in arcsec]

  • vparity (int) – Parity.

Returns

xidl, yidl – Coordinates in the Ideal telescope system [in arcsec].

Return type

ndarray-like