pyBADA 0.1.4__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyBADA/TCL.py +10 -17
- pyBADA/aircraft.py +2 -2
- pyBADA/atmosphere.py +403 -269
- pyBADA/bada3.py +58 -72
- pyBADA/bada4.py +116 -130
- pyBADA/badaH.py +20 -33
- pyBADA/configuration.py +2 -1
- pyBADA/conversions.py +113 -140
- pyBADA/flightTrajectory.py +2 -1
- pyBADA/geodesic.py +116 -10
- pyBADA/magnetic.py +2 -1
- pyBADA/trajectoryPrediction.py +13 -12
- pyBADA/utils.py +204 -0
- {pybada-0.1.4.dist-info → pybada-0.1.6.dist-info}/METADATA +16 -14
- {pybada-0.1.4.dist-info → pybada-0.1.6.dist-info}/RECORD +18 -17
- {pybada-0.1.4.dist-info → pybada-0.1.6.dist-info}/WHEEL +0 -0
- {pybada-0.1.4.dist-info → pybada-0.1.6.dist-info}/licenses/AUTHORS +0 -0
- {pybada-0.1.4.dist-info → pybada-0.1.6.dist-info}/licenses/LICENCE.txt +0 -0
pyBADA/TCL.py
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"""Trajectory Computation Light (TCL) for BADAH/BADAE/BADA3/BADA4 aircraft
|
|
2
2
|
performance module."""
|
|
3
3
|
|
|
4
|
-
import numpy as np
|
|
5
|
-
from pyBADA.geodesic import Vincenty as vincenty
|
|
6
|
-
from pyBADA.geodesic import RhumbLine as rhumb
|
|
7
|
-
from pyBADA.geodesic import Turn as turn
|
|
8
|
-
|
|
9
|
-
from dataclasses import dataclass
|
|
10
4
|
import itertools
|
|
11
5
|
import warnings
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from math import asin, atan, cos, degrees, radians, sin, tan
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
import numpy as np
|
|
14
10
|
|
|
11
|
+
from pyBADA import utils
|
|
15
12
|
from pyBADA import atmosphere as atm
|
|
16
|
-
from pyBADA import conversions as conv
|
|
17
13
|
from pyBADA import constants as const
|
|
14
|
+
from pyBADA import conversions as conv
|
|
18
15
|
from pyBADA.flightTrajectory import FlightTrajectory as FT
|
|
16
|
+
from pyBADA.geodesic import RhumbLine as rhumb
|
|
17
|
+
from pyBADA.geodesic import Turn as turn
|
|
18
|
+
from pyBADA.geodesic import Vincenty as vincenty
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
@dataclass
|
|
@@ -26,13 +26,6 @@ class target:
|
|
|
26
26
|
ESFtarget: float = None
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
def checkArgument(argument, **kwargs):
|
|
30
|
-
if kwargs.get(argument) is not None:
|
|
31
|
-
return kwargs.get(argument)
|
|
32
|
-
else:
|
|
33
|
-
raise TypeError("Missing " + argument + " argument")
|
|
34
|
-
|
|
35
|
-
|
|
36
29
|
def constantSpeedLevel(
|
|
37
30
|
AC,
|
|
38
31
|
lengthType,
|
|
@@ -7506,7 +7499,7 @@ def accDec(
|
|
|
7506
7499
|
else:
|
|
7507
7500
|
maxRating = "MCMB"
|
|
7508
7501
|
else:
|
|
7509
|
-
maxRating = checkArgument("maxRating", **kwargs)
|
|
7502
|
+
maxRating = utils.checkArgument("maxRating", **kwargs)
|
|
7510
7503
|
|
|
7511
7504
|
# Determine engine rating
|
|
7512
7505
|
if (
|
|
@@ -8779,7 +8772,7 @@ def accDec_time(
|
|
|
8779
8772
|
else:
|
|
8780
8773
|
maxRating = "MCMB"
|
|
8781
8774
|
else:
|
|
8782
|
-
maxRating = checkArgument("maxRating", **kwargs)
|
|
8775
|
+
maxRating = utils.checkArgument("maxRating", **kwargs)
|
|
8783
8776
|
|
|
8784
8777
|
# Determine engine rating
|
|
8785
8778
|
if (
|
pyBADA/aircraft.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"""Generic airplane/helicopter performance module."""
|
|
2
2
|
|
|
3
|
-
from math import
|
|
3
|
+
from math import atan, cos, degrees, pow, radians, sqrt, tan
|
|
4
4
|
|
|
5
|
+
from pyBADA import atmosphere as atm
|
|
5
6
|
from pyBADA import constants as const
|
|
6
7
|
from pyBADA import conversions as conv
|
|
7
|
-
from pyBADA import atmosphere as atm
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
def checkArgument(argument, **kwargs):
|