You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Julia package for reading Common Data Format (CDF) files, widely used in space physics and other scientific domains for storing multidimensional data arrays and metadata.
8
+
9
+
## Features
10
+
11
+
-**Pure Julia implementation** - No external dependencies on CDF libraries
12
+
-**Efficient data access** - Lazy loading and direct variable indexing
13
+
14
+
## Installation
15
+
16
+
```julia
17
+
using Pkg
18
+
Pkg.add("CommonDataFormat")
19
+
```
20
+
21
+
## Quick Start
22
+
23
+
```julia
24
+
using CommonDataFormat
25
+
26
+
# Load a CDF file
27
+
cdf = CDFDataset("data.cdf")
28
+
29
+
# Access basic information
30
+
println("CDF version: ", cdf.version)
31
+
println("Data majority: ", cdf.majority)
32
+
println("Compression: ", cdf.compression)
33
+
34
+
# List all variables
35
+
println("Variables: ", keys(cdf))
36
+
37
+
# Access a variable
38
+
var = cdf["temperature"]
39
+
println("Variable data: ", var.data)
40
+
println("Data type: ", var.data_type)
41
+
println("Dimensions: ", var.dimensions)
42
+
```
43
+
44
+
## Elsewhere
45
+
46
+
-[CDFpp](https://github.com/SciQLop/CDFpp): A modern C++ header only cdf library with Python bindings
0 commit comments