Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.82 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.82 KB

CommonDataFormat.jl

Dev DOI version

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.

Quick Start

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"]

Features

  • 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

Elsewhere

  • 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.

Reference