Missions
Missions, i.e., flights to be simulated by AEIC, are currently represented by
the simple Mission class. The
Mission class represents only flights
following a great circle route between origin and destination airports. It
cannot represent “as-flown” trajectories from ADS-B data or other sources.
- class AEIC.missions.Mission(origin, destination, departure, arrival, aircraft_type, load_factor, carrier=None, flight_number=None, origin_country=None, destination_country=None, service_type=None, engine_type=None, seat_capacity=None, flight_id=None)
Represents a single flight mission, with all relevant information for emissions calculation.
There are a set of required fields (origin, destination, departure, arrival, load factor, and aircraft type) and a set of optional fields (carrier, flight number, origin and destination country, service type, engine type, seat capacity, and flight ID). The optional fields may be None if not available, but are usually filled from fields in the OAG database.
- Parameters:
origin (str)
destination (str)
departure (Timestamp)
arrival (Timestamp)
aircraft_type (str)
load_factor (float)
carrier (str | None)
flight_number (str | None)
origin_country (str | None)
destination_country (str | None)
service_type (str | None)
engine_type (str | None)
seat_capacity (int | None)
flight_id (int | None)
- aircraft_type: str
Aircraft type (ICAO code).
- arrival: Timestamp
Arrival time (UTC).
- carrier: str | None = None
Airline (IATA code).
- departure: Timestamp
Departure time (UTC).
- destination: str
IATA code of destination airport.
- destination_country: str | None = None
Destination country (ISO 3166-1 alpha-2 code).
- engine_type: str | None = None
Engine type, or None if not known.
- flight_id: int | None = None
Unique flight ID from mission database (if available).
- flight_number: str | None = None
Flight number.
- classmethod from_toml(data)
Create a list of Mission instances from a TOML-like dictionary.
This is used for parsing sample mission data.
- Parameters:
data (dict)
- Return type:
list[Mission]
- property gc_distance: float
Great circle distance between departure and arrival positions (m).
- property label: str
Label for mission, based on origin, destination, and aircraft type.
- load_factor: float
Load factor (between 0 and 1).
- origin: str
IATA code of origin airport.
- origin_country: str | None = None
Origin country (ISO 3166-1 alpha-2 code).
- seat_capacity: int | None = None
Seat capacity.