How to set up The direction of the sensor in czml file ?

“position”:{

“reference”:“Satellite/Geoeye1#position”

},

“orientation”:{

“interpolationAlgorithm”:“LAGRANGE”,

“interpolationDegree”:1,

“epoch”:“2012-03-15T10:00:00Z”,

“unitQuaternion”:[

0,0.45652188368372576,-0.049580035995243577,-0.8819344359461565,0.10640131785324795,

300,0.309688526062018,-0.0592870464529779,-0.945283886004075,0.0837641797515638,

600,0.15524757622990795,-0.06613430791377527,-0.9841132393764626,0.05518673278488507,

900,-0.00292111994175703,-0.0708577012756388,-0.997213694292164,0.0231408976574577,

1200,-0.16092541190488696,-0.07366221105872979,-0.9841684849777448,-0.009449002158555368,

1500,-0.314913668750939,-0.0741332480934805,-0.945389362086838,-0.0396559808096601,

``

I want to know how this **orientation **value is calculated?

In general, “orientation” is a rotation that takes a vector expressed in the “body” axes of the object and transforms it to the Earth fixed axes. See https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Orientation

In CZML, orientation is expressed as a unit quaternion representing that rotation. https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation

In your specific example that you have pasted, taken from simple.czml, the orientation values were calculated by propagating a satellite TLE with one of AGI’s commercial products, STK or STK Components (both can easily produce CZML).