Skip to content

Commit 7b971c4

Browse files
committed
what's new
1 parent 2f41f2e commit 7b971c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* The parsing functionality for Cell Methods from netCDF files is available as part of the :mod:`iris.fileformats.netcdf` module.

lib/iris/fileformats/netcdf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def parse_cell_methods(cf_var_name, nc_cell_methods):
172172
* nc_cell_methods (str):
173173
The value of the cell methods attribute to be parsed.
174174
175+
>>> parse_cell_methods('varname', 'x: sum(interval:1 hr)')
176+
(CellMethod(method='sum', coord_names=('x',), intervals=('1 hr',), comments=()),)
177+
175178
"""
176179

177180
cell_methods = []

0 commit comments

Comments
 (0)