Package uk.ac.bristol.star.cdf
Pure java library for read-only access to CDF (NASA Common Data Format)
files.
For low-level access to the record data of a CDF file, use the
CdfReader
class.
For high-level access to the variables and attributes that form
the CDF data and metadata, use the
CdfContent
class.
The package makes extensive use of NIO buffers for mapped read-on-demand data access, so should be fairly efficient for reading scalar records and whole raw array records. Convenience methods for reading shaped arrays may be less efficient.
This package is less capable than the official JNI-based java interface to the CDF C library (read only, less flexible data read capabilities), but it is pure java (no native code required) and it's also quite a bit less complicated to use.
-
Class Summary Class Description AttributeEntry Represents an entry in a global or variable attribute.CdfContent Provides all the data and metadata in a CDF file in a high-level read-only easy to use form.CdfInfo Encapsulates some global information about a CDF file.CdfReader Examines a CDF file and provides methods to access its records.DataType Enumerates the data types supported by the CDF format.EpochFormatter Does string formatting of epoch values in various representations.GlobalAttribute Provides the description and entry values for CDF attribute with global scope.Shaper Takes care of turning raw variable record values into shaped record values.TtScaler Handles conversions between TT_TIME2000 (TT since J2000.0) and Unix (UTC since 1970-01-01) times.Variable Provides the metadata and record data for a CDF variable.VariableAttribute Provides the description and per-variable entry values for a CDF attribute with variable scope. -
Exception Summary Exception Description CdfFormatException Exception thrown during CDF parsing when the data stream appears either to be in contravention of the CDF format, or uses some feature of the CDF format which is unsupported by the current implementation.