A Julia package for reading Common Data Format (CDF) files, widely used in space physics for storing multidimensional data arrays and metadata. See CDFDatasets.jl for a high-level interface.
Installation: at the Julia REPL, run using Pkg; Pkg.add("CommonDataFormat")
- Pure Julia implementation - No external dependencies on CDF libraries
- Efficient data access - Memory-mapped access for data and attributes, super fast decompression using
LibDeflate - DiskArrays.jl integration - Lazy representation of data on hard disk with AbstractDiskArray interface
using CommonDataFormat
# Load a CDF file
cdf = CDFDataset("data.cdf")
# Access basic information
println("CDF version: ", cdf.version)
println("Data majority: ", cdf.majority)
println("Compression: ", cdf.compression)
# List all variables
println("Variables: ", keys(cdf))
# Access a variable
var = cdf["temperature"]- CDFpp: A modern C++ header only cdf library with Python bindings
- cdflib: A python module for reading and writing NASA's Common Data Format (cdf) files
See CDF reader benchmarks for comparison with other CDF readers.