Neptune

Class to model Neptune planet.

Neptune examples

Neptune - VSOP87-Parameters

class pyplanets.planets.neptune.Neptune(epoch)[source]

Class Neptune models that planet.

__init__(epoch)[source]
Initializes an object of type planet for a given date (epoch) with

its orbital parameters (ephemeredes) given by VSOP87.

Parameters

epoch (Epoch) – Epoch to which all computations of this instance refer, as an Epoch object

Raises

TypeError if epoch is of wrong type.

aphelion()pyplanets.core.epoch.Epoch[source]

This method computes the time of Aphelion closest to the epoch of initialization. Subclasses are required to implement this method.

Returns

The epoch of the desired Aphelion

Return type

Epoch

conjunction()pyplanets.core.epoch.Epoch[source]

This method computes the time of the conjunction closest to the given epoch.

Returns

The time when the conjunction happens, as an Epoch

Return type

Epoch

Raises

ValueError if input epoch outside the -2000/4000 range.

>>> epoch = Epoch(1993, 10, 1.0)
>>> conj = Neptune(epoch).conjunction()
>>> y, m, d = conj.get_date()
>>> print(y)
1994
>>> print(m)
1
>>> print(round(d, 4))
11.3057
magnitude(sun_dist, earth_dist)[source]

This function computes the approximate magnitude of Neptune.

Parameters
  • sun_dist (float) – Distance from Neptune to Sun, in Astronomical Units

  • earth_dist (float) – Distance Neptune to Earth, in Astronomical Units

Returns

Neptune’s magnitude

Return type

float

opposition()pyplanets.core.epoch.Epoch[source]

This method computes the time of the opposition closest to the given epoch.

Returns

The time when the opposition happens, as an Epoch

Return type

Epoch

Raises

ValueError if input epoch outside the -2000/4000 range.

>>> epoch = Epoch(1846, 8, 1)
>>> oppo = Neptune(epoch).opposition()
>>> y, m, d = oppo.get_date()
>>> print(y)
1846
>>> print(m)
8
>>> print(round(d, 4))
20.1623
perihelion()pyplanets.core.epoch.Epoch[source]

This method computes the time of Perihelion closest to the epoch of initialization. Subclasses are required to implement this method.

Returns

The epoch of the desired Perihelion

Return type

Epoch