cf.CellMethods¶
-
class
cf.
CellMethods
(cell_methods=None)[source]¶ Bases:
_abcoll.MutableSequence
A CF cell methods object to describe the characteristic of a field that is represented by cell values.
Initialization
Parameters: - string : str, optional
Initialize new instance from a CF-netCDF-like cell methods string. See the
parse
method for details. By default an empty cell methods is created.
Examples: >>> c = cf.CellMethods() >>> c = cf.CellMethods('time: max: height: mean')
CellMethods attributes¶
axes |
|
comment |
Each cell method’s comment keyword. |
intervals |
Each cell method’s interval keyword(s). |
method |
Each cell method’s method keyword. |
names |
Each cell method’s name keyword(s). |
over |
Each cell method’s over keyword. |
where |
Each cell method’s where keyword. |
within |
Each cell method’s within keyword. |
CellMethods methods¶
Undocumented methods behave exactly as their counterparts in a built-in list.
copy |
Return a deep copy. |
dump |
Return a string containing a full description of the instance. |
equals |
True if two cell methods are equal, False otherwise. |
equivalent |
True if two cell methods are equivalent, False otherwise. |
has_cellmethod |
Return True if and only if this cell methods is a super set of another. |
inspect |
Inspect the attributes. |
netcdf_translation |
Translate netCDF variable names stored in the names attribute into axes and names attributes. |
CellMethods list-like methods¶
These methods provide functionality exactly as their counterparts in a
built-in list
.
append |
S.append(object) – append object to the end of the sequence |
count |
|
extend |
|
index |
Raises ValueError if the value is not present. |
insert |
|
pop |
Raise IndexError if list is empty or index is out of range. |
remove |
S.remove(value) – remove first occurrence of value. |
reverse |
S.reverse() – reverse IN PLACE |