This library is designed to access the binary planetary ephemeris files, such INPOPxx, JPL DExxx and SPICE ephemeris files.
This library provides a C Application Programming Interface (API) and, optionally, Fortran 77/2003, Python 2/3 and octave/Matlab interfaces to be called by the application


This software is an open-source product distributed under three distinct licenses giving you the choice of one of the three following sets of free software/open source licensing terms. This allows the use of our code in as wide a variety of software projects as possible.
This software is governed by the CECILL-C, CECILL-B or CECILL version 2.1 license under French law and abiding by the rules of distribution of free software. You can use, modify and/or redistribute the software under the terms of the CeCILL-C, CeCILL-B or CeCILL license as circulated by CEA, CNRS and INRIA at the following URL


Latest stable version

  • Version 3.4.0 (August 2019)
    Sources calceph-3.4.0.tar.gz
    Packages PyPI version Homebrew version
    Octave package calcephoct-3.4.0.tar.gz
    • Add the function calceph_isthreadsafe.
    • Multiple threads can now access the same ephemeris descriptor if the function calceph_isthreadsafe returns 1. Fortran and C examples (f2003parallel.f, cparallel.c), written using OpenMP, are available in the folder examples.
    • Fix an error if multiple SPICE kernels are loaded for the same objects over different time-span.
    • Fix the MinGW Makefiles if the variable MAKE contains spaces.
    • Support the segment 5 and 18 in the SPICE kernel file.
    • Support the euler angles for the orientation stored in a text PCK files (BODY..._POLE_RA, BODY..._POLE_DE, BODY..._POLE_PM, BODY..._NUT_PREC_...).
    • Support the frame 17 (ECLIPJ2000) in the SPICE kernel file.
    • Add the utilities calceph_queryposition and calceph_queryorientation.
  • Previous releases


C interface html pdf

Fortran 77 interface html pdf

Fortran 2003 interface html pdf

Python interface html pdf

Octave/Matlab interface html pdf


The installation steps for various operating system are described in the following links.

Other interfaces

The following interfaces for CALCEPH are available :


The library is written by the research team Astronomie et Systèmes Dynamiques (CNRS - Observatoire de Paris - IMCCE).
For all comments concerning these pages, contact the authors :

Last update Thursday 07 November 2019