[英]time series plot on google earth using matlab
I have three sets of data: 我有三组数据:
I would like to plot this on google earth using google earth toolbox for matlab, what i need is when i move the time slider a line should be drawn on google earth. 我想使用Matlab的Google Earth工具箱在Google Earth上绘制此图形,我需要的是当我移动时间滑块时应在Google Earth上绘制一条线。
I tried this 我试过了
x = [longitude, latitude];
y = time;
kmlStr = ge_plot(x,y);
But an error occured. 但是发生了错误。 On the other hand ge_gplot does not make sense for this. 另一方面,ge_gplot对此没有任何意义。
Is there a way i can do this timeseries plot using google earth toolbox? 有什么办法可以使用Google Earth工具箱来绘制此时间序列图吗?
Create two vectors: one for x (longitude), one for y (latitude). 创建两个向量:一个用于x(经度),一个用于y(纬度)。 ge_plot(x,y)
will draw a line connecting each pair of (x,y)
points in these vectors. ge_plot(x,y)
将绘制一条线连接这些向量中的每对(x,y)
点。
If you want to draw the line as a slider advances, then you need to make use of a callback function. 如果要随着滑块的前进绘制线条,则需要使用回调函数。 In this function, do ge_plot(x(1:ind), y(1:ind) )
where ind
is determined by the "time" value of the slider. 在此函数中,执行ge_plot(x(1:ind), y(1:ind) )
,其中ind
由滑块的“时间”值确定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.