class

NetCDF::Variable

Inherits Reference / Object

Constructors

new(parent_id : Int32, id : Int32)
Source

Instance methods

add_attribute(name, type_str, value)
Source
attributes
Source
checksum_mode

Checksum mode: "none" or "fletcher32"

Source
chunk_mode

Chunk mode: "contiguous", or "chunked"

Source
chunk_sizes

Array of chunk sizes, one size per dimension

Source
compression_deflate

Boolean switch for compression

Source
compression_level

Compression level (1-9)

Source
compression_shuffle

Boolean switch for shuffle

Source
endianness

Endianness: "little", "big", or "native"

Source
fill_mode

Boolean switch for fill mode

Source
fill_value

Fill value

Source
id=(id : Int32)
Source
name
Source
name=(name : String)
Source
ndims
Source
ndims=(ndims : Int32)
Source
parent_id
Source
parent_id=(parent_id : Int32)
Source
read(*args)

Reads and returns a single value at positions given as for write

Source
read_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.

Source
var_type
Source
var_type=(var_type : Int32)
Source
write(*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

Source
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

Source