Isis 3.0 Application Source Code Reference |
Home |
Container for SPICE kernel creation. More...
#include <SpiceKernel.h>
Public Member Functions | |
SpiceKernel () | |
virtual | ~SpiceKernel () |
int | size () const |
Returns the number of segments. | |
const SpiceSegment & | operator[] (const int i) const |
void | add (const std::string &fname) |
void | add (Cube &cube) |
std::string | getSummary (const std::string &commfile="") const |
void | write (const std::string &kname, const std::string &commfile="", const int ckType=3) const |
Container for SPICE kernel creation.
This class serves as a container for ISIS cube files to prep for writing the contents to a NAIF SPICE kernel. Each file added is a CK segment. When the ISIS cube is added, the contents of the Table BLOB (InstrumentRotation for CKs, InstrumentPosition for SPKs) are read and transformed to the appropriate state intended to be compatible with kernels issued by each mission source.
It is designed for ease of use. Here is an example to create the most basic of CK kernel from a single ISIS file:
SpiceKernel kernel; kernel.add("mycube.cub"); kernel.write("mycube.ck"); // Writes a type 3 CK kernel by default
Note that processing ISIS cubes is expensive in terms of NAIF kernel management. Lots of NAIF kernel activity is incurred in resolving all the necessary requirements to get the SPICE data in a form that satisfies NAIF kernel specifications.
Definition at line 68 of file SpiceKernel.h.
SpiceKernel | ( | ) |
Definition at line 49 of file SpiceKernel.cpp.
virtual ~SpiceKernel | ( | ) | [inline, virtual] |
Definition at line 71 of file SpiceKernel.h.
int size | ( | ) | const [inline] |
Returns the number of segments.
Definition at line 74 of file SpiceKernel.h.
const SpiceSegment & operator[] | ( | const int | i | ) | const |
Definition at line 64 of file SpiceKernel.cpp.
void add | ( | const std::string & | fname | ) |
Definition at line 53 of file SpiceKernel.cpp.
void add | ( | Cube & | cube | ) |
Definition at line 60 of file SpiceKernel.cpp.
std::string getSummary | ( | const std::string & | commfile = "" |
) | const |
Definition at line 73 of file SpiceKernel.cpp.
void write | ( | const std::string & | kname, | |
const std::string & | commfile = "" , |
|||
const int | ckType = 3 | |||
) | const |
Definition at line 91 of file SpiceKernel.cpp.