pub struct Packing {
pub scale_factor: f64,
pub add_offset: f64,
pub missing: Vec<f64>,
pub valid_min: Option<f64>,
pub valid_max: Option<f64>,
}Expand description
How a variable’s stored values map to physical ones: Variable::packing. Every bound is in
the stored (packed) values’ domain, as the netCDF Users Guide’s attribute conventions ask.
Fields§
§scale_factor: f64scale_factor, 1 if absent.
add_offset: f64add_offset, 0 if absent.
missing: Vec<f64>Stored values that mean “missing”: the fill value (_FillValue, or the type’s default
unless the type is byte) and every missing_value.
valid_min: Option<f64>The least valid stored value: valid_min, the first of valid_range, or, with neither
bound given, just above a fill that is not positive.
valid_max: Option<f64>The greatest valid stored value: valid_max, the second of valid_range, or, with
neither bound given, just below a positive fill.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Packing
impl<'de> Deserialize<'de> for Packing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Packing
Auto Trait Implementations§
impl Freeze for Packing
impl RefUnwindSafe for Packing
impl Send for Packing
impl Sync for Packing
impl Unpin for Packing
impl UnsafeUnpin for Packing
impl UnwindSafe for Packing
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