cf.CellMethods.parse

CellMethods.parse(string=None)[source]

Parse a CF cell_methods string into this CellMethods instance in place.

Parameters :
string : str, optional

The CF cell_methods string to be parsed into the CellMethods object. By default the cell methods will be empty.

Returns :

None

Examples

>>> c = cf.CellMethods()
>>> c = c.parse('time: minimum within years time: mean over years (ENSO years)')    
>>> print c
Cell methods    : time: minimum within years
                  time: mean over years (ENSO years)

Previous topic

cf.CellMethods.netcdf_translation

Next topic

cf.CellMethods.strings

This Page