Skip to content

Commit 2a67198

Browse files
authored
Merge pull request #1150 from PCMDI/lee1043-patch-1
Improve docstring
2 parents c0da72f + 6a803a4 commit 2a67198

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pcmdi_metrics/io/xcdat_openxml.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ def xcdat_open(
3636
# Open a single netCDF file
3737
>>> ds = xcdat_open('mydata.nc')
3838
# Open multiple files
39-
>>> ds2 = xcdat_open(['mydata1.nc', 'mydata2.nc'] # Open multipe netCDF files
39+
>>> ds = xcdat_open(['mydata1.nc', 'mydata2.nc']) # Open multipe netCDF files
40+
# Open multiple files using a wildcard
41+
>>> ds = xcdat_open('mydata*.nc')
4042
# Open with specifing the variable 'ts'
41-
>>> ds3 = xcdat_open(['mydata1.nc', 'mydata2.nc'], data_var='ts')
43+
>>> ds = xcdat_open(['mydata1.nc', 'mydata2.nc'], data_var='ts')
4244
# Open an xml file
4345
>>> ds = xcdat_open('mydata.xml')
4446
"""

0 commit comments

Comments
 (0)