function [flight_data]=flight_level_data(path1,filename)

[time, lati, longi, ws, wd, rad_alt]=textread([path1,filename],'%f %f %f %f %f %f', 'headerlines',4);
u_0 = find(rad_alt ~=0);

flight_data = [time lati -longi ws wd rad_alt];

type_leg=filename(15:16);

if strcmp(type_leg,'in')==1
    
    flight_data = flipud(flight_data);
end
    