plot different trajectories with different time steps

Hello,I would like to plot air parcel trajectories. My output data are: in the first column the steps, in the 2nd and 3rd column the geographic coordinates. To the first airparcel belongs 4 steps (1..4), to the second one 3 (1..3) to the 3rd one 3 (1..3)..ect...(These steps are after eachother in the same column). I would like to plot the air parcel positions with a marker and connect them, but my problem is that to different air parcels belong different steps. How could I plot separately the first, second, 3rd..ect trajectories? Thanks for any help!

4 件のコメント

dpb
dpb 2014 年 8 月 12 日
How do you know which belongs to which, first? Once you have that, shouldn't be hard to segregate by the indicator, but have to have some way to know "who's who in the zoo"...
Michael
Michael 2014 年 8 月 13 日
so I'm guessing you have data like this:
0 lat lon 1 lat lon 2 lat lon 0 lat lon
and then you need to seperate it so that you can plot each trajectory (e.g. from 0-2) and then start again from 0 onwards?
So basically the zero is the start of each trajectories?
Michael
Michael 2014 年 8 月 13 日
And you would like to plot these trajectories on top of a map projection?
Barbara
Barbara 2014 年 8 月 13 日
Thx, yes basically they look like this as you mentioned and I need to separate them, I will change that the step instead of 0 starts with 1 and later on put them on a map projection.
So I would say, the positions:
lon(1:k1),lat(1:k1)
lon(1+k1:k1+k2),lat(k1+1:k1+k2)
lon(k1+k2+1:k1+k2+k3),lat()
ect
where k is the length of each trajectory, in the case of 1 2 3 is k=3, I have a separate column for k as well, so generally I would write:
for i=1....n lon[(sum(k(1:i))+1):(sum(k(1:(i+1))],lat(same)
and I have to put in the k column to the first place a 0.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGeographic Plots についてさらに検索

タグ

質問済み:

2014 年 8 月 12 日

コメント済み:

2014 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by