Registry / other / netcdf

netcdf

JSON →
library0.12.0rscratesunverified

High-level NetCDF bindings for Rust.

# Cargo.toml [dependencies] netcdf = "0.12.0"
INSTALL
IMPORT
SIG · NETCDF
N
netcdf
otherrustv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

File
use netcdf::File;

Opens a NetCDF file and reads a variable's values.

use netcdf::File; let mut file = File::open("data.nc").unwrap(); let var = file.variable("temperature").unwrap(); let values: Vec<f64> = var.values::<f64>(None, None).unwrap(); println!("First value: {}", values[0]);
Debug
Known issues
gotchaRequires the NetCDF C library to be installed.
fix
Install libnetcdf-dev (Linux) or netcdf (macOS) via package manager.
affects: >=0.1.0
Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
netcdf — cargo add netcdf · libregistry