TPCorr¶
-
class
jwst.transforms.tpcorr.
TPCorr
(v2ref=0.0, v3ref=0.0, roll=0.0, matrix=[[1.0, 0.0], [0.0, 1.0]], shift=[0.0, 0.0], **kwargs)[source]¶ Bases:
astropy.modeling.core.Model
Apply
V2ref
,V3ref
, androll
to input angles and project the point from the tangent plane onto a celestial sphere.Parameters: Attributes Summary
input_units
This property is used to indicate what units or sets of units the evaluate method expects, and returns a dictionary mapping inputs to units (or None
if any units are accepted).inputs
matrix
outputs
param_names
r0
Radius of the generating sphere. return_units
This property is used to indicate what units or sets of units the output of evaluate should be in, and returns a dictionary mapping outputs to units (or None
if any units are accepted).roll
shift
standard_broadcasting
v2ref
v3ref
Methods Summary
__call__
(v2, v3[, model_set_axis, …])Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated. cartesian2spherical
(x, y, z)Convert cartesian coordinates to spherical coordinates (in acrsec). combine
(t2, t1)Combine transformation t2
with another transformation (t1
) previously applied to the coordinates.evaluate
(v2, v3, v2ref, v3ref, roll, matrix, …)Evaluate the model on some input variables. spherical2cartesian
(alpha, delta)Convert spherical coordinates (in arcsec) to cartesian. tanp_to_v2v3
(xt, yt)Converts tangent plane coordinates to V2V3 spherical coordinates. v2v3_to_tanp
(v2, v3)Converts V2V3 spherical coordinates to tangent plane coordinates. Attributes Documentation
-
input_units
¶ This property is used to indicate what units or sets of units the evaluate method expects, and returns a dictionary mapping inputs to units (or
None
if any units are accepted).Model sub-classes can also use function annotations in evaluate to indicate valid input units, in which case this property should not be overridden since it will return the input units based on the annotations.
-
inputs
= ('v2', 'v3')¶
-
matrix
¶
-
outputs
= ('v2c', 'v3c')¶
-
param_names
= ('v2ref', 'v3ref', 'roll', 'matrix', 'shift')¶
-
r0
= 206264.80624709636¶ Radius of the generating sphere. This sets the circumference to 360 deg so that arc length is measured in deg.
-
return_units
¶ This property is used to indicate what units or sets of units the output of evaluate should be in, and returns a dictionary mapping outputs to units (or
None
if any units are accepted).Model sub-classes can also use function annotations in evaluate to indicate valid output units, in which case this property should not be overridden since it will return the return units based on the annotations.
-
roll
¶
-
shift
¶
-
standard_broadcasting
= False¶
-
v2ref
¶
-
v3ref
¶
Methods Documentation
-
__call__
(v2, v3, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None)¶ Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.
-
static
cartesian2spherical
(x, y, z)[source]¶ Convert cartesian coordinates to spherical coordinates (in acrsec).
-
classmethod
combine
(t2, t1)[source]¶ Combine transformation
t2
with another transformation (t1
) previously applied to the coordinates. That is, transformationt2
is assumed to follow (=applied after) the transformation provided by the argumentt1
.
-
evaluate
(v2, v3, v2ref, v3ref, roll, matrix, shift)[source]¶ Evaluate the model on some input variables.
-