.. warning::

        The following message will be deprecated (2012-10-20).
        The SPICE issues are slightly chaotic due to the
        quick works during the proposal period, so that
        re-organization and refactoring should be made.
        Refer to :ref:`juice-spice-readme`.
        
.. _pep-spice-readme:

PEP dedicated SPICE information (Deprecated 121022)
===================================================

Data file (kernel file) should be downloaded manually, and
saved into any local disk.  One can specify the
location of the file manually calling :mod:`spice.furnsh`.
They are not in the git repository because some of them
are too big to save into repository.


Kernel locations
----------------

The data comes from
ftp://naif.jpl.nasa.gov/pub/naif/generic_kernels
otherwise mentioned.

lsk
+++
LSK of ``naif0009.tls`` is needed.

spk
+++
SPK of ``de421.bsp`` may be needed for Jupiter relative to the Sun and the Earth.

SPK of ``jup230l.bsp`` may be needed for Jovian moons relative to the Jupiter.

pck
+++
PCK of ``pck00010.tpc`` may be needed.

For axis transformation??  (Probably FK is also needed but will see.)

.. _pep_spice_private_kernel:

Private kernel
++++++++++++++

In addition to the above kernels, private spice kernel is added.
So far, I made JSE frame definition (as same definition as GSE) in
``spice/jse_111130.tf``.

This kernel is, under the version of v0.1beta on 111130,
automatically added without specifying in the pyanarc
setting file by :func:`pyana.pep.pep_spice.get_default_pepspice`.
In the future, official definition of JSE frame (or equivalent)
will be provided from mission team.
In such a case, we should remove this functionality from the module.



More sophisticated way
----------------------

Using :mod:`pyana.pep.pep_spice` module, you may load all the needed kernels
from ``.pyanarc`` file.  Refer to the module description :mod:`pyana.pep.pep_spice`.