Class DAF
java.lang.Object
org.orekit.files.spice.binary.daf.generic.DAF
Class representing a generic DAF file, containing file-wide metadata,
optional comments, and multiple
DAFArray.
DAF (Double Precision Array File) is a binary file architecture designed to
store arrays of double precision arrays used by SPICE, NAIF toolkit software library.
The architecture forms the basis of multiple file formats used to store different
data related to astrodynamics, such as SPK, PCK and CK files
(https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/daf.html).
DAF files provide a generic architecture onto which more specific file
formats are implemented. They are organized in records of fixed length (1024 bytes)
containing different information. The first record is called the file record,
and contains global metadata for the file. This is followed by an optional block
comprising any number of comment records. After this, the file consits of sets of
summary records, name records and element records. These are structured as blocks
of 1 summary record (which contains multiple array summaries, providing metadata
about each array), followed by 1 name record (comprising names for the corresponding
arrays whose summaries were in the previous summary record) and finally by as many
element records as required to store the arrays described in the corresponding summary
records. For a detailed description of the DAF architecture, see NAIF documentation
(https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/daf.html).- Since:
- XX.XX
- Author:
- Rafael Ayala
-
Constructor Summary
ConstructorsConstructorDescriptionDAF(DAFFileRecord metadata, String comments, List<DAFArray> arrays) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the arrays contained in the DAF file.Get the comments from the DAF file.Get thefile record, storing global file-wide metadata.
-
Constructor Details
-
DAF
Simple constructor.- Parameters:
metadata- global file-wide metadata for the DAF file contained in the file recordcomments- comments from the DAF file. Not always presentarrays- list ofDAFArray(each comprising an array summary, an array name and array elements)
-
-
Method Details
-
getMetadata
Get thefile record, storing global file-wide metadata.- Returns:
- the
DAFFileRecord
-
getComments
Get the comments from the DAF file.- Returns:
- comments from the DAF file
-
getArrays
Get the arrays contained in the DAF file.- Returns:
- list of
DAFArray
-