astroforge.coordinates.shadow#

astroforge.coordinates.shadow(n, z)[source]#

Compute whether the satellite is in shadow

Parameters:
  • n (NDArray[np.float64]) – Unit vector pointing from the Earth to the Sun

  • z (NDArray[np.float64]) – ECI position of the satellite (km)

Returns:

test – Flag for if the satellite is in Earth’s shadow 0 = shadow, 1 = not in shadow

Return type:

int