A data object for the netcdf module.
netcdf_variable objects are constructed by calling the method netcdf_file.createVariable on the netcdf_file object. netcdf_variable objects behave much like array objects defined in numpy, except that their data resides in a file. Data is read by indexing and written by assigning to an indexed subset; the entire array can be accessed by the index [:] or (for scalars) by using the methods getValue and assignValue. netcdf_variable objects also have attribute shape with the same meaning as for arrays, but the shape cannot be modified. There is another read-only attribute dimensions, whose value is the tuple of dimension names.
All other attributes correspond to variable attributes defined in the NetCDF file. Variable attributes are created by assigning to an attribute of the netcdf_variable object.
data : array_like
typecode : dtype character code
size : int
shape : sequence of ints
dimensions : sequence of strings
attributes : dict, optional
|dimensions||list of str||List of names of dimensions used by the variable object.|
|assignValue(value)||Assign a scalar value to a netcdf_variable of length one.|
|getValue()||Retrieve a scalar value from a netcdf_variable of length one.|
|itemsize()||Return the itemsize of the variable.|
|typecode()||Return the typecode of the variable.|