-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: adding plots to the trajectory examples
- Loading branch information
Showing
7 changed files
with
2,777 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
""" | ||
Example of BADA parametes retrieval for specific aircraft | ||
""" | ||
|
||
from pyBADA.bada3 import Bada3Aircraft | ||
from pyBADA.bada3 import Parser as Bada3Parser | ||
|
||
badaVersion = "DUMMY" | ||
|
||
# loading all the BADA data into a dataframe | ||
allData = Bada3Parser.parseAll(badaVersion=badaVersion) | ||
|
||
# retrieve specific data from the whole database, including synonyms | ||
params = Bada3Parser.getBADAParameters( | ||
df=allData, | ||
acName=["B737", "A1", "P38", "AT45", "DA42"], | ||
parameters=["VMO", "MMO", "MTOW", "engineType"], | ||
) | ||
print(params) | ||
print("\n") | ||
|
||
params = Bada3Parser.getBADAParameters( | ||
df=allData, | ||
acName=["B737"], | ||
parameters=["VMO", "MMO", "MTOW", "engineType"], | ||
) | ||
print(params) | ||
print("\n") | ||
|
||
params = Bada3Parser.getBADAParameters( | ||
df=allData, acName="DA42", parameters=["VMO", "MMO", "MTOW", "engineType"] | ||
) | ||
print(params) | ||
print("\n") | ||
|
||
params = Bada3Parser.getBADAParameters( | ||
df=allData, acName="DA42", parameters="VMO" | ||
) | ||
print(params) | ||
print("\n") |
Oops, something went wrong.