soltrack.position module

class soltrack.position.Position[source]

Bases: Parameters

Class containing the position of the Sun and related attributes and methods.

altitude: float

Altitude of the Sun, corrected for refraction (radians)

azimuth: float

Azimuth of the Sun, corrected for refraction (radians)

computePosition()[source]

This function is obsolescent and will be removed in a future version. Use compute_position() instead.

compute_position()[source]

Method to compute the position of the Sun.

create_df(utc=False, jd=False, ecl=False, eq=False, uncorr=False, rts_pos=False)[source]

Create a Pandas DataFrame with the results of the Sun position and rise/set data.

Parameters:
  • utc (bool) – Include utc, defaults to False.

  • jd (bool) – Include Julian day, defaults to False.

  • ecl (bool) – Include ecliptical coordinates, defaults to False.

  • eq (bool) – Include equatorial coordinates, defaults to False.

  • uncorr (bool) – Include coordinates uncorrected for refraction, defaults to False.

  • rts_pos (bool) – Include the rise, transit and set positions, defaults to False.

Note that if a desired variable is not available, the request will be silently ignored.

declination: float

Declination of the Sun, corrected for refraction (radians)

distance: float

Distance Earth-Sun (AU)

hour_angle: float

Hour angle of the Sun, corrected for refraction (radians)

julian_day: float

The Julian day for the desired instant

longitude: float

Ecliptical longitude of the Sun (radians)

lt: float

The local date/time for the desired instant, if any

utc: float

The universal date/time (UTC) for the desired instant