![]() |
0.1.33
|
Geographic location for solar position and radiation calculations. More...
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) | |
| 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.
| bool pyhelios.wrappers.DataTypes.Location.__eq__ | ( | self, | |
| other ) |
Definition at line 1097 of file DataTypes.py.
| int pyhelios.wrappers.DataTypes.Location.__hash__ | ( | self | ) |
Definition at line 1108 of file DataTypes.py.
| bool pyhelios.wrappers.DataTypes.Location.__ne__ | ( | self, | |
| other ) |
Definition at line 1105 of file DataTypes.py.
| str pyhelios.wrappers.DataTypes.Location.__repr__ | ( | self | ) |
Definition at line 1093 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Location.__setattr__ | ( | self, | |
| name, | |||
| value ) |
Definition at line 1089 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Location.altitude = other.altitude) |
Definition at line 1103 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Location.latitude = other.latitude and |
Definition at line 1100 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Location.longitude = other.longitude and |
Definition at line 1101 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Location.utc_offset = other.utc_offset and |
Definition at line 1102 of file DataTypes.py.