netcdf-reader 0.8.0

Pure-Rust NetCDF-3 classic and NetCDF-4 (HDF5-backed) file reader
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! NetCDF data model re-exported from `netcdf-core`.

pub use netcdf_core::{
    NcAttrValue, NcAttribute, NcCompoundField, NcDimension, NcEnumMember, NcFormat, NcGroup,
    NcIntegerValue, NcMetadataMode, NcSliceInfo, NcSliceInfoElem, NcType, NcVariable,
};

pub(crate) fn checked_usize_from_u64(value: u64, context: &str) -> crate::Result<usize> {
    netcdf_core::checked_usize_from_u64(value, context).map_err(Into::into)
}

pub(crate) fn checked_mul_u64(lhs: u64, rhs: u64, context: &str) -> crate::Result<u64> {
    netcdf_core::checked_mul_u64(lhs, rhs, context).map_err(Into::into)
}

pub(crate) fn checked_shape_elements(shape: &[u64], context: &str) -> crate::Result<u64> {
    netcdf_core::checked_shape_elements(shape, context).map_err(Into::into)
}