irfpy.ica.spice_class

Description:

A wrapper class handling Rosetta SPICE ancillary data. RPC-ICA specific.

To create one object:

SPICESet = ICASPICEData(dates, additionnalPath='/<bli>/<bla>/ICAPy/')       ## (Absolute) path to the ICAPy directory.

SPICESet.initTimeDt('20141128' ,'20141204' , N=1000)        ## Initialize time from date 1 to date 2 with 1000 points.

OR:

SPICESet.timeDt = ICADataSet.timeDtScan     ## Synchronizes the SPICE data with ICA data (here FOVs).

Arguments:

additionnalPath (default ’’) Where SPICE related files can be found (metakernel, kernels themselves, 3D nucleus shape optionally, etc) metakernelFile (default ‘ros_kernels_3dtool.txt’) The name of the metakernel file (not the path).

Dependencies:

irfpy.ica.modules irfpy.ica.tools SpiceyPy

class irfpy.ica.spice_class.SPICEClass(additionnalPath=None, metakernelFile='ros_kernels_3dtool.txt')[source]

Bases: object

unloadAll()[source]

Unload all kernels.

reloadMetaKernel()[source]

Re-load the modified metakernel. Test for performance.

initTimeDt(t1, t2, N=100)[source]

Initialize ICASPICEData.timeDt with t1: ‘yyyymmdd’ , t2: ‘yyyymmdd’ , N: number of points.

initEphemChuJ2000()[source]

Initialize ephemeris in J2000 centered on 67P, according to ICASPICEData.timeDt .

initEphemSunJ2000()[source]

Initialize ephemeris in J2000 centered on the Sun, according to ICASPICEData.timeDt .

initEphemCSO()[source]

Initialize ephemeris in CSO centered on 67P, according to ICASPICEData.timeDt .

initEphemCSEQ()[source]

Initialize ephemeris in CSEQ centered on 67P, according to ICASPICEData.timeDt.

initEphemCK()[source]

Initialize ephemeris in 67P/C-G_CK centered on 67P, according to ICASPICEData.timeDt.

initRotateCSEQ()[source]

Initialize rotation matrices, according to ICASPICEData.timeDt: ‘ROS_RPC_ICA’ <-> ‘67P/C-G_CSEQ’ ‘ROS_SPACECRAFT’ <-> ‘67P/C-G_CSEQ’ ‘ROS_SPACECRAFT’ -> ‘ROS_SA-Y’

initRotateCK()[source]

Initialize rotation matrices, according to ICASPICEData.timeDt: ‘ROS_RPC_ICA’ <-> ‘67P/C-G_CK’ ‘ROS_SPACECRAFT’ -> ‘ROS_SA-Y’

initSunCometDirection()[source]

Initialize direction of the Sun and the nucleus in ICA reference frame, according to ICASPICEData.timeDt.

changeFrame_ICA_to_CSEQ(v)[source]

Rotate vector v from ICA frame to CSEQ frame. v.shape = 3 x n

vec2ang(v)[source]

From a vector or an array of vector to (azim,elev) angles. v.shape = 3xN

dtToET(t)[source]
ordinalToET(t)[source]