theophilusx.netcdf.data
read-scalar
(read-scalar v)Reads a scalar variable. The v argument is a variable map returned from a call to theophilusx.netcdf.variables/variables or `theophilusx.netcdf.variables/variable’. Will throw an exception if the variable is not a scalar variable or the data type of the variable is not recognised.
read-slice
(read-slice v origin size)Read a slice of data from a NetCDF variable. The v argument is a variable map returned from a call to theophilusx.netcdf.variables/variable. The origin argument is a vector of numbers defining the starting index for each dimension in the variable. The size argument is a vector of numbers which specify the number of elements to read in each dimension. The function returns an array map (see theophilusx.netcdf.arrays.)
read-value
(read-value v origin)Returns a specific element from a NetCDF variable. The argument v is a variable map returned from a call to theophilusx.netcdf.variables/variable. The origin argument is a vector of numbers specifying the index within the variable of the element to return. There is a value for each dimension of the variable. The value returned is of the type specified by the :type key in the variable map.