Flight data plot on map
조회 수: 31(최근 30일)
Hi, I would like to plot lat, lon, alt data extracted from flight data recorder on a map view. The data is imported as a table from a csv file. Sample shown below.
I tried geoshow and kmlwrite. But i am getting error. Please assist and thanks in advance.
Brian Hannan 2015년 8월 2일
Interesting... can you share your map (I'm assuming you have an image you want to plot these coords on top of?), your code, and the error message?
Amy Haskins 2015년 9월 10일
The easiest way to import your data from the CSV file is to use READTABLE. I created my own Excel file with some shorter names and points that were not all the same.
>> traj = readtable('traj.csv')
lon lat alt
___ ___ ___
78 10 180
79 11 181
80 12 182
81 13 183
82 14 184
The result is a table with column names that match my csv file.
GEOSHOW expects lines to be 2D, so you would have to leave off the altitudes.
WMLINE also expects 2D inputs but gives you more context with several background maps to choose from.
KMLWRITELINE accepts 3D inputs
To view in 3D from MATLAB, you can use PLOT3M
% Set up the map axes
% Use topo data to create a background
meshm(topo, topolegend, size(topo));
% Plot your track