weather#

class airtrafficsim.core.weather.weather.Weather(start_time, end_time, weather_mode, file_name)#

Weather class

Methods

add_aircraft(alt, perf)

Add aircraft to the weather class

del_aircraft(index)

Delete aircraft from the weather class

update(lat, long, alt, perf, global_time)

Update weather data

Weather class constructor

Parameters:
start_timedatetime

Start time of the simulation

end_timedatetime

End time of the simulation

weather_modestr

Weather mode [ISA, ERA5]

file_namestr

File name of the weather data

Methods

add_aircraft(alt, perf)

Add aircraft to the weather class

del_aircraft(index)

Delete aircraft from the weather class

update(lat, long, alt, perf, global_time)

Update weather data

mode#

Weather mode [ISA, ERA5]

start_time#

Start time of the simulation [datetime]

wind_speed#

Wind speed [knots]

wind_direction#

Wind direction [deg]

wind_north#

Wind - North [knots]

wind_east#

Wind - East [knots]

d_T#

Temperature difference compare to ISA [K]

d_p#

Pressure difference compare to ISA [Pa]

T#

Temperature [K]

p#

Pressure [Pa]

rho#

Density [kg/m^3]

add_aircraft(alt, perf: Performance)#

Add aircraft to the weather class

Parameters:
altfloat

Altitude of the aircraft [ft]

perfPerformance

Performance class

del_aircraft(index)#

Delete aircraft from the weather class

Parameters:
indexint

Index of the aircraft

update(lat, long, alt, perf: Performance, global_time)#

Update weather data

Parameters:
latfloat[]

Latitude of the aircraft [deg]

longfloat[]

Longitude of the aircraft [deg]

altfloat[]

Altitude of the aircraft [ft]

perfPerformance

Performance class

global_timefloat

Time since the start of the simulation [seconds]