def dv(self, new_dv=None):
    '\n        Gets or sets dimension variance of each dimension of variable.\n\n        If the variance is unknown, True is assumed\n        (this replicates the apparent behavior of the\n        CDF library on variable creation).\n\n        Parameters\n        ==========\n        new_dv : list of boolean\n            Each element True to change that dimension to dimension\n            variance, False to change to not dimension variance.\n            (Unspecified to simply check variance.)\n\n        Returns\n        =======\n        out : list of boolean\n            True if that dimension has variance, else false.\n        '
    ndims = self._n_dims()
    if (new_dv != None):
        if (len(new_dv) != ndims):
            raise ValueError((('Must specify variance for ' + str(ndims)) + 'dimensions.'))
        varies = (ctypes.c_long * ndims)(*[(const.VARY if dv else const.NOVARY) for dv in new_dv])
        self._call(const.PUT_, const.zVAR_DIMVARYS_, varies)
    if (ndims == 0):
        return []
    varies = (ctypes.c_long * const.CDF_MAX_DIMS)()
    self._call(const.GET_, const.zVAR_DIMVARYS_, varies)
    return [(dv != const.NOVARY.value) for dv in varies[0:ndims]]
Gets or sets dimension variance of each dimension of variable.

If the variance is unknown, True is assumed
(this replicates the apparent behavior of the
CDF library on variable creation).

Parameters
==========
new_dv : list of boolean
    Each element True to change that dimension to dimension
    variance, False to change to not dimension variance.
    (Unspecified to simply check variance.)

Returns
=======
out : list of boolean
    True if that dimension has variance, else false.
def dv(self, new_dv=None):
    '\n        Gets or sets dimension variance of each dimension of variable.\n\n        If the variance is unknown, True is assumed\n        (this replicates the apparent behavior of the\n        CDF library on variable creation).\n\n        Parameters\n        ==========\n        new_dv : list of boolean\n            Each element True to change that dimension to dimension\n            variance, False to change to not dimension variance.\n            (Unspecified to simply check variance.)\n\n        Returns\n        =======\n        out : list of boolean\n            True if that dimension has variance, else false.\n        '
    ndims = self._n_dims()
    if (new_dv != None):
        if (len(new_dv) != ndims):
            raise ValueError((('Must specify variance for ' + str(ndims)) + 'dimensions.'))
        varies = (ctypes.c_long * ndims)(*[(const.VARY if dv else const.NOVARY) for dv in new_dv])
        self._call(const.PUT_, const.zVAR_DIMVARYS_, varies)
    if (ndims == 0):
        return []
    varies = (ctypes.c_long * const.CDF_MAX_DIMS)()
    self._call(const.GET_, const.zVAR_DIMVARYS_, varies)
    return [(dv != const.NOVARY.value) for dv in varies[0:ndims]]