Flight data plot on map

34 ビュー (過去 30 日間)
Anoop
Anoop 2015 年 8 月 2 日
コメント済み: Marius Marinescu 2020 年 7 月 22 日
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.
Lonngitude,Latitude,Altitude
78.71498106,10.76488498,188
78.71498106,10.76488498,188
78.71498106,10.76488498,188
I tried geoshow and kmlwrite. But i am getting error. Please assist and thanks in advance.
Regards Anoop
  1 件のコメント
Star Strider
Star Strider 2015 年 8 月 2 日
Use an aviation sectional chart for your map reference.

サインインしてコメントする。

回答 (2 件)

Brian Hannan
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?
  2 件のコメント
Anoop
Anoop 2015 年 8 月 3 日
Hi Brian, I do not have an image. I would like to plot these points on the generic map available in matlab. I am attaching my data file and the kml file i generated to view the same on google earth. Take a look.
Marius Marinescu
Marius Marinescu 2020 年 7 月 22 日
Actually I have the same question, but as you said, also I have an image that I want to plot the data over. My question is in this post:
Any help is strongly appreciated.

サインインしてコメントする。


Amy Haskins
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')
traj =
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.
geoshow(traj.lat,traj.lon,'DisplayType','line')
WMLINE also expects 2D inputs but gives you more context with several background maps to choose from.
wmline(traj.lat,traj.lon)
KMLWRITELINE accepts 3D inputs
kmlwriteline('traj.kml',traj.lat,traj.lon,traj.alt)
To view in 3D from MATLAB, you can use PLOT3M
% Set up the map axes
figure
axesm('globe','geoid',wgs84Ellipsoid)
% Use topo data to create a background
load topo
meshm(topo, topolegend, size(topo));
demcmap(topo);
% Plot your track
plot3m(traj.lat,traj.lon,traj.alt,'r-')
  1 件のコメント
Youssef Wehbe
Youssef Wehbe 2020 年 4 月 1 日
Hi Amy - I have an aircraft dataset and would like to plot a 3D flight track (lat,lon,elev) and color the markers according to a depth (dust concentration in my case). Any help is greatly appreciated!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by