WithNetCDF

Trait WithNetCDF 

Source
pub trait WithNetCDF: Sized {
    // Required methods
    fn write_nc(&self, file_path: &str) -> Result<(), Box<dyn Error>>;
    fn read_nc(file_path: &str) -> Result<Self, Box<dyn Error>>;
    fn read_nc_by_header(
        file_path: &str,
        header: Vec<&str>,
    ) -> Result<Self, Box<dyn Error>>;
}
Expand description

To handle with NetCDF file format

Required Methods§

Source

fn write_nc(&self, file_path: &str) -> Result<(), Box<dyn Error>>

Source

fn read_nc(file_path: &str) -> Result<Self, Box<dyn Error>>

Source

fn read_nc_by_header( file_path: &str, header: Vec<&str>, ) -> Result<Self, Box<dyn Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl WithNetCDF for DataFrame

Available on crate feature nc only.