NetCDF::Variable
Inherits Reference / Object
Constructors
new(parent_id : Int32, id : Int32)
SourceInstance methods
add_attribute(name, type_str, value)
Sourceattributes
Sourceid
Sourceid=(id : Int32)
Sourcename
Sourcename=(name : String)
Sourcendims
Sourcendims=(ndims : Int32)
Sourceparent_id
Sourceparent_id=(parent_id : Int32)
Sourceread_slice(*args)
Reads and returns an array of values (cf. "Specify a Hyperslab")
at positions and sizes given for each dimension, readSlice(pos1, size1, pos2, size2, ...)
e.g. readSlice(2, 3, 4, 2) gives an array of the values at position 2 for 3 steps along the
first dimension and position 4 for 2 steps along the second one.
var_type
Sourcevar_type=(var_type : Int32)
Sourcewrite(*args)
Write a value at positions given
write(2, 3, "a") writes "a" at position 2 along the first dimension and position 3 along the second one
write_slice(*args)
Write values from an array (array must be of same type) at positions and sizes given for each dimension
writeSlice(2, 3, 4, 2, [0, 1, 2, 3, 4, 5]) writes the array at position 2 for 3 steps along the first dimension and position 4 for 2 step along the second one