![]() |
0.1.39
|
Classes | |
| class | SolarPosition |
| High-level interface for solar position calculations and radiation modeling. More... | |
| class | SolarPositionError |
| Exception raised for SolarPosition-specific errors. More... | |
Functions | |
| _solarposition_working_directory (Tuple[str,...] required_assets=(_PRAGUE_DATASET,)) | |
| Context manager that temporarily changes working directory to where SolarPosition assets are located. | |
| None | _validate_sensor_arguments (label, direction_to_sensor) |
| Validate the label and sensor direction shared by the sensor atmosphere methods. | |
| SolarPosition | create_solar_position (Context context, Optional[float] utc_offset=None, Optional[float] latitude=None, Optional[float] longitude=None) |
| Create SolarPosition instance with context and optional coordinates. | |
Variables | |
| logger = logging.getLogger(__name__) | |
| str | _PRAGUE_DATASET |
| str | _OZONE_CLIMATOLOGY |
| str | _EXTRATERRESTRIAL_SPECTRUM |
| str | _ATMOSPHERE_LUT |
| str | _THERMAL_ATMOSPHERE_LUT |
| tuple | _SPECTRAL_MODEL_ASSETS |
| tuple | _THERMAL_MODEL_ASSETS |
|
protected |
Context manager that temporarily changes working directory to where SolarPosition assets are located.
SolarPosition C++ code opens its data files (the Prague sky model dataset, the ozone climatology, the extraterrestrial solar spectrum and the atmospheric look-up tables) through hardcoded relative paths such as "plugins/solarposition/lib/prague_sky_model/PragueSkyModelReduced.dat", so they are only resolvable when the process is running from the build directory. This manager temporarily changes to the build directory where the files actually live.
| required_assets | Paths, relative to the "plugins/solarposition" asset directory, of the data files the enclosed call reads. |
| RuntimeError | If the build directory or a required data file is not found, indicating a build system error. |
Definition at line 79 of file SolarPosition.py.
|
protected |
Validate the label and sensor direction shared by the sensor atmosphere methods.
Definition at line 136 of file SolarPosition.py.
| SolarPosition pyhelios.SolarPosition.create_solar_position | ( | Context | context, |
| Optional[float] | utc_offset = None, | ||
| Optional[float] | latitude = None, | ||
| Optional[float] | longitude = None ) |
Create SolarPosition instance with context and optional coordinates.
| context | Helios Context |
| utc_offset | UTC time offset in hours (optional) |
| latitude | Latitude in degrees (optional) |
| longitude | Longitude in degrees (optional) |
Definition at line 1541 of file SolarPosition.py.
|
protected |
Definition at line 41 of file SolarPosition.py.
|
protected |
Definition at line 37 of file SolarPosition.py.
|
protected |
Definition at line 33 of file SolarPosition.py.
|
protected |
Definition at line 29 of file SolarPosition.py.
|
protected |
Definition at line 51 of file SolarPosition.py.
|
protected |
Definition at line 45 of file SolarPosition.py.
|
protected |
Definition at line 56 of file SolarPosition.py.
| pyhelios.SolarPosition.logger = logging.getLogger(__name__) |
Definition at line 21 of file SolarPosition.py.