Facility#
- class ansys.stk.core.stkobjects.Facility#
Bases:
ISTKObject
,ILifetimeInformation
,IDisplayTime
Class defining the Facility object.
Overview#
Set an az-el mask. A member of the AzElMaskType enumeration. |
|
Reset the az-el mask. |
|
Get the az-el mask. A member of the AzElMaskType enumeration. |
|
Get az-el mask data. |
Opt whether to use a local time offset from GMT. |
|
The amount of the time offset from GMT, if this option is used. Uses Time Dimension. |
|
Opt whether to set altitude automatically by using terrain data. |
|
Get the 2D Graphics properties of the facility. |
|
Get the position of the facility. |
|
Set the normal to the local terrain. |
|
Data used in specifying terrain slope. |
|
Get the 3D Graphics properties of the facility. |
|
Get the constraints imposed on the facility. |
|
Height of facility above its model of the ground. Height is measured along the normal to surface defined by reference ellipsoid of the central body. Facility models the ground as an ellipsoid passing through the ground position. Uses Distance Dimension. |
|
Get or set the altitude reference of the object. |
|
Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models. |
|
Return the radar clutter map. |
|
Return the radar cross sectoin. |
|
Save terrain az-el mask data in binary. |
|
Get or set the obstruction model used in lighting computations. |
|
Get or set the maximum step size to use when computing lighting. Only applies (and only can be set) when LightingObstructionModel is eLightingObstructionAzElMask or eLightingObstructionTerrain. Uses Time Dimension. |
|
Get the laser environment. |
|
Get the RF environment. |
|
Get or set the maximum range to use when computing the az el mask using terrain data. Zero indicates to use algorithm default. Only applies when GetAzElMask returns eTerrainData (cannot be set if eMaskFile). Uses Distance Dimension. |
Examples#
Add an AzEl Mask to a Facility
# Facility facility: Facility Object
facility.set_az_el_mask(AzElMaskType.TERRAIN_DATA, 0)
Get the cartesian position of a facility
# Facility facility: Facility Object
(x, y, z) = facility.position.query_cartesian()
Set the geodetic position of a facility
# Facility facility: Facility Object
facility.position.assign_geodetic(41.9849, 21.4039, 0) # Latitude, Longitude, Altitude
# Set altitude to height of terrain
facility.use_terrain = True
# Set altitude to a distance above the ground
facility.height_above_ground = 0.05 # km
Create a facility and set its height relative to ground level
# STKObjectRoot root: STK Object Model Root
from ansys.stk.core.stkobjects import Facility, STKObjectType
facility = Facility(root.current_scenario.children.new(STKObjectType.FACILITY, "facility1"))
facility.height_above_ground = 123.4
Create a facility (on the current scenario central body)
# STKObjectRoot root: STK Object Model Root
facility = root.current_scenario.children.new(STKObjectType.FACILITY, "MyFacility")
Import detail#
from ansys.stk.core.stkobjects import Facility
Property detail#
- property Facility.local_time_offset: float#
The amount of the time offset from GMT, if this option is used. Uses Time Dimension.
- property Facility.use_terrain: bool#
Opt whether to set altitude automatically by using terrain data.
- property Facility.graphics: FacilityGraphics#
Get the 2D Graphics properties of the facility.
- property Facility.terrain_normal_data: ITerrainNormData#
Data used in specifying terrain slope.
- property Facility.graphics_3d: FacilityGraphics3D#
Get the 3D Graphics properties of the facility.
- property Facility.access_constraints: AccessConstraintCollection#
Get the constraints imposed on the facility.
- property Facility.height_above_ground: None#
Height of facility above its model of the ground. Height is measured along the normal to surface defined by reference ellipsoid of the central body. Facility models the ground as an ellipsoid passing through the ground position. Uses Distance Dimension.
- property Facility.atmosphere: Atmosphere#
Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models.
- property Facility.radar_clutter_map: IRadarClutterMapInheritable#
Return the radar clutter map.
- property Facility.radar_cross_section: RadarCrossSectionInheritable#
Return the radar cross sectoin.
- property Facility.lighting_obstruction_model: LightingObstructionModelType#
Get or set the obstruction model used in lighting computations.
- property Facility.lighting_maximum_step: float#
Get or set the maximum step size to use when computing lighting. Only applies (and only can be set) when LightingObstructionModel is eLightingObstructionAzElMask or eLightingObstructionTerrain. Uses Time Dimension.
- property Facility.laser_environment: PlatformLaserEnvironment#
Get the laser environment.
- property Facility.rf_environment: IPlatformRFEnvironment#
Get the RF environment.
Method detail#
- Facility.set_az_el_mask(self, type: AzElMaskType, data: Any) None #
Set an az-el mask. A member of the AzElMaskType enumeration.
- Facility.get_az_el_mask(self) AzElMaskType #
Get the az-el mask. A member of the AzElMaskType enumeration.
- Returns:
AzElMaskType