pub struct NetCDF { /* private fields */ }Expand description
A netCDF file, open for either writing or reading.
Written files use classic CDF-5 (“64-bit data”). On read, CDF-1, CDF-2 and
CDF-5 are parsed directly, and netCDF-4 (HDF5) files are read through a
built-in reader covering the subset an Exodus mesh uses. Only fixed-size
variables of i32 / f32 / f64 are supported.
Implementations§
Source§impl NetCDF
impl NetCDF
pub fn close(&mut self)
pub fn create(path: &str) -> Result<Self, NulError>
Sourcepub fn create_netcdf4(path: &str, threads: usize) -> Result<Self, NulError>
pub fn create_netcdf4(path: &str, threads: usize) -> Result<Self, NulError>
Create a netCDF-4 (HDF5) file. threads bounds the pool used to compress
chunks in parallel; 0 or 1 compresses serially.
pub fn open(path: &str) -> Result<Self, NulError>
pub fn dimension_length(&self, name: &str) -> Result<usize, NulError>
pub fn try_dimension_length( &self, name: &str, ) -> Result<Option<usize>, NulError>
pub fn get_variable_attribute_text( &self, variable: &str, attr_name: &str, ) -> Result<String, NulError>
pub fn define_dimension( &mut self, name: &str, len: usize, ) -> Result<(), NulError>
pub fn end_definition(&mut self)
pub fn global(&mut self)
pub fn put_variable_attribute_text( &mut self, variable: &str, attr_name: &str, value: &str, ) -> Result<(), NulError>
Trait Implementations§
Source§impl DefineVariable for NetCDF
impl DefineVariable for NetCDF
Source§impl GetVariable for NetCDF
impl GetVariable for NetCDF
Source§impl PutVariable for NetCDF
impl PutVariable for NetCDF
Auto Trait Implementations§
impl Freeze for NetCDF
impl RefUnwindSafe for NetCDF
impl Send for NetCDF
impl Sync for NetCDF
impl Unpin for NetCDF
impl UnsafeUnpin for NetCDF
impl UnwindSafe for NetCDF
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more