class NetCDF::Variable

Defined in:

netcdf/types/variable.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(parent_id : Int32, id : Int32) #

[View source]

Instance Method Detail

def add_attribute(name, type_str, value) #

[View source]
def attributes #

[View source]
def checksum_mode #

Checksum mode: "none" or "fletcher32"


[View source]
def chunk_mode #

Chunk mode: "contiguous", or "chunked"


[View source]
def chunk_sizes #

Array of chunk sizes, one size per dimension


[View source]
def compression_deflate #

Boolean switch for compression


[View source]
def compression_level #

Compression level (1-9)


[View source]
def compression_shuffle #

Boolean switch for shuffle


[View source]
def endianness #

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


[View source]
def fill_mode #

Boolean switch for fill mode


[View source]
def fill_value #

Fill value


[View source]
def id : Int32 #

[View source]
def id=(id : Int32) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def ndims : Int32 #

[View source]
def ndims=(ndims : Int32) #

[View source]
def parent_id : Int32 #

[View source]
def parent_id=(parent_id : Int32) #

[View source]
def read(*args) #

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


[View source]
def 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.


[View source]
def var_type : Int32 #

[View source]
def var_type=(var_type : Int32) #

[View source]
def 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


[View source]
def 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


[View source]