Rotation3DToGWA
- class stdatamodels.jwst.transforms.Rotation3DToGWA(angles, axes_order, name=None)
Bases:
ModelPerform a 3D rotation given an angle in degrees.
Positive angles represent a counter-clockwise rotation and vice-versa.
Initialize the model.
- Parameters:
- anglesarray-like
Angles of rotation in deg in the order of axes_order.
- axes_orderstr
A sequence of ‘x’, ‘y’, ‘z’ corresponding to axis of rotation
Attributes Summary
Names of the parameters that describe models of this type.
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, z, angles)Apply the rotation to a set of 3D Cartesian coordinates.
Attributes Documentation
- angles
- n_inputs = 3
- n_outputs = 3
- param_names = ('angles',)
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.
- separable = False
- 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(x, y, z, angles)
Apply the rotation to a set of 3D Cartesian coordinates.
- Parameters:
- x, y, zarray-like
Cartesian coordinates
- anglesarray-like
Angles of rotation in deg in the order of axes_order.
- Returns:
- x, y, zarray-like
Rotated Cartesian coordinates