def _create(self, var_name, datatype, n_elements=1, dims=(), recVary=const.VARY, dimVarys=None):
    'Creates a new zVariable\n\n        @param var_name: name of this variable\n        @type var_name: string\n        @param datatype: CDF data type\n        @type datatype: ctypes.c_long\n        @param n_elements: number of elements (should be 1 except for\n                           CDF_CHAR variables).\n        @type n_elements: long\n        @param dims: size of each dimension for multi-dimensional variable,\n                     or empty for a zero-dimensional\n        @type dims: sequence of long\n        @param recVary: record variance for this variable (VARY/NOVARY)\n        @type recVary: long\n        @param dimVarys: array of VARY or NOVARY, variance for each dimension\n        @type dimVarys: sequence of long\n        @return: new variable with this name\n        @rtype: :py:class:`pycdf.Var`\n        @raise CDFError: if CDF library reports an error\n        @raise CDFWarning: if CDF library reports a warning and interpreter\n                           is set to error on warnings.\n        @note: Not intended to be used directly; use L{CDF.new}.\n        '
    dim_array = (ctypes.c_long * len(dims))(*dims)
    enc_name = var_name.encode('ascii')
    if (dimVarys is None):
        dim_vary_array = (ctypes.c_long * (len(dims) if (len(dims) > 0) else 1))(const.VARY)
    else:
        dim_vary_array = (ctypes.c_long * len(dims))(*dimVarys)
    varNum = ctypes.c_long(0)
    self.cdf_file._call(const.CREATE_, const.zVAR_, enc_name, datatype, ctypes.c_long(n_elements), ctypes.c_long(len(dims)), dim_array, recVary, dim_vary_array, ctypes.byref(varNum))
    self._name = enc_name
    self.cdf_file.add_to_cache(enc_name, varNum.value)
Creates a new zVariable

@param var_name: name of this variable
@type var_name: string
@param datatype: CDF data type
@type datatype: ctypes.c_long
@param n_elements: number of elements (should be 1 except for
                   CDF_CHAR variables).
@type n_elements: long
@param dims: size of each dimension for multi-dimensional variable,
             or empty for a zero-dimensional
@type dims: sequence of long
@param recVary: record variance for this variable (VARY/NOVARY)
@type recVary: long
@param dimVarys: array of VARY or NOVARY, variance for each dimension
@type dimVarys: sequence of long
@return: new variable with this name
@rtype: :py:class:`pycdf.Var`
@raise CDFError: if CDF library reports an error
@raise CDFWarning: if CDF library reports a warning and interpreter
                   is set to error on warnings.
@note: Not intended to be used directly; use L{CDF.new}.
def _create(self, var_name, datatype, n_elements=1, dims=(), recVary=const.VARY, dimVarys=None):
    'Creates a new zVariable\n\n        @param var_name: name of this variable\n        @type var_name: string\n        @param datatype: CDF data type\n        @type datatype: ctypes.c_long\n        @param n_elements: number of elements (should be 1 except for\n                           CDF_CHAR variables).\n        @type n_elements: long\n        @param dims: size of each dimension for multi-dimensional variable,\n                     or empty for a zero-dimensional\n        @type dims: sequence of long\n        @param recVary: record variance for this variable (VARY/NOVARY)\n        @type recVary: long\n        @param dimVarys: array of VARY or NOVARY, variance for each dimension\n        @type dimVarys: sequence of long\n        @return: new variable with this name\n        @rtype: :py:class:`pycdf.Var`\n        @raise CDFError: if CDF library reports an error\n        @raise CDFWarning: if CDF library reports a warning and interpreter\n                           is set to error on warnings.\n        @note: Not intended to be used directly; use L{CDF.new}.\n        '
    dim_array = (ctypes.c_long * len(dims))(*dims)
    enc_name = var_name.encode('ascii')
    if (dimVarys is None):
        dim_vary_array = (ctypes.c_long * (len(dims) if (len(dims) > 0) else 1))(const.VARY)
    else:
        dim_vary_array = (ctypes.c_long * len(dims))(*dimVarys)
    varNum = ctypes.c_long(0)
    self.cdf_file._call(const.CREATE_, const.zVAR_, enc_name, datatype, ctypes.c_long(n_elements), ctypes.c_long(len(dims)), dim_array, recVary, dim_vary_array, ctypes.byref(varNum))
    self._name = enc_name
    self.cdf_file.add_to_cache(enc_name, varNum.value)