__init__(...)
(Constructor)
|
|
***`__init__(group, datatype, datatype_name)`***
CompoundType constructor.
**`group`**: `netCDF4.Group` instance to associate with the compound
datatype.
**`datatype`**: A numpy dtype object describing a structured (a.k.a
record) array. Can be composed of homogeneous numeric or character data
types, or other structured array data types.
**`datatype_name`**: a Python string containing a description of the
compound data type.
***Note 1***: When creating nested compound data types, the inner
compound data types must already be associated with CompoundType
instances (so create CompoundType instances for the innermost structures
first).
***Note 2***: `netCDF4.CompoundType` instances should be created using
the `netCDF4.Dataset.createCompoundType` method of a `netCDF4.Dataset` or
`netCDF4.Group` instance, not using this class directly.
- Overrides:
object.__init__
|