Module netCDF4_classic :: Class Dimension
[hide private]
[frames] | no frames]

Class Dimension



object --+
         |
        Dimension

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

Constructor: Dimension(dataset, name, size=None)

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

Parameters:

dataset - Dataset instance to associate with dimension.

name - Name of the dimension.

Keywords:

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

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 [hide private]
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __len__(x)
len(x)
  __new__(T, S, ...)
  isunlimited(...)
returns True if the Dimension instance is unlimited, False otherwise.

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]
  _dimid = <member '_dimid' of 'netCDF4_classic.Dimension' obje...
  _dsetid = <member '_dsetid' of 'netCDF4_classic.Dimension' obj...

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__

__len__(x)
(Length operator)

 
len(x)

__new__(T, S, ...)

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

Overrides: object.__new__

isunlimited(...)

 

returns True if the Dimension instance is unlimited, False otherwise.

isunlimited()

Class Variable Details [hide private]

_dimid

None
Value:
<member '_dimid' of 'netCDF4_classic.Dimension' objects>               
      

_dsetid

None
Value:
<member '_dsetid' of 'netCDF4_classic.Dimension' objects>