0.1.33
Loading...
Searching...
No Matches
pyhelios.wrappers.DataTypes.Location Class Reference

Geographic location for solar position and radiation calculations. More...

Detailed Description

Geographic location for solar position and radiation calculations.

Mirrors latitude in degrees (+N / -S), longitude in degrees

(+W / -E per Helios convention), UTC offset in hours (+moving West), and altitude of the local Cartesian origin in meters above sea level (default 0).

Fields are validated against the same ranges as helios::Location::validate():

Field Range Note
latitude -90 to 90
longitude -180 to 180 Helios counts longitude positive moving West
utc_offset -14 to 12 Asymmetric; see below
altitude any finite value No non-arbitrary bound exists for a scene

The UTC offset spans -14 to +12 rather than -12 to +12 because Helios counts the offset positive moving West: the real-world span of UTC-12 through UTC+14 (Kiribati keeps the latter) inverts to +12 through -14.

Definition at line 1043 of file DataTypes.py.

Public Member Functions

 __init__ (self, float latitude=38.55, float longitude=121.76, float utc_offset=8.0, float altitude=0.0)
 
 __setattr__ (self, name, value)
 
str __repr__ (self)
 
bool __eq__ (self, other)
 
bool __ne__ (self, other)
 
int __hash__ (self)
 

Public Attributes

 latitude = other.latitude and
 
 longitude = other.longitude and
 
 utc_offset = other.utc_offset and
 
 altitude = other.altitude)
 

Constructor & Destructor Documentation

◆ __init__()

pyhelios.wrappers.DataTypes.Location.__init__ ( self,
float latitude = 38.55,
float longitude = 121.76,
float utc_offset = 8.0,
float altitude = 0.0 )

Definition at line 1046 of file DataTypes.py.

Member Function Documentation

◆ __eq__()

bool pyhelios.wrappers.DataTypes.Location.__eq__ ( self,
other )

Definition at line 1097 of file DataTypes.py.

◆ __hash__()

int pyhelios.wrappers.DataTypes.Location.__hash__ ( self)

Definition at line 1108 of file DataTypes.py.

◆ __ne__()

bool pyhelios.wrappers.DataTypes.Location.__ne__ ( self,
other )

Definition at line 1105 of file DataTypes.py.

◆ __repr__()

str pyhelios.wrappers.DataTypes.Location.__repr__ ( self)

Definition at line 1093 of file DataTypes.py.

◆ __setattr__()

pyhelios.wrappers.DataTypes.Location.__setattr__ ( self,
name,
value )

Definition at line 1089 of file DataTypes.py.

Member Data Documentation

◆ altitude

pyhelios.wrappers.DataTypes.Location.altitude = other.altitude)

Definition at line 1103 of file DataTypes.py.

◆ latitude

pyhelios.wrappers.DataTypes.Location.latitude = other.latitude and

Definition at line 1100 of file DataTypes.py.

◆ longitude

pyhelios.wrappers.DataTypes.Location.longitude = other.longitude and

Definition at line 1101 of file DataTypes.py.

◆ utc_offset

pyhelios.wrappers.DataTypes.Location.utc_offset = other.utc_offset and

Definition at line 1102 of file DataTypes.py.


The documentation for this class was generated from the following file: