Module netCDF4 :: Class Dimension

Class Dimension

source code

object --+
         |
        Dimension

Dimension(self, group, name, size=None)

A netCDF Dimension is used to describe the coordinates of a Variable.

Dimension instances should be created using the createDimension method of a Group or Dataset instance, not using this class directly.

Parameters:

group - Group instance to associate with dimension.

name - Name of the dimension.

Keywords:

size - Size of the dimension. None or 0 means unlimited. (Default None).

Returns:

a Dimension instance. All further operations on the netCDF Dimension are accomplised via Dimension instance methods.

The current maximum size of a Dimension instance can be obtained by calling the python len function on the Dimension instance. The isunlimited() method of a Dimension instance can be used to determine if the dimension is unlimited

Instance Methods
 
__init__(self, group, name, size=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__len__(x)
len(x)
source code
a new object with type S, a subtype of T
__new__(T, S, ...) source code
 
__repr__(x)
repr(x)
source code
 
__unicode__(...) source code
 
group(self)
return the group that this Dimension is a member of.
source code
 
isunlimited(self)
returns True if the Dimension instance is unlimited, False otherwise.
source code

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

Properties
  name
string name of Dimension instance

Inherited from object: __class__

Method Details

__init__(self, group, name, size=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

__new__(T, S, ...)

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

__repr__(x)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__