Skip to main content

netcdf4_decode

Function netcdf4_decode 

Source
pub fn netcdf4_decode(bytes: &[u8]) -> Result<NetCdf, ErrorsJSL>
Expand description

Reads the root group of a NetCDF-4 file into the NetCdf of the classic model: dimensions (the file’s dimension scales), global attributes and variables with their attributes. Types NetCDF-3 lacks (64-bit and unsigned integers, enumerations) are widened to f64; subgroups and user-defined types are not represented (variables in subgroups are listed under the path group/name). An unlimited dimension has length None, and numrecs is its current length.