reference_to_skyoffset_matrix¶
- trackstream.utils.reference_to_skyoffset_matrix(lon: Union[float, astropy.units.quantity.Quantity], lat: Union[float, astropy.units.quantity.Quantity], rotation: Union[float, astropy.units.quantity.Quantity]) numpy.ndarray[source]¶
Convert a reference coordinate to an sky offset frame [astropy].
Cartesian to Cartesian matrix transform.
- Parameters
- lonfloat or
AngleorQuantityinstance For ICRS, the right ascension. If float, assumed degrees.
- lat
AngleorQuantityinstance For ICRS, the declination. If float, assumed degrees.
- rotation
AngleorQuantityinstance The final rotation of the frame about the
origin. The sign of the rotation is the left-hand rule. That is, an object at a particular position angle in the un-rotated system will be sent to the positive latitude (z) direction in the final frame. If float, assumed degrees.
- lonfloat or
- Returns
- ndarray
(3x3) matrix. rotates reference Cartesian to skyoffset Cartesian.
See also
reference_to_skyoffset()
References
- astropy
Astropy Collaboration, Robitaille, T., Tollerud, E., Greenfield, P., Droettboom, M., Bray, E., Aldcroft, T., Davis, M., Ginsburg, A., Price-Whelan, A., Kerzendorf, W., Conley, A., Crighton, N., Barbary, K., Muna, D., Ferguson, H., Grollier, F., Parikh, M., Nair, P., Unther, H., Deil, C., Woillez, J., Conseil, S., Kramer, R., Turner, J., Singer, L., Fox, R., Weaver, B., Zabalza, V., Edwards, Z., Azalee Bostroem, K., Burke, D., Casey, A., Crawford, S., Dencheva, N., Ely, J., Jenness, T., Labrie, K., Lim, P., Pierfederici, F., Pontzen, A., Ptak, A., Refsdal, B., Servillat, M., & Streicher, O. (2013). Astropy: A community Python package for astronomy. Astronomy and Astrophysics, 558, A33.