pycasx.scenario
Scenario generation module for pycasx.
Submodules
Package Contents
Classes
Configuration of a single waypoint. |
|
The latitude and longitude of an aircraft. |
Functions
|
Convert a value to a specific unit. |
Attributes
- pycasx.scenario.ureg
- pycasx.scenario.GEOD
- pycasx.scenario.SPDX_FILE_COPYRIGHT_TEXT = 'SPDX-FileCopyrightText: 2024 German Aerospace Center (DLR) <https://dlr.de>'
- pycasx.scenario.SPDX_LICENSE_IDENTIFIER = 'SPDX-License-Identifier: MIT'
- pycasx.scenario.HEADLESS_OPTIONS = Multiline-String
Show Value
"""# HEADLESS-START --geometry=1x1 --disable-sound --disable-terrasync --disable-splash-screen --fog-fastest --disable-specular-highlight --disable-random-objects --disable-clouds --disable-clouds3d --disable-distance-attenuation --disable-real-weather-fetch --disable-random-vegetation --disable-random-buildings --disable-horizon-effect --prop:/sim/rendering/particles=0 --prop:/sim/rendering/multi-sample-buffers=1 --prop:/sim/rendering/multi-samples=2 --prop:/sim/rendering/draw-mask/clouds=false --prop:/sim/rendering/draw-mask/aircraft=false --prop:/sim/rendering/draw-mask/models=false --prop:/sim/rendering/draw-mask/terrain=false --prop:/sim/rendering/random-vegetation=0 --prop:/sim/rendering/random-buildings=0 --prop:/sim/rendering/texture-compression=off --prop:/sim/rendering/quality-level=0 --prop:/sim/rendering/shaders/quality-level=0 # HEADLESS-END """
- class pycasx.scenario.WayPointConfig
Configuration of a single waypoint.
- class pycasx.scenario.GeographicCoordinates
The latitude and longitude of an aircraft.
- pycasx.scenario.convert(value: int | float) float
- pycasx.scenario.convert(value: int | float, unit: str) float
- pycasx.scenario.convert(value: str, unit: str) float
Convert a value to a specific unit.
This function takes a value and a unit and converts the value to the given unit. If the value is already a number (int | float), it is directly returned. If the value is a string, it is converted to a quantity and then to the given unit. This is useful to read values from the configuration file and convert them to the correct unit.