Skip to content

Commit

Permalink
examples: adding plots to the trajectory examples
Browse files Browse the repository at this point in the history
  • Loading branch information
henrich14 committed Oct 4, 2024
1 parent ea2f7f4 commit b3a4d64
Show file tree
Hide file tree
Showing 7 changed files with 2,777 additions and 23 deletions.
40 changes: 40 additions & 0 deletions examples/BADAData.py
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")
Loading

0 comments on commit b3a4d64

Please sign in to comment.