I have an application where I’m propagating several satellites using the satellite.js library. The satellite orbits seem to be good and I can generate paths for all satellites except for GEO satellites.
This is how my entity looks:
let entity = this.viewer.entities.add({
position: undefined,
point: {
pixelSize: 4,
color: Cesium.Color.YELLOW
},
path: {
width: 1,
material: Cesium.Color.YELLOW,
trailTime: 1,
leadTime: 1000,
show: true
},
})
Then I loop through some time steps and propagate the path of the satellite (using satellite.js and satellite TLEs) for x amount of time in front of the satellite so I can show the path.
let positionAndVelocity = satellitejs.propagate(satRec, nextStepDate);
const gmst = satellitejs.gstime(nextStepDate);
const position = satellitejs.eciToGeodetic(positionAndVelocity.position, gmst);
let debrisPos = Cesium.Cartesian3.fromRadians(position.longitude, position.latitude, position.height * 1000);
entity.position.addSample(nextStepJulianDate, debrisPos);
It seems like this happens for the GEO satellites specifically because the satellites are not actually moving across the earth (or very little), and are basically above the same spot all the time.
How can I get orbit paths to show for all of my satellites?
Here is an example of what my application looks like. The GEO satellite is out to the right that does not have a path