[Spice_discussion] Python Interface

Darrin Chandler dwc at ser.asu.edu
Wed Feb 3 15:33:06 PST 2010

On Wed, Feb 03, 2010 at 02:27:14PM -0800, Roberto Aguilar wrote:
> On Feb 3, 2010, at 1:28 PM, Darrin Chandler wrote:
> > Has anyone thought more about this, or heard back from NAIF on further
> > Python news?
> Hi Darrin,
> I had some communication back in December with SPICE's project lead.  There is an effort to get official Python bindings for SPICE, but currently the effort is running into budget/resource/time constraints, which may delay the official release.
> A couple years ago I wrote a wrapper that crawls through the SPICE C implementation and creates a python module out of it.  I've been using the wrapped functions successfully in some code being used at JPL, but it has not received any testing out in "the wild."  Additionally, it doesn't wrap all functions due to one reason or another.  These functions are outlined within the wrapper code itself.
> Finally, the wrapper code is not pretty.  There were quite a few hurdles I ran into while writing it and the wrapper would likely benefit from a rewrite, but it has served my purposes so, "if it ain't broke ..."
> Anyway, the reason I bring up this code is that, I have asked for and have received a nod to share this code.  To make it easy for people to get the code and contribute changes, I'm hosting the project on Github:
> http://github.com/rca/PySPICE
> Thanks for reminding me, getting the public repo up and running had fallen off my radar.  ;)  Hope it helps and fits your needs; let me know.
> -Roberto.


I haven't tried it yet but I'm looking at it now. I like that you've
separated input and output and return tuples. That makes life nicer.

Thanks a lot!


Darrin Chandler                        dwc at ser.asu.edu
Software Developer                     480.326.9517
Lunar Reconnaisance Orbiter Camera

More information about the Spice_discussion mailing list