Note
Go to the end to download the full example code.
BADA Data Retrieval
Example of BADA parametes retrieval for specific aircraft
acName VMO MMO MTOW engineType
0 AT45 250.0 0.55 21500.0 TURBOPROP
1 B789 335.0 0.82 171700.0 JET
2 DA42 126.0 0.24 1106.0 PISTON
3 J2H 335.0 0.82 171700.0 JET
acName VMO MMO MTOW engineType
0 B737 340.0 0.82 68000.0 JET
acName VMO MMO MTOW engineType
0 DA42 126.0 0.24 1106.0 PISTON
acName VMO
0 DA42 126.0
from pyBADA.bada3 import Parser as Bada3Parser
from pyBADA.aircraft import Bada
# loading all the BADA data into a dataframe
allData = Bada3Parser.parseAll(badaVersion="DUMMY")
# retrieve specific data from the whole database, including synonyms
params = Bada.getBADAParameters(
df=allData,
acName=["A1", "P38", "AT45", "DA42", "B789", "J2H"],
parameters=["VMO", "MMO", "MTOW", "engineType"],
)
print(params)
print("\n")
params = Bada.getBADAParameters(
df=allData,
acName=["B737"],
parameters=["VMO", "MMO", "MTOW", "engineType"],
)
print(params)
print("\n")
params = Bada.getBADAParameters(
df=allData, acName="DA42", parameters=["VMO", "MMO", "MTOW", "engineType"]
)
print(params)
print("\n")
params = Bada.getBADAParameters(df=allData, acName="DA42", parameters="VMO")
print(params)
print("\n")
Total running time of the script: (0 minutes 0.359 seconds)