Glitches plotting Satellite Track


I’m trying to plot the location a satellite along with it’s orbit track. My points seem OK to me, but the track either will not plot or plots with bizarre artifacts.

Attached is an extract of some code that I was able to copy to sandcastle to reproduce the issue. The track is clearly wrong, but is it my bug or Cesium’s?

I will add depending on what satellite I propagate, sometimes the line just doesn’t plot at all. Changing lead and trail times can also cause the track to simply not plot.

Thanks to all


GlobeDemo.js (22.2 KB)


IMO, your coordinates array returned via ‘getECIArray()’ is really all over the map (literally) and what you see in the screenshot looks right with altitudes jumping from negative to positive and back again.

For example:

"25200.0 150399.77011114455 -4080227.09406095 5864976.183589064",
“25800.0 -840846.8670893774 -6672875.823883946 2438271.5782504184”,

“26400.0 -1513188.6816941067 -6734222.048108196 -1916105.753787065”,

I’m no orbital track expert but to me that looks kind of wild. :slight_smile:

  • Chris

In order to keep the sample code short, I selected at 10 minute steps, but I see identical results using 1 minute steps. If you look at the actual distance traveled between two samples, and divide by the time step, you’ll see that satellite is moving at a bit over 7300 meters/second. I’m no orbital mechanics expert either, but that seems reasonable for a LEO to me… I also plotted the magnitude of (X, Y, Z) in Excel, and it’s a smooth curve there. (as smooth as you can get with a 10 minute sample rate anyway…)

I think the problem is with parsing your data. Casting the Cartesian3 positions to Numbers should fix it =)

var position = new Cesium.Cartesian3(Number(curr[1]), Number(curr[2]), Number(curr[3]));




That did the trick!

Thanks, Hannah

  • Joe