I am using a DSST propagator where I set the max step to every few orbits, which results in sparse orbital data outputs. Unfortunately, only having satellite positional data once every few orbits leads to some interesting orbits in Cesium. In order to visualize this orbit in Cesium accurately so that the Cesium interpolation doesn’t lead to unusual visuals, I decided to try to implement the spacecraft state interpolator to generate more points in between the data from propagation. However, I am having trouble implementing the class. I get the following error,
You can use a step handler (fixed step handler is the simpler to use) to output the orbit at any step you want regardless of the step size used by the integrator. The step handler uses an internal interpolator that is consistent with the integrator.
Concerning the error you get, I wonder if this is not due to the second parameter. I think you provide an array with two points instead of a Collection object (typically a List, but could be a Sorted Set or something in this Collections hierarchy).
Hi Luc, thanks for the response. Unfortunately, the fixed step handler slows down the propagation significantly when I set the step equal to a size needed to get at least 5 points per orbit. Also, I pass in the two states in a list and still get the error.
Hi Romain,
it looks like your suggestion worked for emery. How does one import java.util in Python? Is there a way to pull it from orekit? I see a lot of the bindings import java.util but it does not work in my project files.
In case you can see anything else wrong here is the error I am getting
orekit.InvalidArgsError: (<class ‘org.orekit.propagation.SpacecraftStateInterpolator’>, ‘interpolate’, (<AbsoluteDate: 2020-09-26T00:02:30.000Z>, [<AbsolutePVCoordinates: {2020-09-26T00:00:00.000, P(1.652559571120409E7, 0.0, 0.0), V(0.0, 3475.6096189333257, 3475.4421990711253), A(-1.4595652943682027, -0.0, -0.0)}>, <AbsolutePVCoordinates: {2020-09-26T00:05:00.000, P(1.6459942935164483E7, 1041301.1081352329, 1041250.272546556), V(-437.3934658842116, 3461.80135846158, 3461.62788148283), A(-1.454091183566674, -0.09199137849160177, -0.09203149615249748)}>, …