- pyswice_ck_utilities.ckRead(time, SCID=- 62, rf='J2000')¶
Purpose: Read information out of a CK Kernel for a single instance and returns a quaternion array and an angular velocity array
Assumes that SCLK and CK kernels are already loaded using furnsh because pyswice gets mad when loading the same files over and over again.
time – Should be in UTC Gregorian, and passed in as a string, ex: ‘FEB 01,2021 14:00:55.9999 (UTC)’
SCID – Spacecraft ID – Default: -62
rf – is a character string which specifies the, reference frame of the segment. Reference Frame, ex: “J2000”
- pyswice_ck_utilities.ckWrite(handle, time, MRPArray, avArray, startSeg, sc=- 62, rf='J2000')¶
Purpose: Creates a CK kernel from a timeArray, MRPArray, and an avArray. Assumes that the SCLK is furnshed
time stamps for the timeArray, MRPArray, and avArray must line up exactly!!
handle – What you would like the CK file to be named. Note, it must be in double quotes and end in .bc, ex: “moikernel.bc”
time – numpy array of time stamps in nanoseconds
MRPArray – array of modified Rodriguez parameters in column order x, y, z
avArray – array of angular velocities about 3 axis in column order x, y, z
startSeg – the SCLK time that the file begins at in UTC Gregorian ex: ‘FEB 01,2021 12:00:55.9999 (UTC)’
sc – spacecraft ID ex:-62
rf – reference frame ex:”J2000”