SatelliteCameraViewer.ecliptic module

ecliptic

SatelliteCameraViewer.ecliptic.body(which: str, obs_time: datetime, location=None)[source]

body - return the position (in RA/DEC) for a specific solar system body (Sun and Moon being the use cases).

Parameters:
  • which (str) – Which body (sun, moon, etc).

  • obs_time (datetime`) – Time of observation.

  • location (tuple[float, float, float]) – Location of observer on the Earth in x,y,z coords.

Returns:

The RA/DEC of the body

Return type:

tuple(float, float)

SatelliteCameraViewer.ecliptic.earth_vector()[source]
SatelliteCameraViewer.ecliptic.ecliptic(nsteps: int = 180)[source]

ecliptic - Caculate the ecliptic line.

Parameters:

nsteps (int) – Numer of steps to use in returned line.

Returns:

a series of points to describe the ecliptic line.

Return type:

np.array

SatelliteCameraViewer.ecliptic.galactic_plane(nsteps: int = 180)[source]

galactic_plane - Caculate the galatic plane.

Parameters:

nsteps (int) – Numer of steps to use in returned line.

Returns:

a series of points to describe the galatic plane.

Return type:

np.array

SatelliteCameraViewer.ecliptic.moon_illumination(obs_time: datetime)[source]

moon_illumination - Calculate fraction of the moon illuminated.

Parameters:

obs_time (datetime`) – Time of observation.

Returns:

Phase angle of the moon [radians].

Return type:

float

SatelliteCameraViewer.ecliptic.sun(obs_time: datetime)[source]

sun - return the position (in RA/DEC) for the sun. Using body() would be preferred.

Parameters:

obs_time (datetime`) – Time of observation.

Returns:

The RA/DEC of the sun

Return type:

tuple(float, float)