skyscapes.io._frames#
Frame conversions for ExoVista-style barycentric -> sky-plane rotations.
Ports exoverses.util.misc.gen_rotate_to_sky_coords (convention
"exovista") to JAX-friendly degrees-in-floats inputs. The math is
identical: rotate by -inclination around X, then by +position_angle
around Z, then flip the Z sign so that the resulting frame has +Z toward
the observer.
Functions#
|
3x3 rotation matrix around the X axis. |
|
3x3 rotation matrix around the Z axis. |
|
Rotate |
Module Contents#
- skyscapes.io._frames._rot_x(angle_rad)[source]#
3x3 rotation matrix around the X axis.
- Parameters:
angle_rad (float)
- Return type:
jaxtyping.Array
- skyscapes.io._frames._rot_z(angle_rad)[source]#
3x3 rotation matrix around the Z axis.
- Parameters:
angle_rad (float)
- Return type:
jaxtyping.Array
- skyscapes.io._frames.rotate_to_sky_coords(vectors, inc_deg, pa_deg)[source]#
Rotate
Nx3barycentric vectors into the sky frame.Matches
exoverses.util.misc.gen_rotate_to_sky_coordswithconvention="exovista":Rotate by
-inc_degaround the X axis.Rotate by
+pa_degaround the Z axis.Flip the Z component sign.
- Args:
- vectors:
(N, 3)array of barycentric position or velocity vectors.
inc_deg: System midplane inclination in degrees. pa_deg: System midplane position angle in degrees.
- vectors:
- Returns:
(N, 3)array of vectors expressed in the sky frame.