SpacecraftAxes

class gdt.core.coords.SpacecraftAxes(x_pointing=None, y_pointing=None, z_pointing=None)[source]

Bases: object

A class containing the axes pointings of a spacecraft in ICRS coordinates

Parameters:
  • x_pointing (SkyCoord, optional) – The x-axis pointing

  • y_pointing (SkyCoord, optional) – The y-axis pointing

  • z_pointing (SkyCoord, optional) – The z-axis pointing

Attributes Summary

has_x

True if the x_pointing is set

has_y

True if the y_pointing is set

has_z

True if the z_pointing is set

x_vector

The x-axis reference unit vector

y_vector

The x-axis reference unit vector

z_vector

The x-axis reference unit vector

Methods Summary

pointing_vector(axis)

The pointing vector of the requested axis

Attributes Documentation

has_x

True if the x_pointing is set

Type:

(bool)

has_y

True if the y_pointing is set

Type:

(bool)

has_z

True if the z_pointing is set

Type:

(bool)

x_vector

The x-axis reference unit vector

Type:

(np.array)

y_vector

The x-axis reference unit vector

Type:

(np.array)

z_vector

The x-axis reference unit vector

Type:

(np.array)

Methods Documentation

pointing_vector(axis)[source]

The pointing vector of the requested axis

Parameters:

axis (str) – Either ‘x’, ‘y’, or ‘z’

Returns:

(np.array)