This project provides a Java frontend for accessing JPL's SPICE (https://naif.jpl.nasa.gov/naif/). The aim is to have both a command line interface and a graphical interface.
The whole project consists of two parts, FORTRAN backend, and a Java CLI and GUI. The FORTRAN end is located in the folder fortran_src and the Java code in java_base.
The FORTRAN backend has routines for accessing the functions of SPICELib’s toolkits and some other routines like N-body problem in astrodynamics and RK89 integrator. The FORTRAN backend can be used independently as well. Docs for that would be coming up soon.
This project requires:
-
gfortran [64bit] (Tested with 5.4.0 20160609)
-
openjdk (Tested with openjdk version "1.8.0_222")
Note: These steps will be automated in upcoming version of the install script.
-
Download this repository. Let's say you store it in /path-to-repo/SPICEReader
-
Download JPL's SPICELIB (FORTRAN) from here: http://naif.jpl.nasa.gov/pub/naif/toolkit//FORTRAN/PC_Linux_gfortran_64bit/packages/toolkit.tar.Z
-
Unzip the downloaded file. Let's say you get a folder like /path-to-SPICE-ZIP/toolkit
-
Run 'makeall.csh'.
-
Copy the file /path-to-SPICE-ZIP/toolkit/lib/spicelib.a to /path-to-repo/SPICEReader/fortran_src/toolkit/lib/
-
-
Download the following Binary kernels from JPL’s website. These are data files that store the ephemerides. Use FTP, to make this process simple.
-
https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de435.bsp
-
All files in the folder https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/satellites/
Skip the folder a_old_version.
-
Move all these downloaded files to /path-to-repo/SPICEReader/fortran_src/eph/
-
Download all the files in this folder from here:
https://naif.jpl.nasa.gov/pub/naif/generic_kernels/lsk/
Move these to /path-to-repo/SPICEReader/fortran_src/gkernels -
Run the script /path-to-repo/SPICEReader/install.sh
The primary program to execute is /path-to-repo/SPICEReader/SPICEReader.sh
To get help, execute
sh SPICEReader.sh --help