def __init__(self, cdf_file, var_name, *args):
    'Create or locate a variable\n\n        Parameters\n        ==========\n        cdf_file : :py:class:`pycdf.CDF`\n            CDF file containing this variable\n        var_name : string\n            name of this variable\n\n        Other Parameters\n        ================\n        args\n            additional arguments passed to :py:meth:`_create`. If none,\n            opens an existing variable. If provided, creates a\n            new one.\n\n        Raises\n        ======\n        CDFError\n            if CDF library reports an error\n\n        Warns\n        =====\n        CDFWarning\n            if CDF library reports a warning\n        '
    self.cdf_file = cdf_file
    self._name = None
    self._type = None
    self._raw = False
    if (len(args) == 0):
        self._get(var_name)
    else:
        self._create(var_name, *args)
    self._attrlistref = weakref.ref(zAttrList(self))
Create or locate a variable

Parameters
==========
cdf_file : :py:class:`pycdf.CDF`
    CDF file containing this variable
var_name : string
    name of this variable

Other Parameters
================
args
    additional arguments passed to :py:meth:`_create`. If none,
    opens an existing variable. If provided, creates a
    new one.

Raises
======
CDFError
    if CDF library reports an error

Warns
=====
CDFWarning
    if CDF library reports a warning
def __init__(self, cdf_file, var_name, *args):
    'Create or locate a variable\n\n        Parameters\n        ==========\n        cdf_file : :py:class:`pycdf.CDF`\n            CDF file containing this variable\n        var_name : string\n            name of this variable\n\n        Other Parameters\n        ================\n        args\n            additional arguments passed to :py:meth:`_create`. If none,\n            opens an existing variable. If provided, creates a\n            new one.\n\n        Raises\n        ======\n        CDFError\n            if CDF library reports an error\n\n        Warns\n        =====\n        CDFWarning\n            if CDF library reports a warning\n        '
    self.cdf_file = cdf_file
    self._name = None
    self._type = None
    self._raw = False
    if (len(args) == 0):
        self._get(var_name)
    else:
        self._create(var_name, *args)
    self._attrlistref = weakref.ref(zAttrList(self))