A pure Julia implementation for reading Common Data Format (CDF) files, widely used in space physics for storing multidimensional data arrays and metadata. See CDFDatasets.jl for high-level interfaces.
using Pkg; Pkg.add("CommonDataFormat")
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"]- 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
- 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.