Package netCDF4 :: Module _netCDF4 :: Class VLType
[hide private]
[frames] | no frames]

Class VLType

object --+
         |
        VLType

A `netCDF4.VLType` instance is used to describe a variable length (VLEN) data type, and can be passed to the the `netCDF4.Dataset.createVariable` method of a `netCDF4.Dataset` or `netCDF4.Group` instance. See `netCDF4.VLType.__init__` for more details.

The instance variables `dtype` and `name` should not be modified by the user.

Instance Methods [hide private]
 
__init__(...)
**`__init__(group, datatype, datatype_name)`**
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
__unicode__(...)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  _nc_type
  dtype
  name

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

**`__init__(group, datatype, datatype_name)`**

VLType constructor.

**`group`**: `netCDF4.Group` instance to associate with the VLEN datatype.

**`datatype`**: An numpy dtype object describing a the component type for the variable length array.

**`datatype_name`**: a Python string containing a description of the VLEN data type.

***`Note`***: `netCDF4.VLType` instances should be created using the `netCDF4.Dataset.createVLType` method of a `netCDF4.Dataset` or `netCDF4.Group` instance, not using this class directly.

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__