soltrack.location module

class soltrack.location.Location(geo_longitude: float = 0.0, geo_latitude: float = 0.0, pressure: float = 101.0, temperature: float = 283.0)[source]

Bases: object

Class containing the geographic location to compute the Sun position for.

geo_latitude: float = 0.0

Geographic latitude of the observer/site (>0 = northern hemisphere; radians or degrees).

geo_longitude: float = 0.0

Geographic longitude of the observer/site (>0 = east of Greenwich; radians or degrees).

pressure: float = 101.0

Air pressure at the site (kPa).

setLocation(geo_longitude, geo_latitude, pressure=101.0, temperature=283.0)[source]

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

set_location(geo_longitude, geo_latitude, pressure=101.0, temperature=283.0)[source]

Setter for the details of the observer/site location to compute the Sun position for.

Parameters:
  • geo_longitude (float) – Geographic longitude of the observer/site (>0 = east of Greenwich; radians or degrees).

  • geo_latitude (float) – Geographic latitude of the observer/site (>0 = northern hemisphere; radians or degrees).

  • pressure (float) – Air pressure at the site (kPa).

  • temperature (float) – Air temperature at the site (K).

temperature: float = 283.0

Air temperature at the site (K).