Skip to content

Commit 8704d44

Browse files
committed
added runway object definition example
1 parent 8868be4 commit 8704d44

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

ADRpy/.DS_Store

0 Bytes
Binary file not shown.

ADRpy/atmospheres.py

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,43 @@ class Runway:
7777
**Parameters:**
7878
7979
icao_code
80-
International Civil Aviation Organisation code of the airport. Required
80+
String. International Civil Aviation Organisation code of the airport. Required
8181
if the user wishes to equip this object with the attributes of a specific,
82-
existing runway. String. E.g., 'EGHI' (Southampton airport). Runway
82+
existing runway, e.g., 'EGLL' (London Heathrow airport). Runway
8383
data is obtained from an off-line image of the `ourairports.com` database.
8484
8585
rwyno
86-
Integer. Specifies which of the runways at at the airport specified by the
87-
code above we want to associate with the runway object.
86+
Integer. Specifies which of the runways at the airport specified by the
87+
ICAO code above we want to associate with the runway object.
88+
89+
elevation_ft, heading, surf, length_ft, width_ft
90+
Parameters of bespoke, user-defined runways. The recommended use of these
91+
is as indicated by their names, though the user may wish to adopt their
92+
own definitions to suit particular applications (for example, `surf` can
93+
be any string describing the runway surface).
94+
95+
**Example:** ::
96+
97+
from ADRpy import atmospheres as at
98+
99+
runway = at.Runway('EGLL', 0)
100+
101+
print('Runway: ', runway.le_ident, '/', runway.he_ident)
102+
103+
print('True headings: ',
104+
runway.le_heading_degt, '/',
105+
runway.he_heading_degt, 'degrees')
106+
107+
print('Elevation (low end): ', runway.le_elevation_ft, 'ft')
108+
109+
print('Length: ', runway.length_ft, 'ft')
110+
111+
Outputs: ::
112+
113+
Runway: 09L / 27R
114+
True headings: 89.6 / 269.6 degrees
115+
Elevation (low end): 79.0 ft
116+
Length: 12799.0 ft
88117
"""
89118

90119
def __init__(self, icao_code=None, rwyno=0,

0 commit comments

Comments
 (0)