cf.CellMethods.intervals

CellMethods.intervals

Each cell method’s interval keyword(s).

Examples:
>>> c = cf.CellMethods('time: minimum (interval: 1 hr) lat: lon: mean (interval: 0.1 degree_N interval: 0.2 degree_E)')
>>> c
<CF CellMethods: time: minimum (interval: 1 hr) lat: lon: mean (interval: 0.1 degree_N interval: 0.2 degree_E)>
>>> c.intervals
[[<CF Data: 1 hr>], [<CF Data: 0.1 degree_N>, <CF Data: 0.2 degree_E>]]
>>> c[0].intervals = ['3600 seconds']
>>> c.intervals
>>> c[0].intervals
[[<CF Data: 3600 seconds>]]
>>> c[0].intervals = [cf.Data(60, 'minutes')]
>>> c[0].intervals
[[<CF Data: 60 minutes>]]
>>> c[0].intervals = [1]
>>> c[0].intervals
[[<CF Data: 1 >]]
>>> del c[0].intervals
>>> c.intervals
>>> [[], [<CF Data: 0.1 degree_N>, <CF Data: 0.2 degree_E>]]
>>> c
<CF CellMethods: time: minimum lat: lon: mean (interval: 0.1 degree_N interval: 0.2 degree_E)>